Function at 0x408a90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43aa36
mov eax, dword fs:[0]
push eax
sub esp, 0x858
mov eax, dword [0x44e414]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov bx, word [ebp + 8]
movzx eax, bx
mov dword [ebp - 0x860], eax
mov dword [ebp - 0x85c], 0
mov dword [ebp - 0x848], 0xf
mov ecx, dword [esi + 0xc]
lea edx, [ebp - 0x85c]
mov dword [ebp - 0x84c], 1
mov word [ebp - 0x85c], 0x44
push edx
mov eax, dword [ecx]
mov dword [ebp - 4], 0
call dword [eax + 0x2c]
mov dword [ebp - 0x844], 0
mov dword [ebp - 0x830], 0xf
mov ecx, dword [esi + 0xc]
lea edx, [ebp - 0x844]
mov dword [ebp - 0x834], 1
mov word [ebp - 0x844], 0xbb
push edx
mov eax, dword [ecx]
mov byte [ebp - 4], 1
call dword [eax + 0x2c]
push 0x44
push 0
mov ecx, esi
call fcn.0040a920
push 0xbb
push 0
mov ecx, esi
call fcn.0040a920
push 0x401
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.0043a378
mov ecx, dword [esi + 0xc]
lea edx, [ebp - 0x414]
add esp, 0xc
mov eax, dword [ecx]
push edx
push 1
call dword [eax + 0x38]
push dword [ebp - 0x414]
mov ecx, esi
push 1
call fcn.0040a920
mov al, byte [ebp - 0x414]
cmp al, 0x1f
je 0x408e57
cmp al, 0x79
jne 0x408e57
mov ecx, dword [esi + 0xc]
mov eax, 0xfffd
cmp bx, ax
jb 0x408c3e
mov ax, bx
movzx edx, bx
shr ax, 8
xor bl, al
mov byte [ebp - 0x813], dl
mov byte [ebp - 0x814], al
lea edx, [ebp - 0x814]
mov byte [ebp - 0x812], bl
mov eax, dword [ecx]
push edx
push 3
call dword [eax + 0x30]
push 3
lea eax, [ebp - 0x814]
mov ecx, esi
push eax
push 0
call fcn.0040aa00
push 0xc8
call dword [0x43f130]
mov ecx, dword [esi + 0xc]
lea edx, [ebp - 0x414]
mov byte [ebp - 0x414], 0xff
push edx
push 1
mov eax, dword [ecx]
call dword [eax + 0x38]
push dword [ebp - 0x414]
mov ecx, esi
push 1
call fcn.0040a920
cmp byte [ebp - 0x414], 0x79
jne 0x408e57
xor bl, bl
jmp 0x408e59
mov dword [ebp - 0x82c], 0
mov dword [ebp - 0x818], 0xf
movzx eax, bx
lea edx, [ebp - 0x82c]
mov dword [ebp - 0x864], eax
mov dword [ebp - 0x81c], 1
mov byte [ebp - 0x82b], 0
lea ebx, [eax - 1]
mov byte [ebp - 4], 2
sar ebx, 8
mov byte [ebp - 0x82c], bl
mov eax, dword [ecx]
push edx
call dword [eax + 0x2c]
mov cl, byte [ebp - 0x860]
lea eax, [ebp - 0x82c]
dec cl
mov dword [ebp - 0x81c], 1
cmp dword [ebp - 0x818], 0x10
lea edx, [ebp - 0x82c]
push edx
cmovae eax, dword [ebp - 0x82c]
mov byte [eax], cl
mov byte [eax + 1], 0
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x2c]
push ebx
push 0
mov ecx, esi
call fcn.0040a920
mov eax, dword [ebp - 0x860]
mov ecx, esi
dec eax
push eax
push 0
mov dword [ebp - 0x860], eax
call fcn.0040a920
xor byte [ebp - 0x860], bl
xor edi, edi
mov ebx, dword [ebp - 0x860]
mov byte [ebp - 0x860], bl
cmp dword [ebp - 0x864], edi
jbe 0x408da1
mov eax, dword [ebp + 0xc]
nop word [eax + eax]
mov cl, byte [eax + edi*2 + 1]
lea edx, [ebp - 0x82c]
cmp dword [ebp - 0x818], 0x10
lea eax, [ebp - 0x82c]
mov dword [ebp - 0x81c], 1
cmovae eax, dword [ebp - 0x82c]
push edx
mov byte [eax], cl
mov byte [eax + 1], 0
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x82c]
mov dword [ebp - 0x81c], 1
push edx
movzx ecx, word [eax + edi*2]
mov eax, ecx
shr eax, 8
xor bl, al
cmp dword [ebp - 0x818], 0x10
lea eax, [ebp - 0x82c]
cmovae eax, dword [ebp - 0x82c]
mov byte [eax], cl
mov byte [eax + 1], 0
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov eax, dword [ebp + 0xc]
xor bl, byte [eax + edi*2]
inc edi
mov byte [ebp - 0x860], bl
cmp edi, dword [ebp - 0x864]
jl 0x408d10
cmp dword [ebp - 0x818], 0x10
lea eax, [ebp - 0x82c]
mov dword [ebp - 0x81c], 1
lea edx, [ebp - 0x82c]
cmovae eax, dword [ebp - 0x82c]
push edx
mov byte [eax], bl
mov byte [eax + 1], 0
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x2c]
push dword [ebp - 0x860]
mov ecx, esi
push 0
call fcn.0040a920
mov ecx, dword [esi + 0xc]
lea edx, [ebp - 0x414]
mov byte [ebp - 0x414], 0xff
push edx
push 1
mov eax, dword [ecx]
call dword [eax + 0x38]
push dword [ebp - 0x414]
mov ecx, esi
push 1
call fcn.0040a920
cmp byte [ebp - 0x414], 0x79
mov edx, dword [ebp - 0x818]
sete bl
dec bl
and bl, 0x14
cmp edx, 0x10
jb 0x408e59
mov ecx, dword [ebp - 0x82c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408e4b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x408e4b
call dword [0x43f418]
push edx
push ecx
call fcn.004395ca
add esp, 8
jmp 0x408e59
mov bl, 0x14
mov edx, dword [ebp - 0x830]
cmp edx, 0x10
jb 0x408e8f
mov ecx, dword [ebp - 0x844]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408e85
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408ed6
push edx
push ecx
call fcn.004395ca
add esp, 8
mov edx, dword [ebp - 0x848]
mov dword [ebp - 0x834], 0
mov dword [ebp - 0x830], 0xf
mov byte [ebp - 0x844], 0
cmp edx, 0x10
jb 0x408ee6
mov ecx, dword [ebp - 0x85c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408edc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x408edc
call dword [0x43f418]
push edx
push ecx
call fcn.004395ca
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004395e6
mov esp, ebp
pop ebp
ret 8