Function at 0x421de0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov dword [esp + 0x20], 0
mov dword [esp + 0x10], 0x68696e6f
mov dword [esp + 0x14], 0
mov byte [esp + 0x18], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 8
ja 0x421e5c
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x10]
lea edx, [eax + 0x52]
add eax, ecx
and edx, ecx
add edx, edx
sub eax, edx
add eax, 0x4286352
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
add al, 0xc2
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 9
jb 0x421e20
mov eax, dword [esp + 0x10]
mov ecx, dword [0x4489d0]
test ecx, ecx
je 0x421eb4
xor edx, edx
mov esi, dword [0x4489d4]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0xe4aa2089
je 0x421e90
inc edx
cmp ecx, edx
jne 0x421e80
jmp 0x421eb4
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x421eb4
lea eax, [esp + 0x20]
push eax
push 0
push 0
push 5
push 4
push dword [0x4489d8]
push ecx
call fcn.004398f0
add esp, 0x1c
cmp eax, 0xc0000004
jne 0x421f72
push dword [esp + 0x20]
call fcn.00437c50
add esp, 4
mov edi, eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], 0x68696e6f
mov dword [esp + 0x14], 0
mov byte [esp + 0x18], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 8
ja 0x421f3c
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov edx, dword [esp + 4]
movzx edx, byte [esp + edx + 0x10]
lea esi, [eax + 0x52]
add eax, edx
and esi, edx
add esi, esi
sub eax, esi
add eax, 0x4286352
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
add al, 0xc2
mov edx, dword [esp + 4]
mov byte [esp + edx + 0x10], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 9
jb 0x421f00
mov eax, dword [esp + 0x10]
mov edx, dword [0x4489d0]
test edx, edx
je 0x421f9a
mov ebx, edi
xor esi, esi
mov edi, dword [0x4489d4]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + esi*8], 0xe4aa2089
je 0x421f79
inc esi
cmp edx, esi
jne 0x421f60
mov edi, ebx
jmp 0x421f9a
xor ebx, ebx
jmp 0x422276
mov edx, dword [edi + esi*8 + 4]
cmp edx, eax
mov edi, ebx
je 0x421f9a
push 0
push ecx
push edi
push 5
push 4
push dword [0x4489d8]
push edx
call fcn.004398f0
add esp, 0x1c
xor ebx, ebx
test eax, eax
js 0x42226d
mov eax, dword [edi]
mov ecx, edi
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 0x421fb0
mov eax, ebx
and eax, 0xfffffefb
mov ecx, ebx
and ecx, 0x104
or ebx, 0x104
imul ebx, ecx
xor ecx, 0x104
imul ecx, eax
add ebx, ecx
jns 0x421fe9
mov ebx, 0xffffffff
jmp 0x421feb
add ebx, ebx
push ebx
call fcn.00409200
add esp, 4
mov esi, eax
mov edx, dword [edi]
mov dword [esp + 8], edi
mov eax, edi
mov edi, esi
jmp 0x42201e
mov word [edi], 0xa
add edi, 2
mov edx, dword [eax]
test edx, edx
je 0x422043
mov ecx, dword [eax + edx + 0x3c]
add eax, edx
movzx edx, word [ecx]
test dx, dx
je 0x422010
add ecx, 2
nop
mov word [edi], dx
add edi, 2
movzx edx, word [ecx]
add ecx, 2
test dx, dx
jne 0x422030
jmp 0x422010
cmp edi, esi
mov dword [esp + 0x2c], esi
je 0x422187
mov word [edi], 0
movzx ecx, word [esi]
test cx, cx
je 0x422192
xor ebx, ebx
mov eax, esi
jmp 0x42207d
inc ebx
movzx ecx, word [eax + 2]
add eax, 2
test cx, cx
je 0x4220ad
cmp eax, edi
jae 0x4220ad
cmp cx, 0x7f
jbe 0x422070
movzx ecx, cx
cmp ecx, 0x7ff
ja 0x4220a0
add ebx, 2
jmp 0x422071
mov ecx, ebx
and ecx, 3
xor ebx, 3
lea ebx, [ebx + ecx*2]
jmp 0x422071
lea esi, [ebx + 1]
push esi
call fcn.00409200
add esp, 4
test ebx, ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], eax
jle 0x4221ac
lea ecx, [eax + ebx]
mov dword [esp + 0x38], ecx
add esi, eax
mov dword [esp + 0x34], esi
mov ebx, eax
mov edx, dword [esp + 0x2c]
jmp 0x4220f6
mov byte [ebx], cl
mov esi, 1
add edx, 2
add ebx, esi
cmp ebx, dword [esp + 0x38]
jae 0x4221ae
cmp edx, edi
jae 0x4221ae
movzx ecx, word [edx]
test cx, cx
je 0x4221ae
cmp cx, 0x7f
jbe 0x4220e0
mov eax, ebx
not eax
add eax, dword [esp + 0x34]
movzx esi, cx
cmp esi, 0x7ff
ja 0x422150
xor esi, esi
cmp eax, 2
jb 0x4220e7
mov eax, ecx
shr eax, 6
add al, 0xc0
mov byte [ebx], al
and cl, 0x3f
or cl, 0x80
mov byte [ebx + 1], cl
mov esi, 2
jmp 0x4220e7
mov dword [esp + 0x30], esi
xor esi, esi
cmp eax, 3
jb 0x4220e7
mov esi, dword [esp + 0x30]
mov eax, esi
shr eax, 0xc
or al, 0xe0
mov byte [ebx], al
mov eax, esi
shr eax, 6
and al, 0x3f
or al, 0x80
mov byte [ebx + 1], al
and cl, 0x3f
or cl, 0x80
mov byte [ebx + 2], cl
mov esi, 3
jmp 0x4220e7
xor ebx, ebx
mov edi, dword [esp + 8]
jmp 0x422261
mov dword [esp + 0x28], 0
push 1
call fcn.00409200
add esp, 4
mov ebx, eax
mov dword [esp + 0x24], eax
jmp 0x4221ae
mov ebx, eax
mov edi, dword [esp + 8]
mov byte [ebx], 0
mov dword [esp + 0x10], 0x2e253b46
mov dword [esp + 0x14], 0x343d3c29
mov dword [esp + 0x18], 0x23207f23
mov dword [esp + 0x1c], 0xa926
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xf
ja 0x422240
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x10]
lea edx, [eax + 0xe9]
and edx, ecx
add eax, 0x92cc26e9
mov esi, eax
xor esi, ecx
and eax, ecx
lea ecx, [esi + eax*2]
add eax, edx
mov edx, ecx
not edx
and edx, eax
not eax
and eax, ecx
sub eax, edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
add al, 0xa1
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x10
jb 0x4221f0
lea eax, [esp + 0x10]
mov ecx, dword [ebp + 8]
push dword [esp + 0x28]
mov esi, dword [esp + 0x28]
push esi
push eax
call fcn.00409c00
mov ebx, eax
push esi
call fcn.00409210
add esp, 4
push dword [esp + 0x2c]
call fcn.00409210
add esp, 4
push edi
call fcn.00437d10
add esp, 4
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret