Function at 0x4385d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x70
mov dword [esp + 0x2c], ecx
mov ebx, dword [ebp + 8]
mov dword [ebx + 8], 0
mov dword [ebx + 4], 0
mov dword [ebx], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x24], 0x100000
mov dword [esp + 8], 0
mov dword [esp + 0x38], 0x68696e6f
mov dword [esp + 0x3c], 0
mov byte [esp + 0x40], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 8
ja 0x438687
nop
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 + 0x38]
lea edx, [eax + 0x4286352]
lea esi, [eax + 0x52]
xor esi, edx
and edx, ecx
and esi, ecx
add eax, ecx
add eax, 0x4286352
lea ecx, [esi + edx*2]
sub eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add al, 0xc2
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x38], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 9
jb 0x438640
mov eax, dword [esp + 0x38]
mov ecx, dword [0x4489d0]
test ecx, ecx
je 0x4386de
xor edx, edx
mov esi, dword [0x4489d4]
nop
nop
nop
cmp dword [esi + edx*8], 0xd23749
je 0x4386b0
inc edx
cmp ecx, edx
jne 0x4386a0
jmp 0x4386de
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x4386de
lea eax, [esp + 0x24]
lea edx, [esp + 8]
push 4
push 0x3000
push eax
push 0
push edx
push 0xffffffffffffffff
push 6
push dword [0x4489d8]
push ecx
call fcn.004398f0
add esp, 0x24
test eax, eax
js 0x438d2a
mov dword [esp + 0x50], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x28], 0x10000
jmp 0x438747
mov eax, dword [esp + 0x44]
add eax, dword [esp + 0x38]
mov dword [esp + 0x28], eax
cmp eax, 0x7fffffff
jae 0x438c5d
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov dword [esp + 0x10], 0x68696e6f
lea eax, [esp + 0x14]
mov byte [eax + 4], 0
mov dword [eax], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 8
ja 0x4387c2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x10]
lea esi, [eax + 0x4286352]
lea edi, [eax + 0x52]
xor edi, esi
and esi, edx
and edi, edx
add eax, edx
add eax, 0x4286352
lea edx, [edi + esi*2]
sub eax, edx
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0xc2
mov edx, dword [esp]
mov byte [esp + edx + 0x10], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 9
jb 0x438780
mov eax, dword [esp + 0x10]
mov edx, dword [0x4489d0]
test edx, edx
je 0x438820
xor esi, esi
mov edi, dword [0x4489d4]
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + esi*8], 0x1a7c99fc
je 0x4387f0
inc esi
cmp edx, esi
jne 0x4387e0
jmp 0x438820
mov edx, dword [edi + esi*8 + 4]
cmp edx, eax
je 0x438820
push 0
push 0x1c
lea eax, [esp + 0x40]
push eax
push 0
push dword [esp + 0x38]
push ecx
push 6
push dword [0x4489d8]
push edx
call fcn.004398f0
add esp, 0x24
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0xbfffffff
ja 0x438c5d
test eax, eax
js 0x438730
cmp dword [esp + 0x48], 0x1000
jne 0x438730
cmp dword [esp + 0x4c], 1
je 0x438730
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x44], eax
jbe 0x4389fa
mov dword [esp + 0x10], 0x68696e6f
lea eax, [esp + 0x14]
mov byte [eax + 4], 0
mov dword [eax], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 8
ja 0x4388c2
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x10]
lea edx, [eax + 0x4286352]
lea esi, [eax + 0x52]
xor esi, edx
and edx, ecx
and esi, ecx
add eax, ecx
add eax, 0x4286352
lea ecx, [esi + edx*2]
sub eax, ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0xc2
mov ecx, dword [esp]
mov byte [esp + ecx + 0x10], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 9
jb 0x438880
mov eax, dword [0x4489d0]
test eax, eax
je 0x43891a
mov ecx, dword [esp + 0x10]
xor edx, edx
mov esi, dword [0x4489d4]
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0xe23f8252
je 0x4388f0
inc edx
cmp eax, edx
jne 0x4388e0
jmp 0x43891a
mov eax, dword [esi + edx*8 + 4]
cmp eax, ecx
je 0x43891a
push 0x8000
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x10]
push ecx
push 0xffffffffffffffff
push 4
push dword [0x4489d8]
push eax
call fcn.004398f0
add esp, 0x1c
mov dword [esp + 8], 0
mov eax, dword [esp + 0x44]
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], 0x68696e6f
lea eax, [esp + 0x14]
mov byte [eax + 4], 0
mov dword [eax], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 8
ja 0x438992
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x10]
lea edx, [eax + 0x4286352]
lea esi, [eax + 0x52]
xor esi, edx
and edx, ecx
and esi, ecx
add eax, ecx
add eax, 0x4286352
lea ecx, [esi + edx*2]
sub eax, ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0xc2
mov ecx, dword [esp]
mov byte [esp + ecx + 0x10], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 9
jb 0x438950
mov eax, dword [esp + 0x10]
mov ecx, dword [0x4489d0]
test ecx, ecx
je 0x4389ee
xor edx, edx
mov esi, dword [0x4489d4]
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0xd23749
je 0x4389c0
inc edx
cmp ecx, edx
jne 0x4389b0
jmp 0x4389ee
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x4389ee
push 4
push 0x3000
lea eax, [esp + 0x2c]
push eax
push 0
lea eax, [esp + 0x18]
push eax
push 0xffffffffffffffff
push 6
push dword [0x4489d8]
push ecx
call fcn.004398f0
add esp, 0x24
test eax, eax
js 0x438c5d
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 4]
push edx
push eax
push dword [esp + 0x10]
push dword [esp + 0x34]
call fcn.00438460
cmp eax, 0xbfffffff
ja 0x438730
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esp + 0x10]
push dword [esp + 0x18]
lea eax, [esp + 0x24]
push eax
call fcn.00438d40
add esp, 0x18
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
cmp esi, ecx
je 0x438730
mov eax, ecx
mov ecx, dword [ebx + 8]
mov dword [esp + 0xc], ecx
mov ecx, dword [ebx]
mov dword [esp + 0x20], ecx
mov edi, dword [ebx + 4]
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], eax
jmp 0x438a93
mov ebx, dword [ebp + 8]
mov edx, ecx
mov ecx, ebx
mov ebx, dword [esp + 0x68]
mov dword [esi + edx*4], ebx
add edi, 4
mov dword [ecx + 4], edi
mov esi, dword [esp + 0x64]
add esi, 4
cmp esi, eax
je 0x438c37
mov dword [esp + 0x64], esi
mov ebx, dword [esi]
sub ebx, dword [esp + 8]
add ebx, dword [esp + 0x28]
mov dword [esp + 0x68], ebx
mov edx, edi
mov esi, dword [esp + 0x20]
sub edx, esi
mov ecx, edx
sar ecx, 2
cmp edi, dword [esp + 0xc]
jne 0x438a70
mov dword [esp + 0xc], edx
lea eax, [ecx + 1]
mov edx, ecx
shr edx, 1
mov dword [esp + 0x60], ecx
add edx, ecx
cmp edx, eax
ja 0x438acf
mov edx, eax
mov dword [esp + 0x5c], edx
lea eax, [edx*4]
push eax
call fcn.00409200
add esp, 4
mov esi, eax
mov edx, dword [esp + 0x20]
test edx, edx
mov ebx, dword [ebp + 8]
je 0x438c13
cmp esi, edx
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x30], esi
jbe 0x438b50
lea eax, [edx + ebx]
cmp eax, esi
jbe 0x438b50
test ebx, ebx
je 0x438c00
mov edx, dword [esp + 0x20]
lea eax, [edx + ebx]
dec eax
mov ecx, dword [esp + 0x30]
add ecx, ebx
dec ecx
mov esi, edx
not esi
add esi, edi
and ebx, 7
je 0x438b93
neg ebx
xor edi, edi
nop
nop
nop
movzx edx, byte [eax + edi]
mov byte [ecx + edi], dl
dec edi
cmp ebx, edi
jne 0x438b30
mov ebx, dword [esp + 0xc]
add ebx, edi
add ecx, edi
add eax, edi
cmp esi, 7
jae 0x438b9c
jmp 0x438c00
mov eax, esi
mov ecx, ebx
shr ecx, 2
mov esi, edx
mov edi, eax
xchg esi, esi
rep movsd dword es:[edi], dword [esi]
xchg esi, esi
mov ecx, edx
mov edx, ebx
and edx, 0xfffffffc
add eax, edx
add edx, ecx
mov ecx, ebx
shr ecx, 1
and ecx, 1
mov ebx, edx
mov edi, eax
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
mov ebx, dword [esp + 0xc]
test bl, 1
je 0x438c00
and ebx, 2
movzx ecx, byte [edx + ebx]
mov byte [eax + ebx], cl
jmp 0x438c00
mov ebx, dword [esp + 0xc]
cmp esi, 7
jb 0x438c00
neg ebx
xor edx, edx
mov edi, ebx
movzx ebx, byte [eax + edx]
mov byte [ecx + edx], bl
movzx ebx, byte [eax + edx - 1]
mov byte [ecx + edx - 1], bl
movzx ebx, byte [eax + edx - 2]
mov byte [ecx + edx - 2], bl
movzx ebx, byte [eax + edx - 3]
mov byte [ecx + edx - 3], bl
movzx ebx, byte [eax + edx - 4]
mov byte [ecx + edx - 4], bl
movzx ebx, byte [eax + edx - 5]
mov byte [ecx + edx - 5], bl
movzx ebx, byte [eax + edx - 6]
mov byte [ecx + edx - 6], bl
movzx ebx, byte [eax + edx - 7]
mov byte [ecx + edx - 7], bl
mov ebx, edi
add edx, 0xfffffff8
cmp edi, edx
jne 0x438ba0
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push dword [esp + 0x20]
call fcn.00409210
add esp, 4
mov ebx, dword [ebp + 8]
mov esi, dword [esp + 0x30]
mov dword [ebx], esi
mov edx, dword [esp + 0x60]
lea edi, [esi + edx*4]
mov eax, dword [esp + 0x5c]
lea eax, [esi + eax*4]
mov dword [esp + 0xc], eax
mov dword [ebx + 8], eax
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x58]
jmp 0x438a75
mov ebx, ecx
mov ecx, eax
mov eax, dword [esp + 0x54]
test eax, eax
je 0x438730
cmp eax, ecx
je 0x438730
push eax
call fcn.00409210
add esp, 4
jmp 0x438730
mov dword [esp + 0x10], 0x68696e6f
mov dword [esp + 0x14], 0
mov byte [esp + 0x18], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 8
ja 0x438cd2
nop
nop
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 + 0x10]
lea edx, [eax + 0x4286352]
lea esi, [eax + 0x52]
xor esi, edx
and edx, ecx
and esi, ecx
add eax, ecx
add eax, 0x4286352
lea ecx, [esi + edx*2]
sub eax, ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0xc2
mov ecx, dword [esp]
mov byte [esp + ecx + 0x10], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 9
jb 0x438c90
mov eax, dword [0x4489d0]
test eax, eax
je 0x438d2a
mov ecx, dword [esp + 0x10]
xor edx, edx
mov esi, dword [0x4489d4]
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0xe23f8252
je 0x438d00
inc edx
cmp eax, edx
jne 0x438cf0
jmp 0x438d2a
mov eax, dword [esi + edx*8 + 4]
cmp eax, ecx
je 0x438d2a
push 0x8000
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x10]
push ecx
push 0xffffffffffffffff
push 4
push dword [0x4489d8]
push eax
call fcn.004398f0
add esp, 0x1c
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10