Function at 0x4054a2
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 0x4054b9
push 0xffffffffffffff9a
jmp 0x405671
cmp dword [ebx + 0x38], 0
je 0x4054b2
cmp dword [ebx + 0x9c], 0
je 0x4054cf
push ebx
call fcn.00405b85
pop ecx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
call fcn.0040577f
add esp, 0x10
test eax, eax
je 0x4054ef
push 0xffffffffffffff99
jmp 0x405671
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 0x40566f
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 0x40553a
push 0xffffffffffffff98
pop edi
jmp 0x405679
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x40], edx
cmp eax, edx
je 0x405549
mov ecx, dword [ebx + 0x54]
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
cmp ecx, edx
je 0x40557b
push 6
pop edi
mov dword [ecx], edi
mov eax, dword [ebx + 0x50]
push 2
and eax, edi
pop edi
sub eax, edi
je 0x405575
sub eax, edi
je 0x405571
sub eax, edi
jne 0x40557b
mov dword [ecx], 1
jmp 0x40557b
mov dword [ecx], edi
jmp 0x40557b
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 0x4055ee
cmp dword [ebp + 0x14], edi
jne 0x4055ee
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.004061fa
add esp, 0x10
cmp eax, edi
jne 0x405674
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 0x4056d0
call fcn.00405f0d
lea ecx, [ebx + 0xa4]
push eax
push ecx
mov dword [ebx + 0xb0], eax
push dword [ebp + 0x18]
call fcn.00405744
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 0x40566f
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 0x405685
push 0xffffffffffffff98
pop eax
jmp 0x4056d2
mov esi, dword [ebp + 8]
mov edi, eax
push esi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
mov eax, edi
jmp 0x4056d2
push dword [ebx + 0xb0]
lea eax, [ebx + 0xa4]
lea esi, [ebp + edi - 0x18]
push eax
call fcn.004056d7
xor byte [esi], al
movsx eax, byte [esi]
push eax
lea eax, [ebx + 0xa4]
push dword [ebx + 0xb0]
push eax
call fcn.004056f2
add esp, 0x14
inc edi
cmp edi, 0xc
jl 0x405685
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