Function at 0x436ef0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x30
mov edi, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [eax + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x436f10
sar ecx, 1
mov edx, ecx
and edx, 0xfffd
mov esi, ecx
and esi, 2
or ecx, 2
imul ecx, esi
xor esi, 2
imul esi, edx
lea edx, [esi + ecx]
mov word [esp + 0x20], dx
add ecx, esi
add ecx, 2
mov word [esp + 0x22], cx
mov dword [esp + 0x24], eax
mov dword [esp + 8], 0x48494e4f
mov dword [esp + 0xc], 0
mov dword [esp + 0xf], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xa
ja 0x436fb9
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 + 8]
mov edx, 0xf5
sub edx, eax
add eax, 0x5fff270a
xor edx, eax
and edx, ecx
xor edx, eax
mov dword [esp + 4], edx
mov eax, dword [esp + 4]
add al, 0xba
mov ecx, dword [esp]
mov byte [esp + ecx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xb
jb 0x436f80
mov ebx, dword [esp + 8]
mov eax, dword [0x4412dc]
test eax, eax
je 0x43700e
xor ecx, ecx
mov edx, dword [0x4412e0]
nop
nop
cmp dword [edx + ecx*8], 0xd07a397f
je 0x436fe0
inc ecx
cmp eax, ecx
jne 0x436fd0
jmp 0x43700e
mov eax, dword [edx + ecx*8 + 4]
cmp eax, ebx
je 0x43700e
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x20]
push ecx
push 0
push 0
push 2
push edx
push dword [ebp + 8]
push 6
push dword [0x4412e4]
push eax
call fcn.004337a0
add esp, 0x24
mov ebx, eax
mov dword [esp + 8], 0xe3222d4b
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov word [esp + 0x14], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xd
ja 0x437079
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 8]
mov edx, 0xf9
sub edx, eax
add eax, 0x170d9b06
xor edx, eax
and edx, ecx
xor edx, eax
mov dword [esp + 4], edx
mov eax, dword [esp + 4]
add al, 0xd6
mov ecx, dword [esp]
mov byte [esp + ecx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xe
jb 0x437040
cmp ebx, dword [esp + 8]
jne 0x4371e9
mov dword [esp + 0x18], edi
push dword [esp + 0x1c]
call fcn.00431ab0
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], 0x48494e4f
mov dword [esp + 0xc], 0
mov dword [esp + 0xf], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 0xa
ja 0x4370fb
mov ecx, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 8]
mov edi, 0xf5
sub edi, ecx
add ecx, 0x5fff270a
xor edi, ecx
and edi, edx
xor edi, ecx
mov dword [esp + 4], edi
mov ecx, dword [esp + 4]
add cl, 0xba
mov edx, dword [esp]
mov byte [esp + edx + 8], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 0xb
jb 0x4370c0
mov ebx, dword [esp + 8]
mov ecx, dword [0x4412dc]
test ecx, ecx
je 0x43715c
xor edx, edx
mov edi, dword [0x4412e0]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + edx*8], 0xd07a397f
je 0x437130
inc edx
cmp ecx, edx
jne 0x437120
jmp 0x43715c
mov ecx, dword [edi + edx*8 + 4]
cmp ecx, ebx
je 0x43715c
lea edx, [esp + 0x1c]
lea edi, [esp + 0x20]
push edx
push eax
push esi
push 2
push edi
push dword [ebp + 8]
push 6
push dword [0x4412e4]
push ecx
call fcn.004337a0
add esp, 0x24
mov ebx, eax
test ebx, ebx
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
js 0x4371e0
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x437172
mov eax, dword [esi + 4]
mov dword [edi], eax
test edx, edx
je 0x4371e0
test ecx, ecx
je 0x4371db
mov eax, dword [edx]
mov ecx, dword [esi + 8]
cmp eax, ecx
jb 0x437185
mov eax, ecx
lea edx, [esi + 0xc]
mov ecx, eax
shr ecx, 2
mov edi, dword [ebp + 0x14]
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
mov ecx, eax
and ecx, 0xfffffffc
add dword [esp + 0x18], ecx
lea edx, [esi + ecx]
add edx, 0xc
mov ecx, eax
not ecx
or ecx, 3
add eax, ecx
inc eax
mov ecx, eax
shr ecx, 1
mov dword [esp + 0x28], edx
mov edi, dword [esp + 0x18]
xchg esi, edx
rep movsw word es:[edi], word [esi]
xchg esi, edx
mov edi, dword [esp + 0x18]
test al, 1
mov edx, dword [ebp + 0x18]
je 0x4371db
and eax, 0xfffffffe
mov ecx, dword [esp + 0x28]
movzx ecx, byte [ecx + eax]
mov byte [edi + eax], cl
mov eax, dword [esi + 8]
mov dword [edx], eax
push esi
call fcn.00431b40
add esp, 4
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret