Function at 0x409ee0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d121a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push edi
lea edi, [ecx + eax*4]
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], eax
mov word [ebp - 0x30], ax
mov dword [ebp - 4], eax
call fcn.0040afd0
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x18], eax
cmp eax, edi
je 0x40a11b
mov ebx, dword [eax]
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x40a10d
jmp 0x409f43
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x18]
cmp ecx, 0x10
jb 0x409f50
mov esi, dword [ebx + 4]
jmp 0x409f53
lea esi, [ebx + 4]
mov edx, dword [ebx + 0x14]
add edx, esi
cmp ecx, 0x10
jb 0x409f62
mov ecx, dword [ebx + 4]
jmp 0x409f65
lea ecx, [ebx + 4]
xor eax, eax
cmp ecx, edx
je 0x409f8d
jmp 0x409f70
mov esi, eax
mov edi, eax
shl esi, 6
shr edi, 2
add esi, edi
movsx edi, byte [ecx]
lea esi, [esi + edi - 0x61c88647]
inc ecx
xor eax, esi
cmp ecx, edx
jne 0x409f70
mov ecx, dword [ebp + 8]
xor edx, edx
div dword [ecx + 4]
mov eax, dword [ecx]
push 0x3c
mov word [ebp - 0x30], 0
lea ecx, [eax + edx*4]
mov edx, dword [ebx]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], edx
call fcn.0052d4ce
mov ebx, eax
xor eax, eax
add esp, 4
mov dword [ebp - 0x20], ebx
cmp ebx, eax
je 0x40a12e
mov ecx, 0xf
lea esi, [ebp - 0x80]
mov edi, ebx
mov dword [ebp - 0x80], eax
rep movsd dword es:[edi], dword [esi]
lea esi, [ebx + 4]
mov dword [ebp - 0x34], ebx
mov byte [ebp - 0x30], 1
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], esi
mov byte [ebp - 4], 1
test esi, esi
je 0x40a02a
mov edi, dword [ebp - 0x10]
push 0xffffffffffffffff
push eax
add edi, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], eax
push edi
mov ecx, esi
mov byte [esi], al
call fcn.004018d0
push 0xffffffffffffffff
lea ecx, [esi + 0x1c]
mov byte [ebp - 4], 2
push 0
add edi, 0x1c
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push edi
mov byte [ecx], 0
call fcn.004018d0
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
mov byte [ebp - 4], 0
mov ecx, dword [eax]
mov dword [ebx], ecx
mov dword [eax], ebx
mov eax, dword [edx]
mov byte [ebp - 0x2f], 1
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp - 0x14]
je 0x40a0ff
push 0x3c
mov word [ebp - 0x30], 0
call fcn.0052d4ce
mov ebx, eax
xor eax, eax
add esp, 4
cmp ebx, eax
je 0x40a152
mov ecx, 0xf
lea esi, [ebp - 0x80]
mov edi, ebx
mov dword [ebp - 0x80], eax
rep movsd dword es:[edi], dword [esi]
lea esi, [ebx + 4]
mov dword [ebp - 0x34], ebx
mov byte [ebp - 0x30], 1
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov byte [ebp - 4], 3
cmp esi, eax
je 0x40a0da
mov edi, dword [ebp - 0x10]
push 0xffffffffffffffff
push eax
add edi, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], eax
push edi
mov ecx, esi
mov byte [esi], al
call fcn.004018d0
push 0xffffffffffffffff
lea ecx, [esi + 0x1c]
mov byte [ebp - 4], 4
push 0
add edi, 0x1c
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push edi
mov byte [ecx], 0
call fcn.004018d0
xor eax, eax
mov edx, dword [ebp - 0x10]
mov byte [ebp - 4], 0
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
mov dword [ebx], ecx
mov dword [eax], eax
mov eax, dword [edx]
mov byte [ebp - 0x2f], 1
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp - 0x14]
jne 0x40a053
test eax, eax
jne 0x409f40
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
add eax, 4
mov dword [ebp - 0x18], eax
cmp eax, edi
jne 0x409f30
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x44]
call fcn.0052d2bb
push 0x666d40
lea ecx, [ebp - 0x44]
push ecx
mov dword [ebp - 0x44], vtable.std::bad_alloc.0
call fcn.0052d54e
lea edx, [ebp + 8]
push edx
lea ecx, [ebp - 0x44]
mov dword [ebp + 8], eax
call fcn.0052d2bb
push 0x666d40
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x44], vtable.std::bad_alloc.0
call fcn.0052d54e
int3