Function at 0x403d90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d7f1a
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 eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], ecx
mov word [ebp - 0x30], cx
push eax
mov dword [ebp - 4], ecx
call fcn.00403c90
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x18], eax
cmp eax, edi
je 0x403fcb
mov ebx, dword [eax]
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x403fbd
jmp 0x403df3
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x18]
cmp ecx, 0x10
jb 0x403e00
mov esi, dword [ebx + 4]
jmp 0x403e03
lea esi, [ebx + 4]
mov edx, dword [ebx + 0x14]
add edx, esi
cmp ecx, 0x10
jb 0x403e12
mov ecx, dword [ebx + 4]
jmp 0x403e15
lea ecx, [ebx + 4]
xor eax, eax
cmp ecx, edx
je 0x403e3d
jmp 0x403e20
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 0x403e20
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.0048f2c5
mov ebx, eax
xor eax, eax
add esp, 4
mov dword [ebp - 0x20], ebx
cmp ebx, eax
je 0x403fde
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 0x403eda
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.00401c50
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.00401c50
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 0x403faf
push 0x3c
mov word [ebp - 0x30], 0
call fcn.0048f2c5
mov ebx, eax
xor eax, eax
add esp, 4
cmp ebx, eax
je 0x404002
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 0x403f8a
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.00401c50
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.00401c50
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 0x403f03
test eax, eax
jne 0x403df0
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
add eax, 4
mov dword [ebp - 0x18], eax
cmp eax, edi
jne 0x403de1
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.0048f111
push 0x661a10
lea ecx, [ebp - 0x44]
push ecx
mov dword [ebp - 0x44], vtable.std::bad_alloc.0
call fcn.00490659
lea edx, [ebp + 8]
push edx
lea ecx, [ebp - 0x44]
mov dword [ebp + 8], eax
call fcn.0048f111
push 0x661a10
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x44], vtable.std::bad_alloc.0
call fcn.00490659
int3