Function at 0x100607f
Capabilities:
Create process on windows
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2e4
mov eax, dword [0x1009020]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor esi, esi
push ebx
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x27c], ebx
mov dword [ebp - 0x278], esi
mov dword [ebp - 0x280], esi
call fcn.01002fa8
test eax, eax
je 0x1006317
push esi
push esi
push 3
push esi
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x274], eax
je 0x100630c
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
lea ecx, [ebp - 0x284]
push ecx
push 0x22
lea ecx, [ebp - 0x2a8]
push ecx
push eax
call edi
test eax, eax
je 0x10062ff
cmp dword [ebp - 0x284], 0x22
jne 0x10062ff
cmp word [ebp - 0x292], si
jne 0x1006157
push ebx
lea edi, [ebp - 0x44]
call sub.SHELL32.dll_Ordinal_34
push dword [ebp - 0x27c]
mov ebx, eax
call dword [sym.imp.SHELL32.dll_Ordinal_31]
cmp ebx, esi
je 0x100614c
cmp eax, esi
je 0x100614c
cmp ebx, eax
je 0x100614c
mov cx, word [ebx]
mov word [edi], cx
inc edi
inc edi
inc ebx
inc ebx
jne 0x1006138
mov ebx, dword [ebp - 0x27c]
mov word [edi], si
jmp 0x1006197
movzx eax, word [ebp - 0x292]
push esi
push esi
push eax
push dword [ebp - 0x274]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
lea eax, [ebp - 0x284]
push eax
push 0x1f
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x274]
call edi
push 0x1f
lea eax, [ebp - 0x44]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x64]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x44]
push eax
call fcn.01005311
test eax, eax
lea eax, [ebp - 0x26c]
je 0x10061d1
xor edi, edi
inc edi
cmp dword [0x1009254], esi
mov dword [ebp - 0x280], edi
push edi
je 0x10061cd
push 0x18
push eax
push dword [ebp - 0x270]
call dword [sym.imp.SHELL32.dll_Ordinal_175]
jmp 0x10061ed
push 7
jmp 0x10061be
push ebx
push eax
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x270]
call fcn.0100314a
test eax, eax
je 0x10062ff
xor edi, edi
inc edi
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x2a2]
push dword [ebp - 0x288]
push dword [ebp - 0x274]
call fcn.01003523
test eax, eax
jne 0x1006231
test byte [ebp + 0x10], 2
je 0x1006231
push 0x30
push esi
push 0xcf
push 0xca
push dword [ebp - 0x270]
call fcn.01006c1a
push dword [ebp - 0x2a2]
push dword [ebp - 0x274]
call fcn.010032d9
call fcn.0100347a
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.SHELL32.dll_IsLFNDrive]
test eax, eax
jne 0x100625d
call fcn.010034be
call fcn.01005e98
lea eax, [ebp - 0x26c]
push eax
call fcn.01003902
test byte [ebp + 0x10], 8
je 0x100627b
call fcn.0100563e
jmp 0x1006295
movzx eax, word [ebp - 0x288]
push eax
push dword [ebp - 0x280]
lea eax, [ebp - 0x26c]
push eax
call fcn.01004f61
test byte [ebp + 0x10], 4
je 0x10062f9
mov eax, dword [ebp - 0x270]
mov dword [ebp - 0x2dc], eax
lea eax, [ebp - 0x26c]
mov dword [ebp - 0x2d4], eax
mov eax, dword [0x1009264]
mov dword [ebp - 0x2c4], eax
lea eax, [ebp - 0x2e4]
push eax
mov dword [ebp - 0x2e4], 0x3c
mov dword [ebp - 0x2e0], esi
mov dword [ebp - 0x2d8], esi
mov dword [ebp - 0x2d0], esi
mov dword [ebp - 0x2cc], esi
mov dword [ebp - 0x2bc], esi
mov dword [ebp - 0x2c8], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov dword [ebp - 0x278], edi
push dword [ebp - 0x274]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
call fcn.01002fd3
mov eax, dword [ebp - 0x278]
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0100815d
leave
ret 0xc