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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b3dc3
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.10004ff0
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.10004ff0
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.10004ff0
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 0x100802d0
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 0x10080304
lea eax, [esi + 8]
push eax
push 0
push esi
push 0x10080f60
push 0
push 0
call dword [sym.imp.MSVCR120.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0xc], eax
xor eax, eax
cmp dword [esi + 0xc], eax
pop esi
setne al
pop ebp
ret 8

Function at 0x10087300
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x302c
call fcn.100ac6d0
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 [0x1010eeb4]
test al, 1
jne 0x10087384
push str.GetLogicalProcessorInformation
or eax, 1
push 0x100c4470
mov dword [0x1010eeb4], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [0x1010eeb8], esi
jmp 0x1008738a
mov esi, dword [0x1010eeb8]
test esi, esi
je 0x100873f7
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 0x100873f7
mov eax, 0xaaaaaaab
xor esi, esi
mul dword [ebp - 0x3008]
shr edx, 4
test edx, edx
je 0x100873f7
lea ecx, [ebp - 0x3000]
lea esp, [esp]
mov eax, dword [ecx]
sub eax, 0
je 0x100873ea
dec eax
jmp 0x100873eb
inc esi
add ecx, 0x18
dec edx
jne 0x100873e0
test esi, esi
je 0x100873f7
mov dword [edi], esi
cmp dword [edi], 4
jae 0x10087400
mov eax, dword [ebx]
mov dword [edi], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100ab974
mov esp, ebp
pop ebp
ret
Function at 0x1008b060
Capabilities:
Terminate process

Disassembly:
push esi
push str.killVirtualBoxProcess
push 0x584
push str.vbox::VBoxComObj::killVirtualBoxProcess
mov esi, ecx
call fcn.10095c20
add esp, 0xc
cmp dword [esi + 0x138], 0
je 0x1008b0d5
push str.killVirtualBoxProcess_start
push 0x587
push str.vbox::VBoxComObj::killVirtualBoxProcess
call fcn.10095c20
add esp, 0xc
push 0
push dword [esi + 0x138]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [esi + 0x138]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.killVirtualBoxProcess_end
push 0x58b
push str.vbox::VBoxComObj::killVirtualBoxProcess
mov dword [esi + 0x138], 0
call fcn.10095c20
add esp, 0xc
pop esi
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100acf48
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push dword [edi + 0x128]
call dword [sym.imp.KERNEL32.dll_SetEvent]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov eax, dword [edi + 0x130]
test eax, eax
je 0x1008b1d5
push 0x5208
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1008b1d5
push str.wait_for_LdBoxHeadless_timeout___
push 0x59b
push str.vbox::VBoxComObj::stop
call fcn.10095c20
add esp, 0xc
lea ecx, [ebp - 0x28]
push str.Ld9BoxHeadless.exe
call fcn.10004da0
push 0xffffffffffffffff
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push dword [edi + 0x12c]
push eax
call fcn.1009c940
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 8
mov byte [ebp - 0x29], al
jb 0x1008b1a0
push dword [ebp - 0x28]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
mov al, byte [ebp - 0x29]
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], cx
test al, al
je 0x1008b1d5
push dword [edi + 0x12c]
push str.force_killed_Ld9BoxHeadless.exe_pid___d
push 0x5a4
push str.vbox::VBoxComObj::stop
call fcn.10095c20
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, esi
cmp ecx, 0x5208
jae 0x1008b1f1
sub esi, eax
add esi, 0x5208
jmp 0x1008b1f3
xor esi, esi
push esi
push dword [edi + 0x11c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1008b21b
push str.WaitForSingleObject_m_threadRunVbox.m_hThread_failed_
push 0x5ad
push str.vbox::VBoxComObj::stop
call fcn.10095c20
add esp, 0xc
push dword [edi + 0x130]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x130], 0
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.100ab974
mov esp, ebp
pop ebp
ret
Function at 0x10093ff0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b55a9
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 0x10094079
push edi
push str._open__s_failed_n
call dword [sym.imp.MSVCR120.dll_wprintf]
add esp, 8
jmp 0x100941a5
push 0x100000
call fcn.100ab8c2
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 0x10094194
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 0x100940d7
push edi
push str.find_mac_from__s_failed_n
call dword [sym.imp.MSVCR120.dll_wprintf]
add esp, 8
jmp 0x100941a2
add ebx, 0xc
push 0x100c671c
push ebx
call dword [sym.imp.MSVCR120.dll_strstr]
add esp, 8
test eax, eax
jne 0x10094101
push edi
push str.find_mac_end_char_from__s_failed_n
call dword [sym.imp.MSVCR120.dll_wprintf]
add esp, 8
jmp 0x100941a2
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.10003740
lea eax, [ebp - 0x28]
cmp esi, eax
je 0x10094183
cmp dword [esi + 0x14], 0x10
jb 0x10094137
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 0x10094173
mov eax, dword [ebp - 0x18]
inc eax
je 0x10094178
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 0x100941a2
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 0x100941a2
cmp dword [ebp - 0x14], 0x10
jb 0x100941a2
push dword [ebp - 0x28]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jmp 0x1009419f
push 0x100c6650
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 0x100941c1
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.100ab974
mov esp, ebp
pop ebp
ret
Function at 0x10094210
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
mov eax, 0x4e67c6a7
push edi
movzx edi, word [esi]
test di, di
je 0x1009423f
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 0x10094221
pop edi
and eax, 0x7fff
pop esi
ret
Function at 0x10094b60
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 0x10094c55
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.100ab974
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.100ab974
mov esp, ebp
pop ebp
ret
Function at 0x10094f90
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.100ab8c2
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 0x1009508e
push 0x1000
push esi
push ebx
call dword [sym.imp.MSVCR120.dll__read]
add esp, 0xc
test eax, eax
jle 0x1009508e
mov edx, dword [ebp - 0xc]
mov ebx, edx
lea ecx, [ebx + 1]
nop
mov al, byte [ebx]
inc ebx
test al, al
jne 0x10095000
sub ebx, ecx
mov eax, 0x1000
sub eax, ebx
push edi
xor edi, edi
mov dword [ebp - 0x10], eax
test eax, eax
jle 0x10095087
lea ebx, [ebx]
cmp byte [edi + esi], 0x32
lea eax, [edi + esi]
jne 0x1009507b
mov esi, edx
mov edx, ebx
sub edx, 4
jb 0x10095043
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x10095048
add eax, 4
add esi, 4
sub edx, 4
jae 0x10095032
cmp edx, 0xfffffffc
je 0x10095083
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x10095075
cmp edx, 0xfffffffd
je 0x10095083
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x10095075
cmp edx, 0xfffffffe
je 0x10095083
mov cl, byte [eax + 2]
cmp cl, byte [esi + 2]
jne 0x10095075
cmp edx, 0xffffffff
je 0x10095083
mov al, byte [eax + 3]
cmp al, byte [esi + 3]
je 0x10095083
mov edx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
inc edi
cmp edi, dword [ebp - 0x10]
jl 0x10095020
jmp 0x10095087
mov byte [ebp - 1], 1
mov esi, dword [ebp - 8]
mov ebx, dword [ebp - 0x14]
pop edi
cmp ebx, 0xffffffff
je 0x1009509d
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 0x100950b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b56c6
mov eax, dword fs:[0]
push eax
mov eax, 0x1038
call fcn.100ac6d0
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.10094310
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1028]
call fcn.10094450
mov byte [ebp - 4], 2
cmp dword [ebp - 0x102c], 8
jb 0x10095120
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 0x10095167
push str.open_failed_n
call dword [sym.imp.MSVCR120.dll_printf]
add esp, 4
jmp 0x100951e4
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 0x100951ab
push str._read_failed_n
call dword [sym.imp.MSVCR120.dll_printf]
add esp, 4
jmp 0x100951e4
cmp eax, 0x1000
jae 0x10095223
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 0x10095206
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.100ab974
mov esp, ebp
pop ebp
ret
call fcn.100abc1e
int3
Function at 0x1009baa0
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.10005190
push eax
mov ecx, dword [ebp + 8]
call fcn.10005190
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x1009bac9
mov al, 1
jmp 0x1009bb06
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.10005190
push eax
mov ecx, dword [ebp + 8]
call fcn.10005190
push eax
push str.copy_file_from____s___to____s___flag___d_failed__error___d.
push 0x103
push str.utility::ufile::copyFile
call fcn.10095c20
add esp, 0x1c
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x1009bb10
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
call fcn.10005190
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x1009bb2b
mov al, 1
jmp 0x1009bb5a
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.10005190
push eax
push str.removeFile_file_from____s___error___d.
push 0x15e
push str.utility::ufile::removeFile
call fcn.10095c20
add esp, 0x14
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x1009bc70
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.10004da0
lea ecx, [ebp - 0x228]
push ecx
mov ecx, dword [ebp + 8]
call fcn.10004e00
mov edx, dword [ebp - 0x22c]
or edx, 1
mov dword [ebp - 0x22c], edx
lea ecx, [ebp - 0x228]
call fcn.10004eb0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100ab974
mov esp, ebp
pop ebp
ret

Function at 0x1009be30
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 0x1009be95
mov dword [ebp - 0x120], 0x114
lea edx, [ebp - 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 6
jb 0x1009bea2
mov al, 1
jmp 0x1009bea4
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100ab974
mov esp, ebp
pop ebp
ret
Function at 0x1009bec0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push 0x100be194
push 0x100be144
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 0x1009beef
lea eax, [ebp - 0x28]
push eax
call dword [ebp - 4]
jmp 0x1009bef9
lea ecx, [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx edx, word [ebp - 0x28]
cmp edx, 9
je 0x1009bf0b
movzx eax, word [ebp - 0x28]
cmp eax, 6
jne 0x1009bf0f
mov al, 1
jmp 0x1009bf11
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x1009bfa0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov dword [ebp - 0x3c], 0
push 0x38
push 0
lea eax, [ebp - 0x38]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x440
mov dword [ebp - 0x30], 0x100be2fc
mov ecx, dword [ebp + 8]
call fcn.10005190
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], 5
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x1009c011
push 5
push 0
mov ecx, dword [ebp + 8]
call fcn.10005190
push eax
push str.iexplore.exe
push 0x100be2c0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov esp, ebp
pop ebp
ret

Function at 0x1009c190
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.10005190
push eax
mov ecx, dword [ebp + 8]
call fcn.10005190
push eax
push str.shell_filename____s___param____s___runas___d__show___d
push 0xc
push 0x100beda4
call fcn.10095c20
add esp, 0x1c
call fcn.1009be30
movzx edx, al
test edx, edx
je 0x1009c1e3
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x1009c1e3
mov dword [ebp - 8], 0x100bee88
jmp 0x1009c1ea
mov dword [ebp - 8], str.open
movzx ecx, byte [ebp + 0x14]
test ecx, ecx
je 0x1009c1fb
mov dword [ebp - 4], 5
jmp 0x1009c202
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.10005190
push eax
mov ecx, dword [ebp + 8]
call fcn.10005190
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 0x100bee70
call fcn.10095c20
add esp, 0x10
cmp dword [ebp - 0x10], 0x20
jg 0x1009c26f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100bef88
push 0x1b
push str.utility::process::shell
call fcn.10095c20
add esp, 0x10
xor al, al
jmp 0x1009c271
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x1009c280
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.10005190
push eax
mov ecx, dword [ebp + 8]
call fcn.10005190
push eax
push str.shellEx_filename____s___param____s___runas___d__show___d__timeout___d
push 0x24
push 0x100bef38
call fcn.10095c20
add esp, 0x20
mov dword [ebp - 0x50], 0x3c
mov dword [ebp - 0x4c], 0x440
mov dword [ebp - 0x48], 0
call fcn.1009be30
movzx eax, al
test eax, eax
je 0x1009c2ec
movzx ecx, byte [ebp + 0x10]
test ecx, ecx
je 0x1009c2ec
mov dword [ebp - 0x44], str.runas
jmp 0x1009c2f3
mov dword [ebp - 0x44], 0
mov ecx, dword [ebp + 8]
call fcn.10005190
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp + 0xc]
call fcn.10005190
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 0
movzx edx, byte [ebp + 0x14]
test edx, edx
je 0x1009c321
mov dword [ebp - 0x10], 5
jmp 0x1009c328
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 0x1009c365
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100bf040
push 0x35
push 0x100bef6c
call fcn.10095c20
add esp, 0x10
xor al, al
jmp 0x1009c423
mov byte [ebp - 1], 1
cmp dword [ebp + 0x18], 0
je 0x1009c416
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 0x1009c3a5
cmp dword [ebp - 8], 0x102
je 0x1009c3e5
cmp dword [ebp - 8], 0xffffffff
je 0x1009c3fb
jmp 0x1009c416
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 0x1009c3c4
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 0x100bf084
call fcn.10095c20
add esp, 0x14
jmp 0x1009c416
push str.shellEx_timeout___
push 0x4c
push 0x100bf024
call fcn.10095c20
add esp, 0xc
jmp 0x1009c416
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.shellEx_failed____lastError___d
push 0x51
push str.utility::process::shellEx
call fcn.10095c20
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