Function at 0x100055d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10033848
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x1004074c]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x1004074c]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x10005724
cmp byte [ebx + 0x45], 0
je 0x10005724
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x10005630
xor al, al
jmp 0x10005726
mov ecx, 0xf
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
mov dword [esp + 0x2c], ecx
cmp ecx, 0x10
movq qword [esp + 0x18], xmm0
lea eax, [esp + 0x18]
mov dword [esp + 0x28], 8
cmovae eax, dword [esp + 0x18]
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
jmp 0x10005670
cmp dword [esp + 0x2c], 0x10
lea eax, [esp + 0x14]
mov ecx, dword [ebx + 0x40]
lea edi, [esp + 0x18]
cmovae edi, dword [esp + 0x18]
lea esi, [esp + 0x18]
cmovae esi, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x2c]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x100056b1
dec eax
je 0x100056b5
sub eax, 2
je 0x1000570b
xor bl, bl
jmp 0x1000570d
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x18]
cmp ecx, 0x10
mov esi, dword [esp + 0x14]
cmovae eax, edx
sub esi, eax
je 0x100056ec
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [esp + 0x1c]
push esi
cmovae eax, edx
push 1
push eax
call fcn.10008c95
add esp, 0x10
cmp esi, eax
jne 0x100056ad
cmp byte [ebx + 0x45], 0
je 0x1000570b
test esi, esi
jne 0x10005670
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.10002130
jmp 0x10005670
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x10005720
push dword [esp + 0x18]
call fcn.1000775e
add esp, 4
mov al, bl
jmp 0x10005726
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.10006ce7
mov esp, ebp
pop ebp
ret

Function at 0x10005e50
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
mov edi, ecx
call fcn.10005c50
mov esi, dword [edi + 0xc]
mov ebx, dword [edi + 0x10]
sub ebx, esi
mov dword [ebp - 4], 0
sub ebx, dword [edi + 8]
push ebx
push esi
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
push 0x100587e8
push 0x40
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10005ec9
mov eax, dword [edi + 8]
xor esi, esi
sub ebx, eax
nop
push eax
push dword [edi + 4]
mov eax, dword [ebp + 8]
mov ecx, edi
push dword [edi]
add eax, esi
push eax
call fcn.10005d30
test eax, eax
jne 0x10005ec1
mov eax, dword [edi + 8]
inc esi
cmp esi, ebx
jbe 0x10005ea0
jmp 0x10005ec9
mov eax, dword [ebp + 8]
add eax, esi
mov dword [ebp - 4], eax
push dword [edi]
call fcn.10007c87
push dword [edi + 4]
call fcn.10007c87
mov eax, dword [ebp - 4]
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4