Function at 0x4027c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xb8
mov eax, dword [ebp + 8]
mov word [esp + 0xa4], 0x2b7a
mov byte [esp + 0x9e], 0xf6
mov dword [esp + 0x98], 0x49a5
mov dword [esp + 0x6c], 0x55b
movzx ecx, word [esp + 0xa4]
mov dx, cx
mov esi, 0xffff9281
sub esi, ecx
mov di, si
mov word [esp + 0x56], di
mov di, word [esp + 0xa4]
mov ecx, dword [esp + 0xa0]
mov esi, ecx
not esi
mov dword [esp + 0xa0], esi
add di, 0xee
mov word [esp + 0x7a], di
mov di, word [esp + 0xa4]
xor di, 0x1277
mov word [esp + 0x54], di
mov bl, byte [esp + 0x9e]
mov bh, 0xe3
sub bh, bl
mov byte [esp + 0x97], bh
mov dword [esp + 0x90], eax
mov byte [esp + 0x1f], bl
mov word [esp + 0x1c], dx
mov dword [esp + 0x18], ecx
call fcn.00402d20
mov dword [esp + 0x60], eax
mov ecx, dword [esp + 0xa8]
mov esi, dword [esp + 0xac]
mov edi, esp
mov dword [edi], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ecx
call fcn.00402cc0
sub esp, 4
mov dword [esp + 0x4c], eax
mov dx, word [esp + 0x1c]
add dx, 0x528
mov word [esp + 0xa6], dx
mov eax, dword [esp + 0x4c]
add eax, 0x18
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x60]
add ecx, dword [eax + 0x60]
mov dword [esp + 0x30], ecx
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
and ecx, 0x4c03
mov dword [esp + 0xa0], ecx
mov eax, dword [eax + 0x64]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x98]
mov byte [esp + 0x9f], 0x9e
xor eax, 0xffffb65a
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x30]
add eax, dword [ecx + 0x20]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0x24]
mov ecx, dword [esp + 0x60]
add ecx, eax
mov dword [esp + 0x84], ecx
mov eax, dword [esp + 0x98]
xor eax, 0x49a5
mov dword [esp + 0x48], eax
jmp 0x4029a2
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x60]
mov eax, dword [eax + 0x1c]
add ecx, eax
mov dword [esp + 0x24], ecx
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x60]
add eax, dword [esp + 0x34]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x44], eax
jmp 0x40297f
mov eax, dword [esp + 0x44]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov eax, dword [esp + 0x58]
mov dword [esp + 0x48], eax
jmp 0x4029a2
mov ax, 0x6c9f
cmp ax, word [esp + 0x56]
je 0x402931
jmp 0x402967
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0x18]
cmp dword [esp + 0x3c], eax
jb 0x402c60
jmp 0x402ae7
mov al, byte [esp + 0x1f]
sub al, al
mov byte [esp + 0x9f], al
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x3c], ecx
mov byte [esp + 0x8f], 0x39
mov al, byte [esp + 0x8f]
mov dx, word [esp + 0x54]
mov word [esp + 0x72], dx
mov ah, byte [esp + 0x97]
mov byte [esp + 0x2b], ah
cmp al, 0x11
jb 0x402c60
jmp 0x402b28
mov al, 0xd1
mov cl, byte [esp + 0x1f]
add cl, cl
mov byte [esp + 0x9f], cl
mov cl, byte [esp + 0x9e]
xor cl, 0x3d
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x88], edx
sub al, byte [esp + 0x9e]
mov byte [esp + 0x67], cl
cmp byte [esp + 0x67], al
jae 0x4029e8
jmp 0x402b40
mov eax, 0xae48
sub eax, dword [esp + 0x98]
mov ecx, dword [esp + 0x48]
add ecx, 1
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x58], ecx
cmp edx, eax
jbe 0x402975
mov eax, dword [esp + 0x98]
mov ecx, 0xa849
sub ecx, eax
mov dword [esp + 0xac], 0
mov dword [esp + 0xa8], 0x5051
mov edx, eax
xor edx, 0x348d
mov esi, 0x8f11
sub esi, eax
mov eax, esp
mov dword [eax + 8], ecx
mov dword [eax + 4], esi
mov dword [eax], edx
mov eax, dword [sym.imp.KERNEL32.DLL_OpenProcess]
call eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov al, 0xb7
mov cl, byte [esp + 0x9e]
mov byte [esp + 0x9f], 0xb6
sub al, cl
mov byte [esp + 0x96], al
mov edx, dword [esp + 0x84]
mov al, byte [esp + 0x96]
mov esi, dword [esp + 0x18]
or esi, esi
mov dword [esp + 0xa0], esi
mov di, word [edx]
mov cl, byte [esp + 0x9e]
add cl, 0x5f
mov word [esp + 0x5e], di
cmp cl, al
je 0x402ca4
jmp 0x402ca4
mov ax, 0x9836
mov cx, word [esp + 0x7a]
sub ax, word [esp + 0xa4]
cmp ax, cx
je 0x402b50
jmp 0x402c30
mov eax, dword [esp + 0x84]
add eax, 2
mov dword [esp + 0x84], eax
jmp 0x402a22
cmp dword [esp + 0x7c], 0
jne 0x402c02
jmp 0x4029e8
mov ax, 0x4a59
sub ax, word [esp + 0xa4]
cmp word [esp + 0x72], ax
jae 0x402b96
jmp 0x40298c
cmp dword [esp + 0x88], 0
jne 0x402a93
jmp 0x402b02
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x80]
movsx eax, byte [eax + edx]
mov edx, dword [esp + 0x38]
movsx ecx, byte [edx + ecx]
cmp ecx, eax
sete bl
and bl, 1
movzx eax, bl
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x80]
movsx eax, byte [eax + ecx]
cmp eax, 0
je 0x402b23
jmp 0x402c04
mov al, 0x2b
mov ecx, dword [esp + 0x30]
mov dx, word [esp + 0x1c]
mov word [esp + 0xa6], dx
mov dword [esp + 0x2c], ecx
cmp al, byte [esp + 0x2b]
jbe 0x40298c
jmp 0x402b18
mov dword [esp + 0x44], 0
mov eax, dword [esp + 0x14]
not eax
mov ecx, dword [esp + 0x10]
not ecx
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xac], eax
jmp 0x40297f
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x98]
add ecx, 0xffffb65c
add eax, ecx
mov dword [esp + 0x80], eax
jmp 0x402c4d
jmp 0x402be3
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x90]
movsx eax, byte [ecx + eax]
mov ecx, dword [esp + 0x98]
xor ecx, 0x49a5
cmp eax, ecx
je 0x402b23
jmp 0x402b18
mov eax, 0x49a4
mov ecx, dword [esp + 0x74]
sub eax, dword [esp + 0x98]
cmp ecx, eax
je 0x402bbc
jmp 0x402931
cmp dword [esp + 0x80], 0x20
jb 0x402b50
jmp 0x4029e8
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x48]
mov byte [esp + 0x9f], 0x32
mov edx, dword [esp + 0x50]
mov ecx, dword [edx + ecx*4]
mov edx, dword [esp + 0x98]
mov esi, dword [esp + 0x98]
add eax, ecx
add edx, 0xffffb65b
xor esi, 0x49a5
mov dword [esp + 0x38], eax
mov dword [esp + 0x7c], edx
mov dword [esp + 0x80], esi
jmp 0x402c4d
movzx eax, word [esp + 0x5e]
mov dword [esp + 0x74], eax
jmp 0x402ae7