Function at 0x4030a0
Capabilities:
Create directory
Create process on windows
Enumerate files on windows
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x14f4
call fcn.00431990
push ebx
xor ebx, ebx
push ebp
mov ebp, dword [esp + 0x1508]
push esi
push edi
xor eax, eax
push 0x206
mov dword [esp + 0x5c], eax
mov edi, edx
lea eax, [esp + 0x72]
xor edx, edx
push ebx
push eax
mov esi, ecx
mov dword [esp + 0x34], 0x44
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], 0x461158
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x1c], ebx
mov word [esp + 0x78], dx
call fcn.00431730
mov edx, dword [esp + 0x1518]
push 0x104
lea ecx, [esp + 0x7c]
push ecx
push 0x461158
push 0x461720
push edx
call fcn.00401a10
add esp, 0x20
push ebx
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, dword [edi*4 + 0x474004]
lea ecx, [esp + 0x6c]
push ecx
push str.DYNAMORIO_LOGDIR
push esi
push edx
call fcn.004044d0
add esp, 8
push eax
call fcn.00404770
mov eax, dword [edi*4 + 0x474004]
add esp, 0xc
push ebp
push str.DYNAMORIO_OPTIONS
push esi
push eax
call fcn.004044d0
add esp, 8
push eax
call fcn.00404770
push esi
call fcn.00406630
lea ecx, [esp + 0x7c]
push ecx
push str._sout.rep
lea edx, [esp + 0x28c]
push 0x104
push edx
call fcn.00431593
add esp, 0x20
xor eax, eax
mov word [esp + 0x47a], ax
mov edi, dword [esp + 0x1524]
cmp edi, ebx
je 0x40321f
mov eax, str._verify_inject
cmp dword [esp + 0x151c], ebx
jne 0x4031e2
mov eax, 0x461158
mov ecx, dword [esp + 0x1518]
push ecx
mov ecx, dword [esp + 0x1518]
lea edx, [esp + 0x278]
push edx
push 0x2710
push eax
mov eax, edx
push eax
push ecx
push str.__s____s___launch_child__s_d____s___s_
lea edx, [esp + 0xaf8]
push 0x514
push edx
call fcn.00431593
add esp, 0x24
jmp 0x403251
mov eax, dword [esp + 0x1518]
mov edx, dword [esp + 0x1514]
push eax
lea ecx, [esp + 0x278]
push ecx
push edx
push str.__s____s___s
lea eax, [esp + 0xaec]
push 0x514
push eax
call fcn.00431593
add esp, 0x18
xor ecx, ecx
mov word [esp + 0x1502], cx
mov eax, str._inject
cmp dword [esp + 0x151c], ebx
jne 0x40326e
mov eax, 0x461646
mov edx, dword [esp + 0x1520]
mov esi, dword [esp + 0x1508]
push eax
push edx
push ebp
lea eax, [esp + 0xae8]
push eax
push str.Starting_Canary_Process___S__core_ops__S__type_s_s_n
push esi
call fcn.0043011a
add esp, 0x18
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x2c]
push edx
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
lea eax, [esp + 0xafc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x403593
mov ebp, dword [esp + 0x151c]
cmp ebp, ebx
je 0x403379
cmp edi, ebx
jne 0x403379
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor ebp, ebp
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0x18]
push 0x64
push ecx
call edi
lea edx, [esp + 0x14]
mov esi, eax
mov eax, dword [esp + 0x20]
push edx
push eax
add ebp, 0x64
call fcn.0042d6e0
add esp, 8
cmp esi, 0x102
jne 0x403319
cmp ebp, 0x4e20
jae 0x403319
cmp eax, 1
je 0x4032e0
cmp eax, ebx
je 0x4032e0
cmp eax, 1
je 0x40333e
cmp eax, ebx
je 0x40333e
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1508]
push ecx
push str.Verified_Injection__build__d_n
push edx
call fcn.0043011a
add esp, 0xc
jmp 0x40335b
mov eax, dword [esp + 0x1508]
push str.Injection_Failed___verify_registry_settings_n
push eax
mov dword [esp + 0x18], 0xfffffffb
call fcn.0043011a
add esp, 8
cmp esi, 0x102
jne 0x40342b
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0042de70
add esp, 4
jmp 0x40342b
mov edx, dword [esp + 0x18]
push 0x4e20
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4033cc
cmp edi, ebx
je 0x4033a7
cmp ebp, ebx
je 0x4033a7
mov dword [esp + 0x10], 0xfffffffa
push str.Early_Injection_Failed_n
jmp 0x4033b4
mov dword [esp + 0x10], 0xffffffff
push str.Canary_Hung_n
push esi
call fcn.0043011a
mov eax, dword [esp + 0x28]
add esp, 8
push eax
call fcn.0042de70
add esp, 4
jmp 0x40342b
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
push edx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x403415
cmp eax, 0xffffffff
jne 0x4033fc
mov dword [esp + 0x10], 0xfffffffd
push str.Canary_Violation_or_DR_error_n
jmp 0x403422
push eax
push str.Canary_Crashed_0x_08x_n
push esi
mov dword [esp + 0x1c], 0xfffffffe
call fcn.0043011a
add esp, 0xc
jmp 0x40342b
cmp edi, ebx
je 0x40342b
cmp ebp, ebx
je 0x40342b
push str.Verified_Early_Injection_n
push esi
call fcn.0043011a
add esp, 8
mov eax, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x1c]
push ecx
call esi
lea edx, [esp + 0x6c]
push edx
push 0x4613bc
lea eax, [esp + 0x8dc]
push 0x104
push eax
call fcn.00431593
add esp, 0x10
lea edx, [esp + 0x47c]
push edx
lea eax, [esp + 0x8d8]
xor ecx, ecx
push eax
mov word [esp + 0xae2], cx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40356f
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
nop
mov ecx, 0x4613b8
lea eax, [esp + 0x4a8]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4034c6
cmp dx, bx
je 0x4034c2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4034c6
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x4034a0
xor eax, eax
jmp 0x4034cb
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x403555
mov ecx, 0x4613b0
lea eax, [esp + 0x4a8]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x403506
cmp dx, bx
je 0x403502
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x403506
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x4034e0
xor eax, eax
jmp 0x40350b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x403555
lea ecx, [esp + 0x4a8]
push ecx
lea edx, [esp + 0x70]
push edx
push 0x4613a4
lea eax, [esp + 0x6d8]
push 0x104
push eax
call fcn.00431593
mov edi, dword [esp + 0x151c]
lea edx, [esp + 0x6e0]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x8ee], cx
call fcn.00402ed0
add esp, 0x1c
lea eax, [esp + 0x47c]
push eax
push esi
call ebp
test eax, eax
jne 0x403490
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x1508]
push str.Canary_Finished_n
push ecx
call fcn.0043011a
mov eax, dword [esp + 0x18]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14f4
ret
lea edx, [esp + 0xadc]
push edx
push str.Canary___S__Failed_to_Launch_n
push esi
call fcn.0043011a
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x14f4
ret