Function at 0x436b90
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 + 0x18], 0x48494e4f
mov dword [esp + 0x1c], 0
mov dword [esp + 0x1f], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xa
ja 0x436c09
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 + 0x18]
mov edx, 0xf5
sub edx, eax
add eax, 0x5fff270a
xor edx, eax
and edx, ecx
xor edx, eax
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x14]
add al, 0xba
mov ecx, dword [esp]
mov byte [esp + ecx + 0x18], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xb
jb 0x436bd0
mov ebx, dword [ebp + 0xc]
mov esi, dword [esp + 0x18]
mov eax, dword [0x4412dc]
test eax, eax
je 0x436c6a
xor ecx, ecx
mov edx, dword [0x4412e0]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0xacfd81c1
je 0x436c40
inc ecx
cmp eax, ecx
jne 0x436c30
jmp 0x436c6a
mov eax, dword [edx + ecx*8 + 4]
cmp eax, esi
je 0x436c6a
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 1
push ebx
push dword [ebp + 8]
push 6
push dword [0x4412e4]
push eax
call fcn.004337a0
add esp, 0x24
mov esi, eax
cmp esi, 0xc0000023
jne 0x436ede
push dword [esp + 0x10]
call fcn.00431ab0
add esp, 4
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x18], 0x48494e4f
mov dword [esp + 0x1c], 0
mov dword [esp + 0x1f], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xa
ja 0x436cf9
nop
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 + 0x18]
mov esi, 0xf5
sub esi, eax
add eax, 0x5fff270a
xor esi, eax
and esi, edx
xor esi, eax
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x14]
add al, 0xba
mov edx, dword [esp]
mov byte [esp + edx + 0x18], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xb
jb 0x436cc0
mov esi, dword [esp + 0x18]
mov eax, dword [0x4412dc]
test eax, eax
je 0x436d4c
xor edx, edx
mov edi, dword [0x4412e0]
nop
nop
cmp dword [edi + edx*8], 0xacfd81c1
je 0x436d20
inc edx
cmp eax, edx
jne 0x436d10
jmp 0x436d4c
mov eax, dword [edi + edx*8 + 4]
cmp eax, esi
je 0x436d4c
lea edx, [esp + 0x10]
push edx
push ecx
mov ecx, dword [esp + 0xc]
push ecx
push 1
push ebx
push dword [ebp + 8]
push 6
push dword [0x4412e4]
push eax
call fcn.004337a0
add esp, 0x24
mov esi, eax
test esi, esi
js 0x436ed2
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x436e48
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x436e3d
mov eax, dword [esp + 4]
mov eax, dword [eax + 0x10]
shr eax, 1
mov ecx, dword [ecx]
cmp ecx, eax
jb 0x436d7e
mov ecx, eax
test ecx, ecx
je 0x436e35
mov dword [esp + 8], esi
mov ebx, dword [esp + 4]
add ebx, 0x14
mov esi, ecx
and esi, 3
je 0x436dc6
mov dword [esp + 0xc], ecx
xor edx, edx
nop
nop
movzx ecx, word [ebx]
xor eax, eax
test cx, cx
setne al
lea ebx, [ebx + eax*2]
mov word [edi], cx
add edi, 2
inc edx
cmp esi, edx
jne 0x436da0
mov eax, dword [esp + 0xc]
mov ecx, eax
sub ecx, edx
mov edx, dword [ebp + 0x18]
jmp 0x436dc8
mov eax, ecx
cmp eax, 4
mov esi, dword [esp + 8]
jb 0x436e35
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx eax, word [ebx]
xor edx, edx
test ax, ax
setne dl
mov word [edi], ax
lea eax, [ebx + edx*2]
movzx edx, word [ebx + edx*2]
xor ebx, ebx
test dx, dx
setne bl
mov word [edi + 2], dx
lea edx, [eax + ebx*2]
movzx eax, word [eax + ebx*2]
xor ebx, ebx
test ax, ax
setne bl
mov word [edi + 4], ax
lea eax, [edx + ebx*2]
movzx edx, word [edx + ebx*2]
xor ebx, ebx
test dx, dx
setne bl
lea ebx, [eax + ebx*2]
mov word [edi + 6], dx
add edi, 8
add ecx, 0xfffffffc
jne 0x436de0
mov edx, dword [ebp + 0x18]
mov word [edi], 0
mov ecx, dword [ebp + 0x14]
mov eax, dword [esp + 4]
mov eax, dword [eax + 0x10]
shr eax, 1
mov dword [ecx], eax
mov edi, dword [ebp + 0x20]
test edx, edx
je 0x436e58
mov eax, dword [esp + 4]
mov eax, dword [eax + 4]
mov dword [edx], eax
test edi, edi
je 0x436ed2
mov edx, dword [ebp + 0x1c]
test edx, edx
je 0x436ec9
mov ebx, dword [edi]
mov eax, dword [esp + 4]
mov eax, dword [eax + 0xc]
cmp ebx, eax
jb 0x436e72
mov ebx, eax
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 8]
add eax, ecx
mov ecx, ebx
shr ecx, 2
mov dword [esp + 8], ebx
and ebx, 0xfffffffc
mov edi, edx
add edx, ebx
add ebx, eax
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov ecx, dword [esp + 8]
mov eax, ecx
not eax
or eax, 3
add ecx, eax
inc ecx
mov dword [esp + 0xc], ecx
shr ecx, 1
mov dword [esp + 8], ebx
mov edi, edx
mov eax, dword [esp + 8]
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
mov eax, dword [esp + 0xc]
test al, 1
mov edi, dword [ebp + 0x20]
je 0x436ec9
and eax, 0xfffffffe
movzx ecx, byte [ebx + eax]
mov byte [edx + eax], cl
mov eax, dword [esp + 4]
mov eax, dword [eax + 0xc]
mov dword [edi], eax
push dword [esp + 4]
call fcn.00431b40
add esp, 4
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret