Function at 0x408960
Capabilities:
Encode data using xor

Disassembly:
push dword [eax + 0x48]
push dword [eax + 8]
call dword [ebx + 0x50]
mov esi, eax
push 0x104
push eax
push 0
call dword [ebx + 0x40]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push esi
call dword [ebx + 0x14]
cmp eax, 0xffffffff
je 0x4089d8
mov edi, eax
push 0
push eax
call dword [ebx + 0x18]
test eax, eax
je 0x4089d5
mov esi, eax
mov eax, dword [ebx + 0xc]
push esi
push dword [eax + 8]
call dword [ebx + 0x50]
mov ecx, esi
mov esi, eax
mov dword [esp + 0x18], 0
lea eax, [esp + 0x18]
push 0
push eax
mov dword [esp + 8], ecx
push ecx
push esi
push edi
call dword [ebx + 0x5c]
mov ecx, ebx
mov ebx, eax
test eax, eax
je 0x4089d0
mov ebx, esi
push edi
call dword [ecx]
jmp 0x4089e1
push edi
call dword [ebx]
mov dword [esp], 0
xor ebx, ebx
mov edi, dword [esp + 4]
mov edx, dword [edi + 0x18]
mov ecx, dword [esp + 0x14]
push edi
call fcn.00409337
add esp, 4
mov ecx, dword [edi]
mov esi, dword [edi + 0x64]
xor ecx, dword [edi + 0xe4]
mov edx, edi
mov edi, dword [ebx + esi]
cmp edi, ecx
mov ecx, dword [ebx + esi + 4]
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], eax
mov dword [esp + 0x14], ecx
jne 0x408a55
mov edi, edx
add edx, 0xd0
lea ecx, [esp + 0x18]
push 4
call fcn.00409487
add esp, 4
mov word [esp + 0x1c], 0xa0d
cmp dword [esp], 6
jne 0x408bcb
mov ebx, dword [esp + 0xc]
jmp 0x409039
add ebx, esi
test edi, edi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 0xc]
mov ecx, edi
jne 0x408a67
mov ecx, dword [eax + 0x48]
mov edx, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [edx + 0xd0]
mov dword [esp + 0x3c], eax
mov eax, dword [edx + 0xf4]
mov dword [esp + 0x10], eax
push ecx
mov eax, dword [esp + 4]
push dword [eax + 8]
call dword [esi + 0x50]
mov esi, eax
add ebx, 8
mov ecx, eax
mov edx, ebx
push edi
call fcn.00409487
add esp, 4
test edi, edi
mov ecx, dword [esp + 0x14]
je 0x408ac1
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [esi + eax], ecx
add eax, 4
cmp eax, edi
jb 0x408ab7
mov ebx, dword [esp + 0xc]
mov eax, dword [ebx + 0xc]
push dword [eax + 0x48]
push dword [eax + 8]
call dword [ebx + 0x50]
movzx edx, byte [esi]
test dl, dl
je 0x408af8
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movsx edx, dl
mov word [eax + ecx*2], dx
movzx edx, byte [esi + ecx + 1]
inc ecx
test dl, dl
jne 0x408ae7
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0xc]
push dword [eax + 0x48]
push dword [eax + 8]
call dword [ebx + 0x50]
mov esi, eax
push eax
push 0x104
call dword [ebx + 0x6c]
mov eax, dword [ebx + 0xc]
push 0x16
push dword [eax + 8]
call dword [ebx + 0x50]
mov edi, eax
mov word [esp + 0x28], 0x25
mov word [esp + 0x2a], 0x78
mov word [esp + 0x2c], 0
mov ecx, dword [ebx + 4]
mov dword [esp], ecx
mov eax, dword [ebx + 0x64]
mov dword [esp + 8], eax
lea ebx, [esp + 0x18]
mov ecx, ebx
mov edx, 8
call fcn.00409507
push ebx
call dword [esp + 0xc]
lea eax, [esp + 0x28]
push dword [esp + 0x18]
push eax
lea ebx, [ebx + esi + 4]
add ebx, 4
add dword [esp], 0xfffffffa
inc ebx
movzx eax, byte [esp + 0x18]
movzx ecx, byte [esp + 0x19]
movzx edx, byte [esp + 0x1a]
mov ah, byte [esp + 0x1b]
mov ch, byte [esp + 0x1c]
mov dh, byte [esp + 0x1d]
mov esi, dword [esp]
jmp 0x408bff
inc ebx
dec esi
je 0x408a4c
cmp byte [ebx], al
je 0x408c07
cmp al, 0x3f
jne 0x408bf7
cmp byte [ebx + 1], cl
je 0x408c11
cmp cl, 0x3f
jne 0x408bf7
cmp byte [ebx + 2], dl
je 0x408c1b
cmp dl, 0x3f
jne 0x408bf7
cmp byte [ebx + 3], ah
je 0x408c25
cmp ah, 0x3f
jne 0x408bf7
cmp byte [ebx + 4], ch
je 0x408c2f
cmp ch, 0x3f
jne 0x408bf7
cmp byte [ebx + 5], dh
je 0x408c39
cmp dh, 0x3f
jne 0x408bf7
mov ecx, ebx
mov edx, dword [esp + 0x14]
push edi
push dword [esp + 0x10]
lea eax, [esp + 0x50]
push eax
call fcn.004097d7
invalid
invalid