Function at 0x421920
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x478
cmp byte [esp + 0x490], 0
jne 0x421a4f
mov esi, dword [esp + 0x498]
mov edi, dword [esp + 0x48c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0x278a258b
mov dword [esp + 0x24], 0x2b59298d
mov dword [esp + 0x28], 0x2f402d5e
mov dword [esp + 0x2c], 0x339e3194
mov dword [esp + 0x30], 0x37363598
mov eax, 0x143d4604
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax - 0x143d45e4]
mov edx, ecx
and edx, eax
add dl, dl
sub cl, dl
movzx ecx, cl
add ecx, eax
add cl, 0xe0
mov byte [esp + eax - 0x143d45e4], cl
inc eax
cmp eax, 0x143d4618
jne 0x421990
lea eax, [esp + 0x20]
lea ecx, [esp + 0x18]
push eax
call fcn.0043a300
push 0xebc73df8
push dword [esp + 0x1c]
call fcn.0043c280
add esp, 8
lea ecx, [esp + 4]
push ecx
push 0x43f59c
push 1
push 0
push 0x43f5ac
call eax
test eax, eax
js 0x421a4f
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 0x421a56
mov ebp, 0xfffffffe
nop
nop
nop
nop
nop
cmp word [edi + ebp + 2], 0
lea ebp, [ebp + 2]
jne 0x421a10
mov edi, dword [esi + 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 0x421a30
sar ebp, 1
sar eax, 1
add eax, ebp
add eax, 2
test eax, eax
jns 0x421a5d
mov eax, 0xffffffff
jmp 0x421a5f
xor ebx, ebx
jmp 0x421cfe
xor ebx, ebx
jmp 0x421cf4
add eax, eax
push eax
call fcn.00407f60
add esp, 4
movzx ecx, word [edi]
mov dword [esp + 0xc], eax
test cx, cx
je 0x421a91
add edi, 2
mov eax, dword [esp + 0xc]
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edi]
add edi, 2
test cx, cx
jne 0x421a80
add ebp, 2
mov dword [esp + 8], ebp
mov word [esp + 0x20], 0xa5f8
xor ecx, ecx
mov dl, 1
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edi, byte [esp + ecx + 0x20]
mov esi, 0x570e77b
sub esi, ecx
and esi, 0x4300539
xor esi, edi
mov edi, esi
xor edi, 0xeebf1dbd
and esi, 1
mov ebp, edx
mov edx, 0x5478c420
sub edx, edi
add edi, 0xdf
mov ebx, edx
not ebx
and edx, 0x3d
and edi, 0xc2
or edi, edx
and ebx, 1
or ebx, edi
xor ebx, 0x3c
add ebx, esi
mov byte [esp + ecx + 0x20], bl
mov ecx, 1
mov edx, ebp
test dl, 1
mov edx, 0
jne 0x421ab0
movzx ecx, word [esp + 0x20]
mov word [eax], cx
add eax, 2
mov edx, dword [esp + 0x48c]
movzx ecx, word [edx]
test cx, cx
je 0x421b43
add edx, 2
mov esi, dword [esp + 0x498]
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x421b30
jmp 0x421b4a
mov esi, dword [esp + 0x498]
mov word [eax], 0
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push 0
push dword [esp + 0x10]
push eax
call dword [ecx + 0x14]
test eax, eax
js 0x421bbc
mov eax, dword [esp + 4]
mov ecx, dword [eax]
push 1
push 0
push eax
call dword [ecx + 0x4c]
test eax, eax
js 0x421bbc
mov eax, dword [esp + 4]
mov ecx, dword [eax]
lea edi, [esp + 0x270]
push 1
lea edx, [esp + 0x24]
push edx
push 0x104
push edi
push eax
call dword [ecx + 0xc]
test eax, eax
js 0x421bbc
mov edi, dword [esi + 4]
mov eax, 0xfffffffe
nop
cmp word [edi + eax + 2], 0
lea eax, [eax + 2]
jne 0x421ba0
sar eax, 1
mov ecx, dword [esp + 8]
add ecx, eax
jns 0x421bc3
mov ecx, 0xffffffff
jmp 0x421bc5
xor ebx, ebx
jmp 0x421cde
add ecx, ecx
push ecx
call fcn.00407f60
add esp, 4
movzx ecx, word [edi]
mov edx, eax
test cx, cx
je 0x421bf1
add edi, 2
mov edx, eax
nop
nop
nop
mov word [edx], cx
add edx, 2
movzx ecx, word [edi]
add edi, 2
test cx, cx
jne 0x421be0
mov dword [esp + 0x14], edx
mov dword [esp + 8], eax
mov word [esp + 2], 0x9d73
xor ecx, ecx
mov al, 1
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [esp + ecx + 2]
mov edi, ecx
or edi, 0xd166b27c
xor edi, esi
lea esi, [edi + 0x74ca6c1f]
mov ebx, esi
and ebx, 1
mov ebp, esi
and ebp, 0xfe
xor esi, 1
lea edx, [esi + edi]
add edx, 0x74ca6c1f
add edx, ebx
sub edx, ebp
mov byte [esp + ecx + 2], dl
mov ecx, 1
test al, 1
mov eax, 0
jne 0x421c10
movzx ecx, word [esp + 2]
mov eax, dword [esp + 0x14]
mov word [eax], cx
add eax, 2
mov esi, dword [esp + 0x48c]
movzx ecx, word [esi]
test cx, cx
je 0x421ca3
add esi, 2
mov edx, dword [esp + 0x498]
lea edi, [esp + 0x270]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [esi]
add esi, 2
test cx, cx
jne 0x421c90
jmp 0x421cb1
mov edx, dword [esp + 0x498]
lea edi, [esp + 0x270]
mov word [eax], 0
mov eax, dword [edx + 0x14]
dec eax
push 1
push eax
push dword [edx + 0x10]
push dword [edx + 0xc]
push edi
mov esi, dword [esp + 0x1c]
push esi
push dword [edx]
call fcn.00420df0
add esp, 0x1c
mov ebx, eax
push esi
call fcn.00407f70
add esp, 4
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [esp + 0xc]
call fcn.00407f70
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