Function at 0x4020c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
sub ax, 0x10
add cx, dx
add eax, ecx
add ax, word [esp - 0x60]
mov cx, ax
push dword [ebp + 0x10]
lea ecx, [ebp - 0xc0]
push dword [ebp + 0xc]
call fcn.004023a0
mov al, byte [esp - 0x34]
xor cx, word [esp - 0x2c]
mov al, 0x28
sub cl, byte [esp - 0x20]
add ecx, dword [esp - 0xb]
mov cl, 0x16
sub cl, byte [esp - 0x21]
sub eax, edx
mov ax, word [esp - 0x3a]
add cx, 0x4c
mov cx, 0x6b
mov ecx, dword [esp - 0x13]
mov al, cl
mov ax, 0x4c
mov dx, word [esp - 0x5b]
xor dx, word [esp - 0xa]
mov ebx, dword [ebp + 8]
push ebx
call fcn.004024b3
add esp, 4
mov dword [ebp - 0x10], eax
sub cl, 0x2c
add al, cl
mov al, byte [esp - 0x13]
xor edi, edi
xor esi, esi
mov dword [ebp - 4], edi
mov cl, 0x16
sub cl, byte [esp - 0x21]
sub eax, edx
mov ax, word [esp - 0x3a]
add cx, 0x4c
test ebx, ebx
je 0x4022ff
lea eax, [ebp - 0xc0]
mov dword [ebp - 0x1c], 0x20
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0x20
mov dword [ebp - 0x24], 0xffffffff
nop dword [eax]
mov cx, 0x6b
mov ecx, dword [esp - 0x13]
push 0x1a
lea ecx, [ebp - 0x20]
call fcn.00402320
lea ebx, [eax + 5]
xor dx, ax
mov edx, ecx
mov ax, word [esp - 0x20]
add cl, 0xc
sub cl, 0x15
xor al, 0x1e
push 0xe
lea ecx, [ebp - 0x2c]
call fcn.00402320
add eax, 5
mov dword [ebp - 0xc], eax
sub ax, 0x10
add cx, dx
add eax, ecx
add ax, word [esp - 0x60]
mov cx, ax
mov edx, dword [ebp + 8]
sub edx, dword [ebp - 0xc]
sub edx, esi
mov al, byte [esp - 0x34]
xor cx, word [esp - 0x2c]
mov al, 0x28
sub cl, byte [esp - 0x20]
add ecx, dword [esp - 0xb]
cmp edx, ebx
cmovb ebx, edx
mov dword [ebp - 8], ebx
mov cl, byte [esp - 0x7f]
mov cl, byte [esp - 0x76]
xor edx, 0xb26
mov cx, word [esp - 0x3b]
sub cl, 0x2c
add al, cl
mov al, byte [esp - 0x13]
test ebx, ebx
je 0x4022e2
lea eax, [ebp - 0xc0]
mov dword [ebp - 0x34], 0x20
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], 0xffffffff
nop word [eax + eax]
mov cx, 0x6b
mov ecx, dword [esp - 0x13]
push 0x100
lea ecx, [ebp - 0x38]
call fcn.00402320
mov ebx, eax
xor dx, ax
mov edx, ecx
mov ax, word [esp - 0x20]
add cl, 0xc
sub cl, 0x15
xor al, 0x1e
mov dl, byte [esi + 0x40e248]
add ax, word [esp - 0xc]
xor cx, 0x4e
xor al, cl
xor al, 0x17
mov ax, 0x30
add ecx, eax
inc esi
mov cl, 0x16
sub cl, byte [esp - 0x21]
sub eax, edx
mov ax, word [esp - 0x3a]
add cx, 0x4c
add edi, dword [ebp - 0x10]
mov byte [edi], dl
xor dx, ax
mov edx, ecx
mov ax, word [esp - 0x20]
add cl, 0xc
sub cl, 0x15
xor al, 0x1e
xor byte [edi], bl
sub ax, 0x10
add cx, dx
add eax, ecx
add ax, word [esp - 0x60]
mov cx, ax
mov edi, dword [ebp - 4]
inc edi
mov dword [ebp - 4], edi
mov al, byte [esp - 0x34]
xor cx, word [esp - 0x2c]
mov al, 0x28
sub cl, byte [esp - 0x20]
add ecx, dword [esp - 0xb]
sub dword [ebp - 8], 1
jne 0x402240
mov cl, 0x16
sub cl, byte [esp - 0x21]
sub eax, edx
mov ax, word [esp - 0x3a]
add cx, 0x4c
add esi, dword [ebp - 0xc]
cmp esi, dword [ebp + 8]
jb 0x402190
mov cx, 0x6b
mov ecx, dword [esp - 0x13]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov dword [ecx + 4], edi
pop edi
pop esi
mov dword [ecx], eax
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret