joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100804e0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b5ac3
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor eax, eax
mov dword [esi + 0x14], 7
push 0xffffffffffffffff
push eax
push dword [ebp + 8]
mov dword [esi + 0x10], 0
mov word [esi], ax
call fcn.10005a70
xor eax, eax
mov dword [ebp - 4], 0
push 0xffffffffffffffff
lea ecx, [esi + 0x18]
mov dword [ecx + 0x14], 7
push eax
push dword [ebp + 0xc]
mov dword [ecx + 0x10], 0
mov word [ecx], ax
call fcn.10005a70
xor eax, eax
mov byte [ebp - 4], 1
push 0xffffffffffffffff
lea ecx, [esi + 0x30]
mov dword [ecx + 0x14], 7
push eax
push dword [ebp + 0x10]
mov dword [ecx + 0x10], 0
mov word [ecx], ax
call fcn.10005a70
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x48], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x10082110
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x14], eax
jne 0x10082141
lea eax, [esi + 8]
push eax
push 0
push esi
push 0x10082d90
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xc], eax
xor eax, eax
cmp dword [esi + 0xc], eax
pop esi
setne al
pop ebp
ret 8

Function at 0x10089930
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x302c
call fcn.100ae320
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xorps xmm0, xmm0
mov dword [ebp - 0x300c], 0
lea eax, [ebp - 0x302c]
mov ebx, edx
push eax
mov edi, ecx
movdqu xmmword [ebp - 0x302c], xmm0
movdqu xmmword [ebp - 0x301c], xmm0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x3018]
mov dword [edi], eax
mov dword [ebx], eax
mov eax, dword [0x10113144]
test al, 1
jne 0x100899b4
push str.GetLogicalProcessorInformation
or eax, 1
push str.kernel32.dll
mov dword [0x10113144], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [0x10113148], esi
jmp 0x100899ba
mov esi, dword [0x10113148]
test esi, esi
je 0x10089a27
push 0x3000
lea eax, [ebp - 0x3004]
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x3008], 0x3000
lea eax, [ebp - 0x3008]
push eax
lea eax, [ebp - 0x3004]
push eax
call esi
test eax, eax
je 0x10089a27
mov eax, 0xaaaaaaab
xor esi, esi
mul dword [ebp - 0x3008]
shr edx, 4
test edx, edx
je 0x10089a27
lea ecx, [ebp - 0x3000]
lea esp, [esp]
mov eax, dword [ecx]
sub eax, 0
je 0x10089a1a
dec eax
jmp 0x10089a1b
inc esi
add ecx, 0x18
dec edx
jne 0x10089a10
test esi, esi
je 0x10089a27
mov dword [edi], esi
cmp dword [edi], 4
jae 0x10089a30
mov eax, dword [ebx]
mov dword [edi], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100ad688
mov esp, ebp
pop ebp
ret
Function at 0x1008d930
Capabilities:
Terminate process

Disassembly:
push esi
push str.killVirtualBoxProcess
push 0x5ac
push str.vbox::VBoxComObj::killVirtualBoxProcess
mov esi, ecx
call fcn.100989a0
add esp, 0xc
cmp dword [esi + 0x168], 0
je 0x1008d9a5
push str.killVirtualBoxProcess_start
push 0x5af
push str.vbox::VBoxComObj::killVirtualBoxProcess
call fcn.100989a0
add esp, 0xc
push 0
push dword [esi + 0x168]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [esi + 0x168]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.killVirtualBoxProcess_end
push 0x5b3
push str.vbox::VBoxComObj::killVirtualBoxProcess
mov dword [esi + 0x168], 0
call fcn.100989a0
add esp, 0xc
pop esi
ret

Function at 0x1008d9b0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100b5408
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
push dword [edi + 0x158]
call dword [sym.imp.KERNEL32.dll_SetEvent]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov eax, dword [edi + 0x160]
test eax, eax
je 0x1008dabc
push 0x5208
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1008dabc
push str.wait_for_LdBoxHeadless_timeout___
push 0x5c3
push str.vbox::VBoxComObj::stop
call fcn.100989a0
add esp, 0xc
lea ecx, [esp + 0x10]
push str.Ld9BoxHeadless.exe
call fcn.10005760
push 0xffffffffffffffff
mov dword [esp + 0x3c], 0
lea eax, [esp + 0x14]
push dword [edi + 0x15c]
push eax
call fcn.100a0500
add esp, 0xc
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x24], 8
mov byte [esp + 0xf], al
jb 0x1008da84
push dword [esp + 0x10]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
mov al, byte [esp + 0x13]
add esp, 4
xor ecx, ecx
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], 0
mov word [esp + 0x10], cx
test al, al
je 0x1008dabc
push dword [edi + 0x15c]
push str.force_killed_Ld9BoxHeadless.exe_pid___d
push 0x5cc
push str.vbox::VBoxComObj::stop
call fcn.100989a0
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, esi
cmp ecx, 0x5208
jae 0x1008dad8
sub esi, eax
add esi, 0x5208
jmp 0x1008dada
xor esi, esi
push esi
push dword [edi + 0x14c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1008db02
push str.WaitForSingleObject_m_threadRunVbox.m_hThread_failed_
push 0x5d5
push str.vbox::VBoxComObj::stop
call fcn.100989a0
add esp, 0xc
push dword [edi + 0x160]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x160], 0
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.100ad688
mov esp, ebp
pop ebp
ret
Function at 0x10096c40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b7359
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x34], 0
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov dword [ebp - 0x38], esi
mov byte [esi], 0
push 0x100
push 0x8000
mov dword [ebp - 4], 0
xor ebx, ebx
push edi
mov dword [ebp - 0x34], 1
call dword [sym.imp.MSVCR120.dll_int___cdecl__wopen_wchar_t_const___int__int_]
add esp, 0xc
mov dword [ebp - 0x30], eax
test eax, eax
jns 0x10096cc9
push edi
push str._open__s_failed_n
call dword [sym.imp.MSVCR120.dll_wprintf]
add esp, 8
jmp 0x10096df5
push 0x100000
call fcn.100ad5d6
push 0x100000
push eax
push dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
call dword [sym.imp.MSVCR120.dll__read]
mov ecx, eax
add esp, 0x10
lea eax, [ecx - 1]
cmp eax, 0xffffe
ja 0x10096de4
mov eax, dword [ebp - 0x2c]
push str.MACAddress_
push eax
mov byte [ecx + eax], bl
call dword [sym.imp.MSVCR120.dll_strstr]
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x10096d27
push edi
push 0x100c8c2c
call dword [sym.imp.MSVCR120.dll_wprintf]
add esp, 8
jmp 0x10096df2
add ebx, 0xc
push 0x100c8c28
push ebx
call dword [sym.imp.MSVCR120.dll_strstr]
add esp, 8
test eax, eax
jne 0x10096d51
push edi
push str.find_mac_end_char_from__s_failed_n
call dword [sym.imp.MSVCR120.dll_wprintf]
add esp, 8
jmp 0x10096df2
sub eax, ebx
mov dword [ebp - 0x14], 0xf
push eax
push ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.10003fc0
lea eax, [ebp - 0x28]
cmp esi, eax
je 0x10096dd3
cmp dword [esi + 0x14], 0x10
jb 0x10096d87
push dword [esi]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jae 0x10096dc3
mov eax, dword [ebp - 0x18]
inc eax
je 0x10096dc8
push eax
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.MSVCR120.dll_memmove]
mov ecx, dword [ebp - 0x14]
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
jmp 0x10096df2
mov eax, dword [ebp - 0x28]
mov dword [esi], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
jmp 0x10096df2
cmp dword [ebp - 0x14], 0x10
jb 0x10096df2
push dword [ebp - 0x28]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jmp 0x10096def
push 0x100c8c0c
call dword [sym.imp.MSVCR120.dll_wprintf]
add esp, 4
mov ebx, dword [ebp - 0x2c]
push ebx
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
mov eax, dword [ebp - 0x30]
add esp, 4
cmp eax, 0xffffffff
je 0x10096e11
push eax
call dword [sym.imp.MSVCR120.dll__close]
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100ad688
mov esp, ebp
pop ebp
ret
Function at 0x10096e60
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
mov eax, 0x4e67c6a7
push edi
movzx edi, word [esi]
test di, di
je 0x10096e8f
mov edx, eax
lea esi, [esi + 2]
mov ecx, eax
shl edx, 5
shr ecx, 2
add edx, ecx
movzx ecx, di
movzx edi, word [esi]
add edx, ecx
xor eax, edx
test di, di
jne 0x10096e71
pop edi
and eax, 0x7fff
pop esi
ret
Function at 0x100977e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x868
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
xor eax, eax
mov esi, edx
push 0x7fe
push eax
mov word [ebp - 0x80c], ax
mov edi, ecx
lea eax, [ebp - 0x80a]
xor bl, bl
push eax
call sub.MSVCR120.dll_memset
push esi
push edi
push str.__s___s
push 0xffffffffffffffff
lea eax, [ebp - 0x80c]
push 0x400
push eax
call dword [sym.imp.MSVCR120.dll__snwprintf_s]
push 0x40
lea eax, [ebp - 0x860]
xorps xmm0, xmm0
push 0
push eax
movdqu xmmword [ebp - 0x81c], xmm0
call sub.MSVCR120.dll_memset
add esp, 0x30
mov dword [ebp - 0x864], 0x44
xor eax, eax
mov dword [ebp - 0x838], 1
mov word [ebp - 0x834], ax
lea eax, [ebp - 0x81c]
push eax
lea eax, [ebp - 0x864]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
lea eax, [ebp - 0x80c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x100978d5
push 0xffffffffffffffff
push dword [ebp - 0x81c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x81c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
sete bl
call esi
push dword [ebp - 0x818]
call esi
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100ad688
mov esp, ebp
pop ebp
ret
push edi
push str.execCmd__s_failed_n
call dword [sym.imp.MSVCR120.dll_wprintf]
mov ecx, dword [ebp - 8]
add esp, 8
mov al, bl
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.100ad688
mov esp, ebp
pop ebp
ret
Function at 0x10097c10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push 0x1000
mov dword [ebp - 0xc], edx
mov esi, ecx
mov byte [ebp - 1], 0
call fcn.100ad5d6
push 0x1000
push 0
push eax
mov dword [ebp - 8], eax
call sub.MSVCR120.dll_memset
push 0x100
push 0x8000
push esi
call dword [sym.imp.MSVCR120.dll_int___cdecl__wopen_wchar_t_const___int__int_]
mov esi, dword [ebp - 8]
mov ebx, eax
add esp, 0x1c
mov dword [ebp - 0x14], ebx
test ebx, ebx
js 0x10097d0e
push 0x1000
push esi
push ebx
call dword [sym.imp.MSVCR120.dll__read]
add esp, 0xc
test eax, eax
jle 0x10097d0e
mov edx, dword [ebp - 0xc]
mov ebx, edx
lea ecx, [ebx + 1]
nop
mov al, byte [ebx]
inc ebx
test al, al
jne 0x10097c80
sub ebx, ecx
mov eax, 0x1000
sub eax, ebx
push edi
xor edi, edi
mov dword [ebp - 0x10], eax
test eax, eax
jle 0x10097d07
lea ebx, [ebx]
cmp byte [edi + esi], 0x32
lea eax, [edi + esi]
jne 0x10097cfb
mov esi, edx
mov edx, ebx
sub edx, 4
jb 0x10097cc3
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x10097cc8
add eax, 4
add esi, 4
sub edx, 4
jae 0x10097cb2
cmp edx, 0xfffffffc
je 0x10097d03
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x10097cf5
cmp edx, 0xfffffffd
je 0x10097d03
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x10097cf5
cmp edx, 0xfffffffe
je 0x10097d03
mov cl, byte [eax + 2]
cmp cl, byte [esi + 2]
jne 0x10097cf5
cmp edx, 0xffffffff
je 0x10097d03
mov al, byte [eax + 3]
cmp al, byte [esi + 3]
je 0x10097d03
mov edx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
inc edi
cmp edi, dword [ebp - 0x10]
jl 0x10097ca0
jmp 0x10097d07
mov byte [ebp - 1], 1
mov esi, dword [ebp - 8]
mov ebx, dword [ebp - 0x14]
pop edi
cmp ebx, 0xffffffff
je 0x10097d1d
push ebx
call dword [sym.imp.MSVCR120.dll__close]
add esp, 4
push esi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
mov al, byte [ebp - 1]
add esp, 4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10097d30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b7476
mov eax, dword fs:[0]
push eax
mov eax, 0x1038
call fcn.100ae320
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [ebp - 0x1040]
xor bl, bl
call fcn.10096f60
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1028]
call fcn.100970a0
mov byte [ebp - 4], 2
cmp dword [ebp - 0x102c], 8
jb 0x10097da0
push dword [ebp - 0x1040]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
push 0x100
xor eax, eax
mov dword [ebp - 0x102c], 7
push 0x8000
push esi
mov dword [ebp - 0x1030], 0
mov word [ebp - 0x1040], ax
call dword [sym.imp.MSVCR120.dll_int___cdecl__wopen_wchar_t_const___int__int_]
mov esi, eax
add esp, 0xc
test esi, esi
jns 0x10097de7
push str.open_failed_n
call dword [sym.imp.MSVCR120.dll_printf]
add esp, 4
jmp 0x10097e64
push 0xfff
lea eax, [ebp - 0x100f]
mov byte [ebp - 0x1010], 0
push 0
push eax
call sub.MSVCR120.dll_memset
push 0xfff
lea eax, [ebp - 0x1010]
push eax
push esi
call dword [sym.imp.MSVCR120.dll__read]
add esp, 0x18
test eax, eax
jg 0x10097e2b
push str._read_failed_n
call dword [sym.imp.MSVCR120.dll_printf]
add esp, 4
jmp 0x10097e64
cmp eax, 0x1000
jae 0x10097ea3
cmp dword [ebp - 0x1014], 0x10
mov byte [ebp + eax - 0x1010], 0
lea eax, [ebp - 0x1028]
cmovae eax, dword [ebp - 0x1028]
push eax
lea eax, [ebp - 0x1010]
push eax
call dword [sym.imp.MSVCR120.dll_strstr]
add esp, 8
test eax, eax
setne bl
push esi
call dword [sym.imp.MSVCR120.dll__close]
add esp, 4
cmp dword [ebp - 0x1014], 0x10
jb 0x10097e86
push dword [ebp - 0x1028]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100ad688
mov esp, ebp
pop ebp
ret
call fcn.100ad932
int3
Function at 0x1009eec0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx eax, byte [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.10005910
push eax
mov ecx, dword [ebp + 8]
call fcn.10005910
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x1009eee9
mov al, 1
jmp 0x1009ef26
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
movzx edx, byte [ebp + 0x10]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.10005910
push eax
mov ecx, dword [ebp + 8]
call fcn.10005910
push eax
push str.copy_file_from____s___to____s___flag___d_failed__error___d.
push 0x14e
push str.utility::ufile::copyFile
call fcn.100989a0
add esp, 0x1c
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x1009f1f0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
call fcn.10005910
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x1009f20b
mov al, 1
jmp 0x1009f23a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
call fcn.10005910
push eax
push str.removeFile_file_from____s___error___d.
push 0x1a9
push str.utility::ufile::removeFile
call fcn.100989a0
add esp, 0x14
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x1009f350
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x22c], 0
xor eax, eax
mov word [ebp - 0x210], ax
push 0x208
push 0
lea ecx, [ebp - 0x20e]
push ecx
call sub.MSVCR120.dll_memset
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x228]
call fcn.10005760
lea ecx, [ebp - 0x228]
push ecx
mov ecx, dword [ebp + 8]
call fcn.100057c0
mov edx, dword [ebp - 0x22c]
or edx, 1
mov dword [ebp - 0x22c], edx
lea ecx, [ebp - 0x228]
call fcn.10005870
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100ad688
mov esp, ebp
pop ebp
ret

Function at 0x1009f570
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x120], 0
push 0x118
push 0
lea eax, [ebp - 0x11c]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1009f5d5
mov dword [ebp - 0x120], 0x114
lea edx, [ebp - 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 6
jb 0x1009f5e2
mov al, 1
jmp 0x1009f5e4
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100ad688
mov esp, ebp
pop ebp
ret

Function at 0x1009f600
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push 0x100bf6e0
push 0x100bf6f4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1009f62f
lea eax, [ebp - 0x28]
push eax
call dword [ebp - 4]
jmp 0x1009f639
lea ecx, [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx edx, word [ebp - 0x28]
cmp edx, 9
je 0x1009f64b
movzx eax, word [ebp - 0x28]
cmp eax, 6
jne 0x1009f64f
mov al, 1
jmp 0x1009f651
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x1009fd50
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 0x14]
push eax
movzx ecx, byte [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.10005910
push eax
mov ecx, dword [ebp + 8]
call fcn.10005910
push eax
push str.shell_filename____s___param____s___runas___d__show___d
push 0xc
push 0x100c06ac
call fcn.100989a0
add esp, 0x1c
call fcn.1009f570
movzx edx, al
test edx, edx
je 0x1009fda3
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x1009fda3
mov dword [ebp - 8], 0x100c0694
jmp 0x1009fdaa
mov dword [ebp - 8], str.open
movzx ecx, byte [ebp + 0x14]
test ecx, ecx
je 0x1009fdbb
mov dword [ebp - 4], 5
jmp 0x1009fdc2
mov dword [ebp - 4], 0
mov edx, dword [ebp - 4]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
push eax
push 0
mov ecx, dword [ebp + 0xc]
call fcn.10005910
push eax
mov ecx, dword [ebp + 8]
call fcn.10005910
push eax
mov ecx, dword [ebp - 8]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.shellEx_ret_._lastError___d
push 0x18
push str.utility::process::shell
call fcn.100989a0
add esp, 0x10
cmp dword [ebp - 0x10], 0x20
jg 0x1009fe2f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100c0778
push 0x1b
push 0x100c07bc
call fcn.100989a0
add esp, 0x10
xor al, al
jmp 0x1009fe31
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x1009fe40
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [ebp + 0x18]
push eax
movzx ecx, byte [ebp + 0x14]
push ecx
movzx edx, byte [ebp + 0x10]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.10005910
push eax
mov ecx, dword [ebp + 8]
call fcn.10005910
push eax
push str.shellEx_filename____s___param____s___runas___d__show___d__timeout___d
push 0x24
push 0x100c083c
call fcn.100989a0
add esp, 0x20
mov dword [ebp - 0x50], 0x3c
mov dword [ebp - 0x4c], 0x440
mov dword [ebp - 0x48], 0
call fcn.1009f570
movzx eax, al
test eax, eax
je 0x1009feac
movzx ecx, byte [ebp + 0x10]
test ecx, ecx
je 0x1009feac
mov dword [ebp - 0x44], str.runas
jmp 0x1009feb3
mov dword [ebp - 0x44], 0
mov ecx, dword [ebp + 8]
call fcn.10005910
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp + 0xc]
call fcn.10005910
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 0
movzx edx, byte [ebp + 0x14]
test edx, edx
je 0x1009fee1
mov dword [ebp - 0x10], 5
jmp 0x1009fee8
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x50]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x1009ff25
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100c07f8
push 0x35
push 0x100c0934
call fcn.100989a0
add esp, 0x10
xor al, al
jmp 0x1009ffe3
mov byte [ebp - 1], 1
cmp dword [ebp + 0x18], 0
je 0x1009ffd6
mov byte [ebp - 1], 0
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x1009ff65
cmp dword [ebp - 8], 0x102
je 0x1009ffa5
cmp dword [ebp - 8], 0xffffffff
je 0x1009ffbb
jmp 0x1009ffd6
mov dword [ebp - 0xc], 0xffffffff
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0xc], 0
jne 0x1009ff84
mov byte [ebp - 1], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
push str.shellEx_exitcode___d_lastError___d
push 0x47
push 0x100c08f0
call fcn.100989a0
add esp, 0x14
jmp 0x1009ffd6
push str.shellEx_timeout___
push 0x4c
push str.utility::process::shellEx
call fcn.100989a0
add esp, 0xc
jmp 0x1009ffd6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.shellEx_failed____lastError___d
push 0x51
push 0x100c099c
call fcn.100989a0
add esp, 0x10
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret