Function at 0x420c00
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x478
xor ebx, ebx
cmp byte [esp + 0x490], 0
jne 0x420fbb
mov edi, dword [esp + 0x498]
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0xf40ff20e
mov dword [esp + 0x24], 0x88c4f610
mov dword [esp + 0x28], 0x8cb58abb
mov dword [esp + 0x2c], 0x80738e69
mov dword [esp + 0x30], 0x8483827d
mov al, 0x46
nop
nop
nop
nop
nop
movzx ecx, byte [esp + ebx + 0x20]
xor cl, al
xor cl, 0x7f
add cl, 0x38
mov byte [esp + ebx + 0x20], cl
inc ebx
dec al
cmp ebx, 0x14
jne 0x420c60
lea eax, [esp + 0x20]
lea ecx, [esp + 0x18]
push eax
call fcn.004393f0
push 0xebc73df8
push dword [esp + 0x1c]
call fcn.0043b5d0
add esp, 8
lea ecx, [esp + 4]
push ecx
push 0x43f59c
push 1
push 0
push 0x43f5ac
call eax
test eax, eax
js 0x420d24
mov eax, dword [esp + 4]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push 0x43f5bc
push eax
call dword [ecx]
test eax, eax
js 0x420d2b
mov esi, 0xfffffffe
mov eax, dword [esp + 0x48c]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [eax + esi + 2], 0
lea esi, [esi + 2]
jne 0x420ce0
mov edi, dword [edi + 8]
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [edi + eax + 2], 0
lea eax, [eax + 2]
jne 0x420d00
sar esi, 1
sar eax, 1
lea ecx, [esi + eax]
add ecx, 2
test ecx, ecx
mov dword [esp + 0x14], esi
jns 0x420d32
mov eax, 0xffffffff
jmp 0x420d3b
xor ebx, ebx
jmp 0x420fbb
xor ebx, ebx
jmp 0x420fb1
add eax, esi
lea eax, [eax*2 + 4]
push eax
call fcn.00407fc0
add esp, 4
mov esi, eax
movzx ecx, word [edi]
mov dword [esp + 8], eax
test cx, cx
je 0x420d71
add edi, 2
mov esi, dword [esp + 8]
nop
nop
nop
nop
nop
nop
nop
mov word [esi], cx
add esi, 2
movzx ecx, word [edi]
add edi, 2
test cx, cx
jne 0x420d60
mov word [esp + 0x20], 0xc42f
xor ecx, ecx
mov al, 1
nop
nop
nop
nop
mov dword [esp + 0xc], eax
movzx ebx, byte [esp + ecx + 0x20]
lea edi, [ecx + 0x1b]
and edi, ebx
mov ebp, edi
and ebp, 2
mov edx, edi
or edx, 0xfd
inc edx
mov eax, edi
and eax, 0x1d
imul eax, edx
or edi, 2
imul edi, ebp
sub eax, edi
add ebx, ecx
add ebx, eax
add bl, 0x43
mov byte [esp + ecx + 0x20], bl
mov ecx, 1
test byte [esp + 0xc], 1
mov eax, 0
jne 0x420d80
movzx eax, word [esp + 0x20]
mov word [esi], ax
add esi, 2
mov eax, dword [esp + 0x48c]
movzx ecx, word [eax]
test cx, cx
je 0x420e03
lea edx, [eax + 2]
mov ebp, dword [esp + 0x498]
nop
nop
nop
nop
mov word [esi], cx
add esi, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x420df0
jmp 0x420e0a
mov ebp, dword [esp + 0x498]
mov word [esi], 0
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push 0
push dword [esp + 0xc]
push eax
call dword [ecx + 0x14]
test eax, eax
js 0x420e8a
mov eax, dword [esp + 4]
mov ecx, dword [eax]
push 1
push 0
push eax
call dword [ecx + 0x4c]
test eax, eax
js 0x420e8a
mov eax, dword [esp + 4]
mov ecx, dword [eax]
lea esi, [esp + 0x270]
push 1
lea edx, [esp + 0x24]
push edx
push 0x104
push esi
push eax
call dword [ecx + 0xc]
test eax, eax
js 0x420e8a
mov edi, dword [ebp + 4]
mov eax, 0xfffffffe
nop
cmp word [edi + eax + 2], 0
lea eax, [eax + 2]
jne 0x420e60
sar eax, 1
mov ecx, dword [esp + 0x14]
add eax, ecx
inc eax
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
test eax, eax
jns 0x420e91
mov eax, 0xffffffff
jmp 0x420e93
xor ebx, ebx
jmp 0x420f9b
add eax, eax
push eax
call fcn.00407fc0
add esp, 4
movzx ecx, word [edi]
mov ebp, eax
test cx, cx
je 0x420ec2
add edi, 2
mov ebp, eax
nop
nop
nop
nop
nop
mov word [ebp], cx
add ebp, 2
movzx ecx, word [edi]
add edi, 2
test cx, cx
jne 0x420eb0
mov dword [esp + 0xc], eax
mov word [esp + 2], 0x1937
xor ecx, ecx
mov dl, 1
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [esp + ecx + 2]
mov ebx, 0x27
sub ebx, ecx
mov edi, ecx
or edi, 0xd8
xor ebx, edi
and ebx, esi
xor ebx, edi
add bl, 0x40
mov byte [esp + ecx + 2], bl
mov ecx, 1
test dl, 1
mov edx, 0
jne 0x420ee0
movzx ecx, word [esp + 2]
mov word [ebp], cx
add ebp, 2
mov edx, dword [esp + 0x48c]
movzx ecx, word [edx]
test cx, cx
je 0x420f54
add edx, 2
lea esi, [esp + 0x270]
mov edi, dword [esp + 0x498]
nop
nop
nop
nop
mov word [ebp], cx
add ebp, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x420f40
jmp 0x420f62
lea esi, [esp + 0x270]
mov edi, dword [esp + 0x498]
mov word [ebp], 0
mov eax, dword [edi + 0x14]
mov ecx, eax
not ecx
and ecx, 1
and eax, 0xfffffffe
sub eax, ecx
push 1
push eax
push dword [edi + 0x10]
push dword [edi + 0xc]
push esi
mov esi, dword [esp + 0x20]
push esi
push dword [edi]
call fcn.004201a0
add esp, 0x1c
mov ebx, eax
push esi
call fcn.00407fd0
add esp, 4
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [esp + 8]
call fcn.00407fd0
add esp, 4
mov eax, dword [esp + 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, ebx
add esp, 0x478
pop esi
pop edi
pop ebx
pop ebp
ret 0x10