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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426101
mov eax, dword fs:[0]
push eax
sub esp, 0x198
mov eax, dword [0x43706c]
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 [0x676bf8]
test eax, eax
jne 0x402b85
call fcn.00402a60
mov dword [0x676bf8], eax
test eax, eax
je 0x402b77
push eax
push 0
push 0x43a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x402e19
push 0x104
lea eax, [ebp - 0x11c]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExA]
test eax, eax
je 0x402df6
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.0040eb50
add esp, 0xc
lea ecx, [ebp - 0x16c]
call fcn.00402ee0
sub esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x188]
call fcn.00402fd0
mov esi, eax
mov byte [ebp - 4], 2
cmp byte [ebp - 0x11c], 0
jne 0x402c1f
xor ecx, ecx
jmp 0x402c31
lea ecx, [ebp - 0x11c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402c28
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.00403980
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x188]
mov bl, al
call fcn.00402f40
test bl, bl
je 0x402c98
lea eax, [ebp - 0x18c]
push eax
push ecx
lea ecx, [ebp - 0x16c]
call fcn.00402eb0
mov ecx, eax
call fcn.00403070
push eax
lea ecx, [ebp - 0x134]
call fcn.00403090
lea ecx, [ebp - 0x18c]
call fcn.00401600
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 0x402cc0
lea eax, [ebp - 0x184]
mov byte [ebp - 0x178], 0
push eax
lea edx, [ebp - 0x134]
lea ecx, [ebp - 0x1a4]
call fcn.00403460
add esp, 4
lea ecx, [ebp - 0x134]
push eax
call fcn.00403090
lea ecx, [ebp - 0x1a4]
call fcn.00401600
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.0040a5f1
add esp, 4
push 0
push eax
push 0x6800
push 0x66f2b0
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 0x402d74
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 0x402db0
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.00403190
lea ecx, [ebp - 0x134]
call fcn.00401600
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.0040a5e0
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 0x402e30
movaps xmm0, xmmword [str.Gcjh_bfjxyolx]
xor ecx, ecx
mov byte [ebp - 0x16d], 0
movups xmmword [ebp - 0x188], xmm0
mov word [ebp - 0x178], 0x100
mov al, cl
inc al
xor byte [ebp + ecx - 0x188], al
inc ecx
cmp ecx, 0x10
jb 0x402e61
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.00411942
int3