Function at 0x436510
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x30
mov dword [esp + 0x10], 0x48494e4f
mov dword [esp + 0x14], 0
mov dword [esp + 0x17], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xa
ja 0x43658e
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 + 0x10]
mov edx, 0xf5
sub edx, eax
add eax, 0x5fff270a
xor edx, eax
and edx, ecx
xor edx, eax
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0xc]
add al, 0xba
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xb
jb 0x436550
mov esi, dword [esp + 0x10]
mov eax, dword [0x4412dc]
test eax, eax
je 0x4365ec
xor ecx, ecx
mov edx, dword [0x4412e0]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0x5fb66e8c
je 0x4365c0
inc ecx
cmp eax, ecx
jne 0x4365b0
jmp 0x4365ec
mov eax, dword [edx + ecx*8 + 4]
cmp eax, esi
je 0x4365ec
lea ecx, [esp + 0x20]
push ecx
push 0
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 6
push dword [0x4412e4]
push eax
call fcn.004337a0
add esp, 0x24
mov esi, eax
mov dword [esp + 0x10], 0xcb8a8db3
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xf
ja 0x43665e
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x10]
mov edx, 0xbd
sub edx, eax
add eax, 0x4085cb42
xor edx, eax
and edx, ecx
xor edx, eax
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0xc]
add al, 0x32
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x10
jb 0x436620
cmp esi, dword [esp + 0x10]
jne 0x436855
push dword [esp + 0x20]
call fcn.00431ab0
add esp, 4
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], 0x48494e4f
mov dword [esp + 0x14], 0
mov dword [esp + 0x17], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xa
ja 0x4366ee
nop
nop
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]
mov esi, 0xf5
sub esi, eax
add eax, 0x5fff270a
xor esi, eax
and esi, edx
xor esi, eax
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0xc]
add al, 0xba
mov edx, dword [esp + 4]
mov byte [esp + edx + 0x10], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xb
jb 0x4366b0
mov ebx, dword [ebp + 0x14]
mov esi, dword [esp + 0x10]
mov eax, dword [0x4412dc]
test eax, eax
je 0x43674e
xor edx, edx
mov edi, dword [0x4412e0]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + edx*8], 0x5fb66e8c
je 0x436720
inc edx
cmp eax, edx
jne 0x436710
jmp 0x43674e
mov eax, dword [edi + edx*8 + 4]
cmp eax, esi
je 0x43674e
lea edx, [esp + 0x20]
push edx
push ecx
mov ecx, dword [esp + 0x10]
push ecx
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 6
push dword [0x4412e4]
push eax
call fcn.004337a0
add esp, 0x24
mov esi, eax
test ebx, ebx
je 0x436849
test esi, esi
js 0x436849
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x43683e
mov eax, dword [esp + 8]
mov edx, dword [eax + 0xc]
shr edx, 1
mov eax, dword [ebx]
cmp eax, edx
jb 0x43677a
mov eax, edx
mov dword [esp + 0x28], esi
test eax, eax
je 0x436835
mov edx, dword [esp + 8]
add edx, 0x10
mov esi, eax
and esi, 3
je 0x4367cb
mov dword [esp + 0x24], eax
xor edi, edi
nop
nop
nop
nop
nop
nop
movzx eax, word [edx]
xor ebx, ebx
test ax, ax
setne bl
lea edx, [edx + ebx*2]
mov word [ecx], ax
add ecx, 2
inc edi
cmp esi, edi
jne 0x4367a0
mov eax, dword [esp + 0x24]
mov esi, eax
sub esi, edi
mov ebx, dword [ebp + 0x14]
cmp eax, 4
jae 0x4367e0
jmp 0x436835
mov esi, eax
cmp eax, 4
jb 0x436835
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx eax, word [edx]
xor ebx, ebx
test ax, ax
setne bl
mov word [ecx], ax
lea eax, [edx + ebx*2]
movzx edx, word [edx + ebx*2]
xor ebx, ebx
test dx, dx
setne bl
mov word [ecx + 2], dx
lea edx, [eax + ebx*2]
movzx eax, word [eax + ebx*2]
xor ebx, ebx
test ax, ax
setne bl
mov word [ecx + 4], ax
lea eax, [edx + ebx*2]
movzx edi, word [edx + ebx*2]
xor edx, edx
test di, di
setne dl
lea edx, [eax + edx*2]
mov word [ecx + 6], di
add ecx, 8
add esi, 0xfffffffc
jne 0x4367e0
mov ebx, dword [ebp + 0x14]
mov word [ecx], 0
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 8]
mov eax, dword [eax + 0xc]
shr eax, 1
mov dword [ebx], eax
push dword [esp + 8]
call fcn.00431b40
add esp, 4
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret