Function at 0x402900
Capabilities:
Encode data using xor
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423d41
mov eax, dword fs:[0]
push eax
sub esp, 0x198
mov eax, dword [0x43506c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x66f3c8]
test eax, eax
jne 0x402945
call fcn.00402820
mov dword [0x66f3c8], eax
test eax, eax
je 0x402937
push eax
push 0
push 0x43a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x402bd9
push 0x104
lea eax, [ebp - 0x11c]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExA]
test eax, eax
je 0x402bb6
mov dword [ebp - 0x120], 0xf
mov dword [ebp - 0x124], 0
mov byte [ebp - 0x134], 0
push 0x38
lea eax, [ebp - 0x16c]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.0040e920
add esp, 0xc
lea ecx, [ebp - 0x16c]
call fcn.00402ca0
sub esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x188]
call fcn.00402d90
mov esi, eax
mov byte [ebp - 4], 2
cmp byte [ebp - 0x11c], 0
jne 0x4029df
xor ecx, ecx
jmp 0x4029f1
lea ecx, [ebp - 0x11c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4029e8
sub ecx, edx
sub esp, 8
lea edx, [ebp - 0x11c]
lea eax, [ebp - 0x16c]
add edx, ecx
lea ecx, [ebp - 0x11c]
push esi
push eax
call fcn.00403740
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x188]
mov bl, al
call fcn.00402d00
test bl, bl
je 0x402a58
lea eax, [ebp - 0x18c]
push eax
push ecx
lea ecx, [ebp - 0x16c]
call fcn.00402c70
mov ecx, eax
call fcn.00402e30
push eax
lea ecx, [ebp - 0x134]
call fcn.00402e50
lea ecx, [ebp - 0x18c]
call fcn.004013f0
mov dword [ebp - 0x184], 0x77716777
xor ecx, ecx
mov dword [ebp - 0x180], 0x2669696c
mov dword [ebp - 0x17c], 0x67666d
mov byte [ebp - 0x178], 1
nop
mov al, cl
inc al
xor byte [ebp + ecx - 0x184], al
inc ecx
cmp ecx, 0xb
jb 0x402a80
lea eax, [ebp - 0x184]
mov byte [ebp - 0x178], 0
push eax
lea edx, [ebp - 0x134]
lea ecx, [ebp - 0x1a4]
call fcn.00403220
add esp, 4
lea ecx, [ebp - 0x134]
push eax
call fcn.00402e50
lea ecx, [ebp - 0x1a4]
call fcn.004013f0
cmp dword [ebp - 0x120], 0x10
lea eax, [ebp - 0x134]
push 0
cmovae eax, dword [ebp - 0x134]
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 4
mov esi, eax
call fcn.0040a3d2
add esp, 4
push 0
push eax
push 0x6800
push 0x667a80
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x174], 0x70707b52
xor ecx, ecx
mov dword [ebp - 0x170], 0x1006b60
mov al, cl
inc al
xor byte [ebp + ecx - 0x174], al
inc ecx
cmp ecx, 6
jb 0x402b34
mov byte [ebp - 0x16d], 0
xor ecx, ecx
mov dword [ebp - 0x180], 0x76627652
mov dword [ebp - 0x17c], 0x69402671
mov dword [ebp - 0x178], 0x1006f64
nop dword [eax]
mov al, cl
inc al
xor byte [ebp + ecx - 0x180], al
inc ecx
cmp ecx, 0xa
jb 0x402b70
push 0
lea eax, [ebp - 0x174]
mov byte [ebp - 0x175], 0
push eax
lea eax, [ebp - 0x180]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x164]
call fcn.00402f50
lea ecx, [ebp - 0x134]
call fcn.004013f0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040a3c1
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x174], 0x70707b52
xor ecx, ecx
mov dword [ebp - 0x170], 0x1006b60
nop
mov al, cl
inc al
xor byte [ebp + ecx - 0x174], al
inc ecx
cmp ecx, 6
jb 0x402bf0
movaps xmm0, xmmword [str.Gcjh_bfjxyolx]
xor ecx, ecx
mov byte [ebp - 0x16d], 0
movups xmmword [ebp - 0x188], xmm0
mov word [ebp - 0x178], pe_nt_image_headers32
mov al, cl
inc al
xor byte [ebp + ecx - 0x188], al
inc ecx
cmp ecx, 0x10
jb 0x402c21
push 0x10
lea eax, [ebp - 0x174]
mov byte [ebp - 0x177], 0
push eax
lea eax, [ebp - 0x188]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call fcn.00410afb
int3