Function at 0x10004330
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007bb20
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x1009400c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
sub eax, 0
je 0x100046f8
sub eax, 1
jne 0x100046fd
push 0x104
lea eax, [ebp - 0x114]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
sub esp, 0x18
mov dword [ebp - 0x14c], 0
mov esi, esp
mov dword [ebp - 0x13c], 0
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x130], esi
mov dword [ebp - 0x138], 0xf
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100043b8
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
lea ecx, [ebp - 0x14c]
call fcn.10004a90
xor edi, edi
cmp dword [ebp - 0x13c], edi
jbe 0x10004421
nop
cmp dword [ebp - 0x138], 0x10
lea ecx, [ebp - 0x14c]
lea esi, [ebp - 0x14c]
cmovae ecx, dword [ebp - 0x14c]
cmovae esi, dword [ebp - 0x14c]
movsx eax, byte [ecx + edi]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
mov byte [esi + edi], al
add esp, 4
inc edi
cmp edi, dword [ebp - 0x13c]
jb 0x100043e0
mov esi, dword [ebp - 0x130]
movups xmm0, xmmword [ebp - 0x14c]
lea ecx, [ebp - 0x12c]
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x13c]
movq qword [esi + 0x10], xmm0
call fcn.1002b590
add esp, 0x18
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x12c]
cmp dword [ebp - 0x118], 8
mov edx, dword [ebp - 0x12c]
mov eax, dword [ebp - 0x11c]
cmovae ecx, edx
mov dword [ebp - 0x134], ecx
cmp eax, 0xe
jb 0x100046ac
add eax, 0xfffffff3
lea edx, [ecx + eax*2]
mov eax, ecx
mov dword [ebp - 0x130], edx
mov ecx, edx
sub ecx, eax
sar ecx, 1
je 0x100046a6
cmp word [eax], 0x66
je 0x100044a5
add eax, 2
sub ecx, 1
jne 0x10004492
jmp 0x100046a6
mov edx, 0x10087270
mov edi, eax
mov esi, 0xe
sub edi, edx
mov cx, word [edx + edi]
cmp cx, word [edx]
jne 0x100046de
add edx, 2
sub esi, 1
jne 0x100044b3
sub eax, dword [ebp - 0x134]
sar eax, 1
cmp eax, 0xffffffff
je 0x100046a6
push str.freelancer.exe
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
lea eax, [ebp - 0x150]
push eax
push 0x40
push 0x10
lea esi, [edi + 0x1b6f84]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov word [ebp - 0x130], 0xe0ff
movzx eax, word [ebp - 0x130]
mov byte [esi], 0xb8
mov dword [edi + 0x1b6f85], 0x10004320
mov word [edi + 0x1b6f89], ax
call fcn.10023130
call fcn.1002c140
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0x101db6e4
push 0x40
push 4
push 0x5c63bc
call esi
push 0x101db6e4
push 0x40
push 4
push 0x53c3e2
call esi
push 0x101db6e4
push 0x40
push 4
push 0x558987
call esi
push 0x101db6e4
push 0x40
push 7
push 0x47fcdf
call esi
push 0x101db6e4
push 0x40
push 1
push 0x48049a
call esi
push 0x101db6e4
push 0x40
push 1
push 0x482e96
call esi
push 0x101db6e4
push 0x40
push 1
push 0x4b850e
call esi
push 0x101db6e4
push 0x40
push 1
push 0x4b948e
call esi
mov eax, dword [0x5c63bc]
mov ecx, 0x47fcdf
mov dword [0x101db700], eax
mov dword [0x5c63bc], 0x1002c5d0
mov eax, dword [0x53c3e2]
add eax, 0x53c3e6
mov dword [0x101db6e8], eax
mov eax, 0x1002c520
sub eax, 0x53c3e6
mov dword [0x53c3e2], eax
mov eax, dword [0x558987]
add eax, 0x55898b
mov dword [0x101db6f0], eax
mov eax, 0x1002c540
sub eax, 0x55898b
mov dword [0x558987], eax
mov eax, dword [0x100895e0]
mov dword [ecx], eax
movzx eax, word [0x100895e4]
mov word [ecx + 4], ax
mov al, byte [0x100895e6]
mov byte [ecx + 6], al
mov byte [0x4b948e], 0
mov byte [0x4b850e], 0
mov byte [0x482e96], 0
mov byte [0x48049a], 0
mov byte [0x4b946c], 0x3d
push str.rp8.dll
mov byte [0x4b9473], 0x36
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x134], 0x100329f0
lea edi, [eax + 0x5e188]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0
push 0x38
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
lea eax, [ebp - 0x130]
push eax
push 0x40
push 4
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push 0
push 4
lea eax, [ebp - 0x134]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x12c]
mov eax, dword [ebp - 0x118]
cmp eax, 8
jb 0x100046fd
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100046ec
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100046ec
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov edx, dword [ebp - 0x130]
add eax, 2
jmp 0x10004486
push ecx
push edx
call fcn.1004d7a1
add esp, 8
jmp 0x100046fd
call fcn.100217b0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004d763
mov esp, ebp
pop ebp
ret 0xc