Function at 0x403e15
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
jne 0x403e2c
push 0xffffffffffffff9a
jmp 0x403fe4
cmp dword [ebx + 0x38], 0
je 0x403e25
cmp dword [ebx + 0x9c], 0
je 0x403e42
push ebx
call fcn.004044f8
pop ecx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
call fcn.004040f2
add esp, 0x10
test eax, eax
je 0x403e62
push 0xffffffffffffff99
jmp 0x403fe4
mov edi, dword [sym.imp.MSVCRT.dll_malloc]
push 0x90
call edi
mov esi, eax
pop ecx
test esi, esi
mov dword [ebp + 8], esi
je 0x403fe2
push 0x4000
call edi
pop ecx
mov dword [esi], eax
mov ecx, dword [ebp - 4]
xor edx, edx
mov dword [esi + 0x44], ecx
mov ecx, dword [ebp - 8]
mov dword [esi + 0x48], ecx
mov ecx, dword [ebp + 0x14]
cmp eax, edx
mov dword [esi + 0x4c], edx
mov dword [esi + 0x8c], ecx
jne 0x403ead
push 0xffffffffffffff98
pop edi
jmp 0x403fec
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x40], edx
cmp eax, edx
je 0x403ebc
mov ecx, dword [ebx + 0x54]
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
cmp ecx, edx
je 0x403eee
push 6
pop edi
mov dword [ecx], edi
mov eax, dword [ebx + 0x50]
push 2
and eax, edi
pop edi
sub eax, edi
je 0x403ee8
sub eax, edi
je 0x403ee4
sub eax, edi
jne 0x403eee
mov dword [ecx], 1
jmp 0x403eee
mov dword [ecx], edi
jmp 0x403eee
mov dword [ecx], 9
mov eax, dword [ebx + 0x5c]
mov dword [esi + 0x50], edx
mov dword [esi + 0x54], eax
mov eax, dword [ebx + 0x54]
mov dword [esi + 0x84], eax
mov eax, dword [ebx + 0x20]
push 8
mov dword [esi + 0x80], eax
lea edi, [esi + 0x60]
pop ecx
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 8]
mov eax, dword [ebx + 0x2c]
xor edi, edi
mov dword [esi + 0x88], eax
mov dword [esi + 0x18], edi
cmp dword [ebx + 0x54], 8
jne 0x403f61
cmp dword [ebp + 0x14], edi
jne 0x403f61
push 0x38
lea eax, [esi + 4]
push str.1.2.3
push 0xfffffffffffffff1
push eax
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [eax], edi
mov dword [esi + 8], edi
call fcn.0040497e
add esp, 0x10
cmp eax, edi
jne 0x403fe7
mov dword [esi + 0x40], 1
mov eax, dword [ebx + 0x60]
cmp dword [ebp + 0x18], edi
mov dword [esi + 0x58], eax
mov eax, dword [ebx + 0x64]
mov dword [esi + 0x5c], eax
mov eax, dword [ebx + 0x98]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 8], edi
lea eax, [eax + ecx + 0x1e]
mov dword [esi + 0x3c], eax
mov dword [ebx + 0x9c], esi
je 0x404043
call fcn.00404691
lea ecx, [ebx + 0xa4]
push eax
push ecx
mov dword [ebx + 0xb0], eax
push dword [ebp + 0x18]
call fcn.004040b7
mov eax, dword [ebx + 0x9c]
push edi
mov ecx, dword [eax + 0x88]
add ecx, dword [eax + 0x3c]
push ecx
push dword [ebx + 0x20]
push dword [ebx + 0x1c]
call dword [ebx + 0x10]
add esp, 0x1c
test eax, eax
jne 0x403fe2
lea eax, [ebp - 0x18]
push 0xc
push eax
push dword [ebx + 0x20]
push dword [ebx + 0x1c]
call dword [ebx + 4]
add esp, 0x10
cmp eax, 0xc
jae 0x403ff8
push 0xffffffffffffff98
pop eax
jmp 0x404045
mov esi, dword [ebp + 8]
mov edi, eax
push esi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
mov eax, edi
jmp 0x404045
push dword [ebx + 0xb0]
lea eax, [ebx + 0xa4]
lea esi, [ebp + edi - 0x18]
push eax
call fcn.0040404a
xor byte [esi], al
movsx eax, byte [esi]
push eax
lea eax, [ebx + 0xa4]
push dword [ebx + 0xb0]
push eax
call fcn.00404065
add esp, 0x14
inc edi
cmp edi, 0xc
jl 0x403ff8
mov eax, dword [ebx + 0x9c]
add dword [eax + 0x3c], 0xc
mov dword [ebx + 0xa0], 1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret