Function at 0x436c72
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4847f0
call fcn.0047f2b0
sub esp, 0x4c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
movzx eax, word [edi + 7]
push eax
movzx eax, word [edi + 5]
push eax
push 0x4ab6a0
push 0x4ab674
push 6
push 0x4b4d28
call fcn.0041d96d
add esp, 0x18
mov ecx, esi
call fcn.004372a8
cmp byte [edi], 0x6f
movzx ebx, word [edi + 7]
movzx eax, word [edi + 5]
sete byte [ebp + 0xb]
imul ebx, eax
test ebx, ebx
mov dword [ebp - 0x28], ebx
je 0x43700b
lea eax, [ebx + 7]
push 8
cdq
pop ecx
mov dword [ebp - 0x20], ebx
idiv ecx
cmp byte [esi + 0x6c4], 0
mov dword [ebp - 0x18], eax
je 0x436d45
lea ecx, [esi + 0x1cc]
lea eax, [eax + ebx*4]
push eax
mov edx, dword [ecx]
call dword [edx + 0x10]
push dword [ebp - 0x18]
mov ecx, esi
mov dword [ebp - 0x14], eax
push eax
call fcn.00438acc
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call fcn.0040c5b8
cmp byte [ebp + 0xb], 0
pop ecx
pop ecx
mov ecx, eax
mov dword [ebp - 0x20], ecx
je 0x436d26
mov eax, dword [esi + 0x1e4]
imul eax, ecx
jmp 0x436d2f
lea eax, [ecx + 7]
push 8
cdq
pop ecx
idiv ecx
mov ecx, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
add eax, ecx
mov ecx, esi
push eax
call fcn.00438acc
jmp 0x436dee
mov ecx, esi
call fcn.00438ade
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x1c], eax
call fcn.0042b9d8
push dword [ebp - 0x1c]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.0042c2af
push dword [ebp - 0x1c]
mov ecx, esi
mov dword [ebp - 0x24], eax
push eax
call fcn.00438acc
cmp byte [ebp + 0xb], 0
je 0x436d85
mov eax, dword [esi + 0x1e4]
imul eax, ebx
jmp 0x436d88
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x18]
add eax, ecx
lea ecx, [esi + 0x1cc]
mov dword [ebp - 0x10], eax
add eax, eax
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
add eax, eax
lea ecx, [esi + 0xa4]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
push dword [ebp - 0x24]
call fcn.004200e1
cmp eax, dword [ebp - 0x10]
je 0x436de2
push dword [ebp - 0x10]
lea eax, [ebp - 0x34]
push 0x4ab64c
push eax
call fcn.0042a2b7
add esp, 0xc
lea eax, [ebp - 0x34]
push 0x49339c
push eax
call fcn.0047f322
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.0042ba9a
test byte [esi + 0x7a5], 2
je 0x43700b
lea ecx, [esi + 0x6c8]
push ebx
mov eax, dword [ecx]
call dword [eax + 0x10]
mov edx, dword [esi + 0x1e8]
lea ecx, [esi + 0x6e0]
imul edx, ebx
mov dword [ebp - 0x24], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x10]
push dword [ebp - 0x14]
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x10], eax
call fcn.0040c600
and dword [ebp - 0x1c], 0
test ebx, ebx
jle 0x436e57
lea ecx, [ebp - 0x34]
call fcn.0040c613
xor al, byte [esi + 0x6c4]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x24]
inc dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x28]
cmp dword [ebp - 0x1c], ebx
mov byte [edx + ecx], al
jl 0x436e35
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
add eax, ecx
cmp byte [ebp + 0xb], 0
mov dword [ebp - 0x18], eax
je 0x436efe
lea ecx, [ebp - 0x58]
call fcn.0042b9d8
mov eax, dword [esi + 0x1e8]
lea ecx, [ebp - 0x58]
imul eax, dword [ebp - 0x20]
push eax
mov dword [ebp - 4], 1
call fcn.0042c2af
push dword [ebp - 0x20]
mov ecx, dword [esi + 0x1ac]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x18]
mov edx, dword [ecx]
push eax
call dword [edx]
and dword [ebp + 8], 0
test ebx, ebx
jle 0x436ef0
cmp byte [esi + 0x6c4], 0
je 0x436ecc
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
cmp byte [ecx + eax], 0
je 0x436ecc
mov ecx, dword [ebp - 0x10]
mov eax, dword [esi + 0x1ec]
mov dword [ecx], eax
jmp 0x436edf
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
mov ecx, dword [eax]
mov dword [edx], ecx
add eax, dword [esi + 0x1e8]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x1e8]
inc dword [ebp + 8]
add dword [ebp - 0x10], eax
cmp dword [ebp + 8], ebx
jl 0x436eaa
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.0042ba9a
jmp 0x436f63
push eax
lea ecx, [ebp - 0x40]
call fcn.0040c600
and dword [ebp - 0x1c], 0
test ebx, ebx
jle 0x436f63
cmp byte [esi + 0x6c4], 0
je 0x436f2c
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
cmp byte [ecx + eax], 0
je 0x436f2c
mov eax, dword [esi + 0x1ec]
jmp 0x436f4d
lea ecx, [ebp - 0x40]
call fcn.0040c613
xor al, byte [esi + 0x6c4]
mov ebx, dword [ebp - 0x28]
push 0
mov byte [ebp + 0xb], al
pop eax
setne al
mov eax, dword [esi + eax*4 + 0x1ec]
mov ecx, dword [ebp - 0x10]
inc dword [ebp - 0x1c]
mov dword [ecx], eax
mov eax, dword [esi + 0x1e8]
add dword [ebp - 0x10], eax
cmp dword [ebp - 0x1c], ebx
jl 0x436f0f
lea ebx, [esi + 0x728]
mov ecx, ebx
mov dword [ebp + 8], ebx
call fcn.0042af7d
movzx eax, word [edi + 7]
push eax
mov dword [ebp - 4], 2
movzx eax, word [edi + 5]
push eax
push 0x4ab6a0
push 0x4ab674
push 6
push 0x4b4d28
call fcn.0041d96d
movzx ecx, word [edi + 5]
lea eax, [esi + 0x6bc]
add esp, 0x18
mov dword [eax], ecx
mov eax, dword [eax]
movzx ecx, word [edi + 7]
mov dword [esi + 0x6c0], ecx
dec eax
movzx ecx, word [edi + 1]
cmp ecx, eax
jge 0x436fc0
mov eax, ecx
mov dword [esi + 0x6f8], eax
mov eax, dword [esi + 0x6c0]
movzx ecx, word [edi + 3]
dec eax
cmp ecx, eax
jge 0x436fd7
mov eax, ecx
mov ecx, esi
mov dword [esi + 0x6fc], eax
call fcn.0043737b
mov ecx, esi
call fcn.0043750f
and byte [esi + 0x6c7], 0
and byte [esi + 0x6c6], 0
or dword [ebp - 4], 0xffffffff
mov ecx, ebx
mov byte [esi + 0x6c5], 1
call fcn.0042af85
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4