Function at 0x436be0
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], 0x3c3d3e3f
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov byte [esp + 0x1c], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xc
ja 0x436c5e
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x10]
mov edx, 0xd7
sub edx, eax
add eax, 0x6cb96f28
xor edx, eax
and edx, ecx
xor edx, eax
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0xc]
add al, 0xe8
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xd
jb 0x436c20
mov esi, dword [esp + 0x10]
mov eax, dword [0x441028]
test eax, eax
je 0x436cbc
xor ecx, ecx
mov edx, dword [0x44102c]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0x5fb66e8c
je 0x436c90
inc ecx
cmp eax, ecx
jne 0x436c80
jmp 0x436cbc
mov eax, dword [edx + ecx*8 + 4]
cmp eax, esi
je 0x436cbc
lea ecx, [esp + 0x20]
push ecx
push 0
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 6
push dword [0x441030]
push eax
call fcn.00433e50
add esp, 0x24
mov esi, eax
mov dword [esp + 0x10], 0xdb1a193b
mov dword [esp + 0x14], 0
mov dword [esp + 0x17], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xa
ja 0x436d2e
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, 0xfb
sub edx, eax
add eax, 0xfdeeb404
xor edx, eax
and edx, ecx
xor edx, eax
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0xc]
add al, 0xe4
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xb
jb 0x436cf0
cmp esi, dword [esp + 0x10]
jne 0x436f25
push dword [esp + 0x20]
call fcn.004324a0
add esp, 4
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], 0x3c3d3e3f
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov byte [esp + 0x1c], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xc
ja 0x436dbe
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov edx, dword [esp + 4]
movzx edx, byte [esp + edx + 0x10]
mov esi, 0xd7
sub esi, eax
add eax, 0x6cb96f28
xor esi, eax
and esi, edx
xor esi, eax
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0xc]
add al, 0xe8
mov edx, dword [esp + 4]
mov byte [esp + edx + 0x10], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xd
jb 0x436d80
mov ebx, dword [ebp + 0x14]
mov esi, dword [esp + 0x10]
mov eax, dword [0x441028]
test eax, eax
je 0x436e1e
xor edx, edx
mov edi, dword [0x44102c]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + edx*8], 0x5fb66e8c
je 0x436df0
inc edx
cmp eax, edx
jne 0x436de0
jmp 0x436e1e
mov eax, dword [edi + edx*8 + 4]
cmp eax, esi
je 0x436e1e
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 [0x441030]
push eax
call fcn.00433e50
add esp, 0x24
mov esi, eax
test ebx, ebx
je 0x436f19
test esi, esi
js 0x436f19
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x436f0e
mov eax, dword [esp + 8]
mov edx, dword [eax + 0xc]
shr edx, 1
mov eax, dword [ebx]
cmp eax, edx
jb 0x436e4a
mov eax, edx
mov dword [esp + 0x28], esi
test eax, eax
je 0x436f05
mov edx, dword [esp + 8]
add edx, 0x10
mov esi, eax
and esi, 3
je 0x436e9b
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 0x436e70
mov eax, dword [esp + 0x24]
mov esi, eax
sub esi, edi
mov ebx, dword [ebp + 0x14]
cmp eax, 4
jae 0x436eb0
jmp 0x436f05
mov esi, eax
cmp eax, 4
jb 0x436f05
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 0x436eb0
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.00432560
add esp, 4
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret