Function at 0x436090
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov dword [esp + 0x14], ecx
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0xc], 0
mov dword [esp], 0xd8dbdac5
mov dword [esp + 4], 0
mov edi, 0xeb3b672f
mov esi, 0x14c498d0
movzx edx, byte [esp + edi + 0x14c498d1]
mov ebx, edx
xor ebx, edi
or ebx, esi
mov eax, ebx
shr al, 1
and al, 1
mov ecx, ebx
not cl
mov ah, cl
and ah, 0x3d
mul ah
add al, al
sub dl, al
test bl, 2
sete al
or cl, 2
mul cl
add al, al
sub dl, al
movzx eax, dl
add eax, edi
add al, 0x15
mov byte [esp + edi + 0x14c498d1], al
inc edi
dec esi
cmp edi, 0xeb3b6737
jne 0x4360c0
mov ebx, dword [esp]
mov eax, dword [0x4490f4]
test eax, eax
je 0x436156
xor ecx, ecx
mov edx, dword [0x4490f8]
nop
nop
cmp dword [edx + ecx*8], 0x9abdb589
je 0x436130
inc ecx
cmp eax, ecx
jne 0x436120
jmp 0x436156
mov eax, dword [edx + ecx*8 + 4]
cmp eax, ebx
je 0x436156
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 5
push 0x10
push eax
push dword [0x4490fc]
call fcn.00438910
add esp, 0x1c
mov ebx, eax
mov dword [esp], 0xd7969964
mov word [esp + 4], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax]
mov edx, eax
and edx, 4
mov esi, eax
and esi, 2
mov edi, esi
xor edi, 2
imul edi, edx
or edx, 2
imul edx, esi
add edx, edi
mov esi, eax
xor esi, 0x990991e6
mov edi, edx
and edi, esi
xor esi, edx
lea edx, [esi + edi*2]
xor edx, ecx
add edx, 0x65886211
mov ecx, edx
and ecx, 1
xor edx, 1
lea ecx, [edx + ecx*2]
add cl, 0x70
mov byte [esp + eax], cl
inc eax
cmp eax, 6
jne 0x436170
cmp ebx, dword [esp]
jne 0x436309
push dword [esp + 0xc]
call fcn.00435f50
add esp, 4
mov dword [esp + 8], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x10], eax
mov dword [esp], 0xd8dbdac5
mov dword [esp + 4], 0
mov edi, 0xeb3b672f
mov esi, 0x14c498d0
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [esp + edi + 0x14c498d1]
mov ecx, ebx
xor ecx, edi
or ecx, esi
mov eax, ecx
shr al, 1
and al, 1
mov edx, ecx
not dl
mov ah, dl
and ah, 0x3d
mul ah
add al, al
sub bl, al
test cl, 2
sete al
or dl, 2
mul dl
add al, al
sub bl, al
movzx eax, bl
add eax, edi
add al, 0x15
mov byte [esp + edi + 0x14c498d1], al
inc edi
dec esi
cmp edi, 0xeb3b6737
jne 0x436200
mov ebx, dword [esp]
mov eax, dword [0x4490f4]
test eax, eax
je 0x436297
xor ecx, ecx
mov edx, dword [0x4490f8]
nop
nop
cmp dword [edx + ecx*8], 0x9abdb589
je 0x436270
inc ecx
cmp eax, ecx
jne 0x436260
jmp 0x436297
mov eax, dword [edx + ecx*8 + 4]
cmp eax, ebx
je 0x436297
push 0
push dword [esp + 0x14]
push dword [esp + 0x10]
push 5
push 0x10
push eax
push dword [0x4490fc]
call fcn.00438910
add esp, 0x1c
mov ebx, eax
test ebx, ebx
js 0x4362fd
mov eax, dword [esp + 8]
mov edx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + edx + 0x3c]
add eax, edx
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, word [ecx + edx]
movzx edi, word [ebp + edx]
test si, si
je 0x4362d6
add edx, 2
cmp si, di
je 0x4362c0
cmp si, di
je 0x4362e8
mov edx, dword [eax]
test edx, edx
jne 0x4362b0
mov ebx, 0xc0000225
jmp 0x4362fd
mov ecx, dword [eax + 0x44]
mov edx, dword [esp + 0x14]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xdc]
mov dword [edx + 0xc], eax
xor ebx, ebx
push dword [esp + 8]
call fcn.00435fb0
add esp, 4
mov eax, ebx
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret 4