Function at 0x436e40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov esi, ecx
mov eax, dword [ecx + 4]
test eax, eax
je 0x436e62
cmp eax, 2
je 0x436edb
jmp 0x437010
push 0xbbf966b4
push dword [0x44a870]
call fcn.0043c370
add esp, 8
test eax, eax
je 0x436e9f
mov ecx, dword [esi]
test ecx, ecx
je 0x436ecf
mov dword [esp], 0
mov edx, esp
push edx
push ecx
call eax
test eax, eax
je 0x436eab
cmp dword [esp], 0
je 0x436eab
mov dword [esi + 4], 3
jmp 0x436ecf
mov dword [esi + 4], 1
jmp 0x437010
lea eax, [esp + 0x40]
push eax
call fcn.0043cb50
add esp, 4
test al, al
je 0x436ecf
mov eax, dword [esp + 0x40]
mov ecx, 2
cmp eax, 3
je 0x436ecc
mov ecx, eax
mov dword [esi + 4], ecx
mov eax, dword [esi + 4]
cmp eax, 2
jne 0x437010
mov edi, dword [ebp + 0xc]
mov dword [esp], 0x1633153e
mov dword [esp + 4], 0x316f1701
mov dword [esp + 8], 0xe0e0b01
mov dword [esp + 0xc], 0x1a23011d
mov dword [esp + 0x10], 0x7a000e0d
mov byte [esp + 0x14], 0xf4
mov dword [esp + 0x15], 0
mov word [esp + 0x19], 0
mov eax, 0xaae42828
mov ecx, 0xd7
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + eax + 0x551bd7d8]
mov ebx, eax
or ebx, edx
not edx
or edx, ecx
and edx, ebx
mov ebx, edx
not ebx
and edx, 0x37
and ebx, 0xc8
sub edx, ebx
mov byte [esp + eax + 0x551bd7d8], dl
inc eax
dec ecx
cmp eax, 0xaae42843
jne 0x436f30
mov ebx, esp
lea eax, [esp + 0x70]
push ebx
push eax
call fcn.0043b490
add esp, 8
mov eax, dword [esi]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x4c], edi
mov eax, dword [ebp + 8]
mov dword [esp + 0x48], eax
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0x30
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0
lea eax, [esp + 0x40]
push 6
push eax
push dword [esp + 0x7c]
push dword [esp + 0x7c]
call fcn.0043b560
mov ecx, dword [esp]
mov edx, dword [esp + 4]
mov esi, dword [ebp + 0x10]
mov dword [esi + 4], edx
mov dword [esi], ecx
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov esi, dword [ebp + 0x14]
mov dword [esi], edx
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x20]
mov edx, dword [ebp + 0x18]
mov dword [edx], ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ebp + 0x1c]
mov dword [edx], ecx
jmp 0x437110
mov dword [esp + 0x40], 0xd7d6c92c
xor eax, eax
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax + 0x40]
mov edx, eax
not edx
or edx, 0x39d056ae
lea edi, [eax + edx]
inc edi
mov edx, edi
and edx, 0xfffffffd
mov ebx, edi
and ebx, 2
or edi, 2
imul edi, ebx
xor ebx, 2
imul ebx, edx
mov edx, eax
xor edx, 0x39d056ae
add edx, edi
add edx, ebx
lea edi, [ecx + ecx]
not edi
add edi, ecx
mov ebx, edx
not ebx
or ebx, edi
or edx, ecx
and edx, ebx
lea ecx, [edx - 0x2111b167]
mov edi, ecx
and edx, 1
and ecx, 0xfe
or ecx, edx
and edi, 1
lea ecx, [ecx + edi*2]
mov byte [esp + eax + 0x40], cl
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
cmp eax, 4
jb 0x437020
mov ebx, dword [esp + 0x40]
mov edi, dword [esi]
mov dword [esp], 0x14151a1b
mov dword [esp + 4], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
mov ecx, eax
add cl, 0x86
xor cl, byte [esp + eax]
add cl, 0x62
mov byte [esp + eax], cl
inc eax
cmp eax, 8
jne 0x4370b0
mov eax, dword [esp]
mov ecx, dword [0x44a87c]
test ecx, ecx
je 0x4370ee
xor edx, edx
mov esi, dword [0x44a880]
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0xba50defc
je 0x43711a
inc edx
cmp ecx, edx
jne 0x4370e0
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
mov dword [edx + 4], 0
mov ecx, dword [ebp + 0x14]
mov dword [ecx], ebx
mov dword [ecx + 4], 0
mov ecx, dword [ebp + 0x18]
mov dword [ecx], edi
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x18
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], edi
mov edx, dword [esi + edx*8 + 4]
cmp edx, eax
je 0x4370ee
mov eax, esp
push 0
push dword [esp + 0x3c]
push eax
push 0
push dword [ebp + 8]
push dword [esp + 0x50]
push 0x18
push edx
push dword [0x44a884]
call fcn.004395d0
add esp, 0x24
mov ecx, dword [esp]
mov ebx, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
jmp 0x4370ee