Function at 0x420480
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x3c
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0xf8fbfafd
mov word [esp + 0x20], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 5
ja 0x4204de
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x1c]
add eax, 0xf9ff0a83
xor eax, ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
add al, 0x81
mov ecx, dword [esp]
mov byte [esp + ecx + 0x1c], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 6
jb 0x4204b0
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x44ab98]
test ecx, ecx
je 0x420534
xor edx, edx
mov esi, dword [0x44ab9c]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0xcecd21fd
je 0x420510
inc edx
cmp ecx, edx
jne 0x420500
jmp 0x420534
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x420534
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 5
push 4
push dword [0x44aba0]
push ecx
call fcn.0043cdc0
add esp, 0x1c
cmp eax, 0xc0000004
jne 0x4205d0
push dword [esp + 0x18]
call fcn.0043ae30
add esp, 4
mov ebp, eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], 0xf8fbfafd
mov word [esp + 0x20], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 5
ja 0x42059e
nop
mov eax, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x1c]
add eax, 0xf9ff0a83
xor eax, edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
add al, 0x81
mov edx, dword [esp]
mov byte [esp + edx + 0x1c], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 6
jb 0x420570
mov eax, dword [esp + 0x1c]
mov edx, dword [0x44ab98]
test edx, edx
je 0x4205f6
xor esi, esi
mov edi, dword [0x44ab9c]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + esi*8], 0xcecd21fd
je 0x4205d7
inc esi
cmp edx, esi
jne 0x4205c0
jmp 0x4205f6
xor ebx, ebx
jmp 0x4208dd
mov edx, dword [edi + esi*8 + 4]
cmp edx, eax
je 0x4205f6
push 0
push ecx
push ebp
push 5
push 4
push dword [0x44aba0]
push edx
call fcn.0043cdc0
add esp, 0x1c
xor ebx, ebx
test eax, eax
js 0x4208d4
mov edi, dword [ebp]
mov eax, edi
mov ecx, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea edx, [ecx + eax]
inc ebx
mov eax, dword [ecx + eax]
mov ecx, edx
test eax, eax
jne 0x420610
mov eax, ebx
or eax, 0x104
mov ecx, ebx
and ecx, 0x104
imul eax, ecx
xor ecx, 0x104
and ebx, 0xfffffefb
imul ebx, ecx
add ebx, eax
mov dword [esp + 0x14], ebp
jns 0x42064d
mov ebx, 0xffffffff
jmp 0x42064f
add ebx, ebx
push ebx
call fcn.00409a50
add esp, 4
mov ebp, eax
mov dword [esp + 8], eax
mov eax, dword [esp + 0x14]
jmp 0x420682
mov esi, ebp
add eax, edi
lea ebp, [esi + 2]
mov word [esi], 0xa
mov edi, dword [eax]
test edi, edi
je 0x4206b3
mov ecx, dword [eax + edi + 0x3c]
movzx edx, word [ecx]
test dx, dx
je 0x420670
add ecx, 2
mov esi, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [esi], dx
add esi, 2
movzx edx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4206a0
jmp 0x420672
xor ebx, ebx
mov eax, dword [esp + 8]
cmp ebp, eax
je 0x4208c7
mov word [ebp], 0
movzx ecx, word [eax]
test cx, cx
je 0x420714
xor ebx, ebx
mov eax, dword [esp + 8]
jmp 0x4206ee
add ebx, edx
movzx ecx, word [eax + 2]
add eax, 2
test cx, cx
je 0x420714
cmp eax, ebp
jae 0x420714
movzx edi, cx
cmp edi, 0x800
mov ecx, 3
sbb ecx, 0
mov edx, 1
cmp edi, 0x80
jb 0x4206e0
mov edx, ecx
jmp 0x4206e0
lea eax, [ebx + 1]
mov dword [esp + 0x34], eax
push eax
call fcn.00409a50
add esp, 4
mov dword [esp + 0x10], eax
test ebx, ebx
jle 0x420825
mov eax, dword [esp + 0x10]
cmp dword [esp + 8], ebp
jae 0x420825
mov eax, dword [esp + 0x10]
lea edi, [eax + ebx]
add dword [esp + 0x34], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x30], edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, word [ecx]
test dx, dx
je 0x420825
mov dword [esp + 0x38], ecx
cmp dx, 0x7f
ja 0x420790
mov byte [eax], dl
mov ebp, 1
jmp 0x420810
mov edi, eax
not edi
mov ebp, edi
mov ecx, dword [esp + 0x34]
and ebp, ecx
xor edi, ecx
lea edi, [edi + ebp*2]
movzx ecx, dx
cmp edi, 2
jb 0x4207d0
cmp ecx, 0x7ff
ja 0x4207d0
mov ecx, edx
shr ecx, 6
add cl, 0xc0
mov byte [eax], cl
and dl, 0x3f
or dl, 0x80
mov byte [eax + 1], dl
mov ebp, 2
mov edi, dword [esp + 0x30]
jmp 0x420810
xor ebp, ebp
cmp edi, 3
mov edi, dword [esp + 0x30]
jb 0x420810
mov ebp, ecx
shr ecx, 0xc
or cl, 0xe0
mov byte [eax], cl
shr ebp, 6
mov ecx, ebp
mov byte [esp + 7], cl
mov ecx, ebp
xor byte [esp + 7], 0xc0
or cl, 0x3f
and cl, byte [esp + 7]
add cl, 0x80
mov byte [eax + 1], cl
and dl, 0x3f
or dl, 0x80
mov byte [eax + 2], dl
mov ebp, 3
add eax, ebp
cmp eax, edi
jae 0x420825
mov edx, dword [esp + 0x38]
lea ecx, [edx + 2]
cmp edx, esi
jb 0x420760
mov byte [eax], 0
mov dword [esp + 0x1c], 0x7b787495
mov dword [esp + 0x20], 0x7968697c
mov dword [esp + 0x24], 0x586ba06e
mov word [esp + 0x28], 0xd265
mov dword [esp + 0x2a], 0
mov byte [esp + 0x2e], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x12
ja 0x42089e
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x1c]
add eax, 0x4666596d
xor eax, ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
add al, 0x58
mov ecx, dword [esp]
mov byte [esp + ecx + 0x1c], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x13
jb 0x420870
lea eax, [esp + 0x1c]
mov ecx, dword [esp + 0x50]
push ebx
mov esi, dword [esp + 0x14]
push esi
push eax
call fcn.0040a340
mov ebx, eax
push esi
call fcn.00409a60
add esp, 4
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 8]
jmp 0x4208cb
mov ebp, dword [esp + 0x14]
push eax
call fcn.00409a60
add esp, 4
push ebp
call fcn.0043aed0
add esp, 4
mov eax, ebx
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret