Function at 0x4209c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x474
xor ebx, ebx
cmp byte [esp + 0x48c], 0
jne 0x420d10
mov edi, dword [esp + 0x494]
mov ebp, dword [esp + 0x488]
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0xa70aa50b
mov dword [esp + 0x20], 0xabd9a90d
mov dword [esp + 0x24], 0xafc0adde
mov dword [esp + 0x28], 0xb31eb114
mov dword [esp + 0x2c], 0xb7b6b518
movzx ecx, byte [esp + ebx + 0x1c]
mov edx, ebx
xor edx, 0xe50b874
lea eax, [ebx + ebx]
mov esi, eax
and esi, 0x28
add edx, esi
add edx, 0xfc4c9c10
xor edx, ecx
mov ecx, edx
and ecx, 0x5f
xor edx, 0xdf
lea ecx, [edx + ecx*2]
inc cl
mov byte [esp + ebx + 0x1c], cl
and eax, 2
xor ebx, 1
add ebx, eax
cmp ebx, 0x14
jb 0x420a20
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x14]
push eax
call fcn.004389e0
push 0xebc73df8
push dword [esp + 0x18]
call fcn.0043a7f0
add esp, 8
lea ecx, [esp + 4]
push ecx
push 0x43e598
push 1
push 0
push 0x43e5a8
call eax
test eax, eax
js 0x420b00
mov eax, dword [esp + 4]
mov ecx, dword [eax]
lea edx, [esp + 8]
push edx
push 0x43e5b8
push eax
call dword [ecx]
test eax, eax
js 0x420b07
mov ebx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ebp + ebx + 2], 0
lea ebx, [ebx + 2]
jne 0x420ac0
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 0x420ae0
sar ebx, 1
sar eax, 1
lea ecx, [ebx + eax]
add ecx, 2
test ecx, ecx
jns 0x420b0e
mov eax, 0xffffffff
jmp 0x420b17
xor ebx, ebx
jmp 0x420d10
xor ebx, ebx
jmp 0x420d06
add eax, ebx
lea eax, [eax*2 + 4]
push eax
call fcn.00408000
add esp, 4
mov esi, eax
movzx ecx, word [edi]
test cx, cx
je 0x420b41
add edi, 2
mov eax, esi
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edi]
add edi, 2
test cx, cx
jne 0x420b30
mov word [eax], 0x5c
add eax, 2
movzx ecx, word [ebp]
test cx, cx
je 0x420b71
lea edx, [ebp + 2]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x420b60
mov word [eax], 0
mov eax, dword [esp + 8]
mov ecx, dword [eax]
push 0
push esi
push eax
call dword [ecx + 0x14]
test eax, eax
js 0x420bfa
mov eax, dword [esp + 4]
mov ecx, dword [eax]
push 1
push 0
push eax
call dword [ecx + 0x4c]
test eax, eax
js 0x420bfa
mov eax, dword [esp + 4]
mov ecx, dword [eax]
lea edi, [esp + 0x26c]
push 1
lea edx, [esp + 0x20]
push edx
push 0x104
push edi
push eax
call dword [ecx + 0xc]
test eax, eax
js 0x420bfa
mov eax, dword [esp + 0x494]
mov edi, dword [eax + 4]
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
nop
cmp word [edi + eax + 2], 0
lea eax, [eax + 2]
jne 0x420bd0
sar eax, 1
add eax, ebx
inc eax
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
test eax, eax
mov dword [esp + 0xc], esi
jns 0x420c01
mov eax, 0xffffffff
jmp 0x420c03
xor ebx, ebx
jmp 0x420cf3
add eax, eax
push eax
call fcn.00408000
add esp, 4
movzx ecx, word [edi]
mov esi, eax
test cx, cx
je 0x420c31
add edi, 2
mov esi, eax
nop
nop
nop
nop
nop
mov word [esi], cx
add esi, 2
movzx ecx, word [edi]
add edi, 2
test cx, cx
jne 0x420c20
mov dword [esp + 0x10], eax
mov word [esp + 2], 0x6f81
xor ecx, ecx
mov al, 1
movzx ebx, byte [esp + ecx + 2]
mov edi, ecx
or edi, 0xb0ade89e
and edi, ebx
add edi, edi
neg edi
lea edx, [ecx + edi]
add edx, 0xb0ade89e
add dl, bl
add dl, 0x10
mov byte [esp + ecx + 2], dl
mov ecx, 1
test al, 1
mov eax, 0
jne 0x420c40
movzx ecx, word [esp + 2]
mov word [esi], cx
add esi, 2
movzx ecx, word [ebp]
test cx, cx
je 0x420cb4
add ebp, 2
mov edx, dword [esp + 0x494]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [esi], cx
add esi, 2
movzx ecx, word [ebp]
add ebp, 2
test cx, cx
jne 0x420ca0
jmp 0x420cbb
mov edx, dword [esp + 0x494]
mov word [esi], 0
mov eax, dword [edx + 0x14]
dec eax
push 1
push eax
push dword [edx + 0x10]
push dword [edx + 0xc]
lea eax, [esp + 0x27c]
push eax
mov esi, dword [esp + 0x24]
push esi
push dword [edx]
call fcn.0041ff60
add esp, 0x1c
mov ebx, eax
push esi
call fcn.00408010
add esp, 4
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push esi
call fcn.00408010
add esp, 4
mov eax, dword [esp + 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, ebx
add esp, 0x474
pop esi
pop edi
pop ebx
pop ebp
ret 0x10