Function at 0x3001b260
Capabilities:
Accept command line arguments
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [0x30271a78], 0
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x10], ebx
jne 0x3001b2ff
mov edi, dword [0x30271514]
mov dword [ebp - 0xc], edi
test edi, edi
je 0x3001b315
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
movsx ecx, byte [edi]
mov esi, eax
push ecx
mov dword [ebp - 4], esi
call fcn.30169bae
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
je 0x3001b311
mov cl, byte [esi]
test cl, cl
je 0x3001b2ff
mov ebx, esi
sub ebx, edi
movsx eax, cl
push eax
call fcn.30169bae
add esp, 4
cmp eax, dword [ebp - 8]
jne 0x3001b2f3
cmp byte [edi + 1], 0
lea edi, [edi + 1]
je 0x3001b30b
movsx eax, byte [ebx + edi]
push eax
call fcn.30169bae
movsx ecx, byte [edi]
add esp, 4
mov esi, eax
push ecx
call fcn.30169bae
add esp, 4
cmp esi, eax
je 0x3001b2c5
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
mov cl, byte [esi + 1]
inc esi
inc ebx
mov dword [ebp - 4], esi
test cl, cl
jne 0x3001b2b4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 4]
test esi, esi
je 0x3001b2ff
cmp dword [0x302728c8], 0
jne 0x3001b33d
call fcn.30007e20
test eax, eax
jne 0x3001b33d
push str.SetInitialBreakpoints:_Failed_to_initialise_debugger._n
call fcn.30009b00
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x302721cc], 0
mov dword [0x302718f0], 0
mov dword [0x30271d78], 0
mov dword [0x30271a64], 0
mov dword [0x3027204c], 0
test ebx, ebx
jne 0x3001b383
push 0
call eax
mov ebx, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp byte [0x3026f3b5], 0
je 0x3001b3f1
push dword [0x3026f2ac]
call eax
test eax, eax
je 0x3001b3ac
push dword [0x3026f2a8]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x3026f3b8], eax
jmp 0x3001b3c4
push dword [0x3026f2ac]
push str.Failed_to_get_base_for_module___s_.
call fcn.30009fa0
mov eax, dword [0x3026f3b8]
add esp, 8
push dword [0x3026f2a8]
push dword [0x3026f2ac]
test eax, eax
je 0x3001b3e4
push eax
push str.bp0_set_to_0x_p___s::_s_.
call fcn.30009fa0
add esp, 0x10
jmp 0x3001b3f1
push str.Failed_to_get_address_for_function__s::_s.
call fcn.30009fa0
add esp, 0xc
cmp dword [0x30272048], 0
je 0x3001b514
mov edx, dword [0x3024453c]
push ecx
mov ecx, dword [0x30244538]
call fcn.3000b5c0
mov eax, dword [0x30244538]
add esp, 4
mov dword [0x3024453c], eax
call fcn.30012710
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call esi
mov dword [0x302412f0], eax
call esi
mov edx, 0x30244538
mov ecx, eax
call fcn.30015590
push 0x50
call fcn.3015e35d
push ebx
mov ecx, eax
call fcn.30012920
mov esi, eax
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x3001b472
call fcn.30003f40
cmp eax, 1
jne 0x3001b472
mov eax, dword [esi + 0x24]
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x3001b472
mov eax, dword [eax + 0x28]
jmp 0x3001b49b
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x3001b499
call fcn.30003f40
cmp eax, 1
jne 0x3001b499
mov eax, dword [esi + 0x24]
mov ecx, 0x20b
cmp word [eax + 0x18], cx
jne 0x3001b499
mov eax, dword [esi + 0x28]
mov eax, dword [eax + 0x28]
jmp 0x3001b49b
xor eax, eax
mov ecx, esi
lea edi, [eax + ebx]
call fcn.30012a40
push 0x50
push esi
call fcn.3015e131
add esp, 8
test edi, edi
je 0x3001b52a
mov esi, dword [0x30272048]
push 0x3001a020
push 0
dec esi
push 0
push edi
mov ecx, esi
call fcn.30007a60
add esp, 0x10
test eax, eax
je 0x3001b4f4
push edi
push esi
push str.Breakpoint__d_set_on_entry_point_at_0x_p_n
call fcn.30009fa0
add esp, 0xc
mov dword [0x30271b20], 1
mov dword [0x3026f3b8], edi
jmp 0x3001b52a
push str.SetBreakpoint_on_entry_point_failed._n
call fcn.30009fa0
add esp, 4
mov dword [0x30271b20], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x3026f3b8]
test eax, eax
je 0x3001b52a
push eax
xor edx, edx
mov ecx, ebx
call fcn.3001b0b0
add esp, 4
mov eax, dword [0x3026f3bc]
test eax, eax
je 0x3001b543
push eax
mov edx, 1
mov ecx, ebx
call fcn.3001b0b0
add esp, 4
mov eax, dword [0x3026f3c0]
test eax, eax
je 0x3001b55c
push eax
mov edx, 2
mov ecx, ebx
call fcn.3001b0b0
add esp, 4
mov eax, dword [0x3026f3c4]
test eax, eax
je 0x3001b575
push eax
mov edx, 3
mov ecx, ebx
call fcn.3001b0b0
add esp, 4
cmp byte [0x3026f3c8], 0
je 0x3001b58c
push 0
xor edx, edx
mov ecx, ebx
call fcn.3001b0b0
add esp, 4
cmp byte [0x3026f3c9], 0
je 0x3001b5a6
push 0
mov edx, 1
mov ecx, ebx
call fcn.3001b0b0
add esp, 4
cmp byte [0x3026f3ca], 0
je 0x3001b5c0
push 0
mov edx, 2
mov ecx, ebx
call fcn.3001b0b0
add esp, 4
cmp byte [0x3026f3cb], 0
je 0x3001b5da
push 0
mov edx, 3
mov ecx, ebx
call fcn.3001b0b0
add esp, 4
cmp dword [0x3026f3b8], 0
jne 0x3001b656
mov eax, dword [0x3026f3e0]
test eax, eax
je 0x3001b656
cmp dword [0x30271140], 0
je 0x3001b615
mov ecx, ebx
call fcn.30003f40
test eax, eax
je 0x3001b684
mov edx, dword [0x3026f3e0]
mov ecx, ebx
call fcn.3000a460
mov esi, eax
jmp 0x3001b618
lea esi, [eax + ebx]
push 0x3001ae00
push 0
push 0
push esi
xor ecx, ecx
call fcn.30007a60
add esp, 0x10
push 0
test eax, eax
je 0x3001b78f
push dword [0x3026f3e0]
push esi
push 0
push str.SetInitialBreakpoints:_Breakpoint_on_return__d_set_on_address_0x_p__RVA_0x_x__type__d__n
call fcn.30009b00
add esp, 0x14
mov dword [0x30271b20], 1
cmp dword [0x3026f3bc], 0
jne 0x3001b6fa
mov eax, dword [0x3026f3e4]
test eax, eax
je 0x3001b6fa
cmp dword [0x30271140], 0
je 0x3001b6b6
mov ecx, ebx
call fcn.30003f40
test eax, eax
jne 0x3001b6a5
push ebx
push str.SetInitialBreakpoints:_File_offsets_cannot_be_applied_to_non_PE_image_at_0x_p._n
call fcn.30009b00
add esp, 8
mov dword [0x30271b20], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [0x3026f3e4]
mov ecx, ebx
call fcn.3000a460
mov esi, eax
jmp 0x3001b6b9
lea esi, [eax + ebx]
push 0x3001ae00
push 0
push 0
push esi
mov ecx, 1
call fcn.30007a60
add esp, 0x10
test eax, eax
je 0x3001b78d
push 0
push dword [0x3026f3e4]
push esi
push 1
push str.SetInitialBreakpoints:_Breakpoint_on_return__d_set_on_address_0x_p__RVA_0x_x__type__d__n
call fcn.30009b00
add esp, 0x14
mov dword [0x30271b20], 1
xor esi, esi
lea esp, [esp]
mov eax, dword [esi + 0x3026f934]
test eax, eax
je 0x3001b712
lea ecx, [eax + ebx]
call fcn.300077f0
add esi, 4
cmp esi, 0x400
jb 0x3001b700
xor eax, eax
xor ecx, ecx
mov dword [ebp - 4], ecx
jmp 0x3001b730
mov edx, dword [ecx + 0x3026fd34]
test edx, edx
je 0x3001b7ed
lea edi, [edx + ebx]
test edi, edi
je 0x3001b7eb
mov ecx, edi
call fcn.300028c0
test eax, eax
je 0x3001b7e8
push 0x301e6ac8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, edi
mov esi, eax
call fcn.30002350
cmp eax, esi
je 0x3001b7e8
mov eax, dword [0x30244568]
test eax, eax
je 0x3001b7b4
lea esp, [esp]
cmp dword [eax + 4], edi
je 0x3001b7af
mov eax, dword [eax]
test eax, eax
jne 0x3001b780
jmp 0x3001b7b4
push 1
push str.SetInitialBreakpoints:_SetBreakpoint_failed_for_breakpoint__d._n
call fcn.30009b00
add esp, 8
mov dword [0x30271b20], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
add eax, 0xc
jne 0x3001b7e8
push 0
mov edx, edi
mov ecx, 0x30244550
call fcn.30049990
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
add esp, 4
push eax
push 0x40
push 1
push edi
call esi
test eax, eax
jne 0x3001b81c
push edi
push str.SetSoftwareBreakpoint:_Unable_to_change_memory_protection_at_0x_p
call fcn.30009b00
add esp, 8
mov ecx, dword [ebp - 4]
xor eax, eax
add ecx, 4
mov dword [ebp - 4], ecx
cmp ecx, 0x1000
jb 0x3001b730
test eax, eax
je 0x3001b810
push str.SetInitialBreakpoints:_Syscall_breakpoints_set._n
call fcn.30009b00
add esp, 4
mov eax, dword [0x30271b20]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
mov byte [edi], 0xcc
push eax
push dword [ebp - 8]
push 1
push edi
call esi
mov ecx, dword [ebp - 4]
mov eax, 1
jmp 0x3001b7ed