joyce8/EMBER2024-capa huggingface dataset:
Function at 0x592a30
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x638860
mov eax, dword fs:[0]
push eax
sub esp, 0x2dc
mov eax, dword [0x6d8314]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x653408
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x58]
call fcn.00429ac0
add esp, 4
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2d8]
push eax
lea ecx, [ebp - 0x58]
call fcn.00414c90
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x2dc], eax
cmp dword [ebp - 0x2dc], 0xffffffff
je 0x592bf0
lea ecx, [ebp - 0x28]
call fcn.0041b010
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2ac]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00418f80
push 0x653414
lea edx, [ebp - 0x28]
push edx
call fcn.00413e90
add esp, 8
movzx eax, al
test eax, eax
jne 0x592ae9
push 0x6533fc
lea ecx, [ebp - 0x28]
push ecx
call fcn.00413e90
add esp, 8
movzx edx, al
test edx, edx
je 0x592aee
jmp 0x592bbb
push 0x653404
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x70]
call fcn.00429ac0
add esp, 4
mov dword [ebp - 0x2e0], eax
mov eax, dword [ebp - 0x2e0]
mov dword [ebp - 0x2e8], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x2e8]
lea ecx, [ebp - 0x88]
call fcn.0047c2e0
add esp, 4
mov dword [ebp - 0x2e4], eax
mov edx, dword [ebp - 0x2e4]
push edx
lea ecx, [ebp - 0x28]
call fcn.00433dd0
lea ecx, [ebp - 0x88]
call fcn.004148d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
call fcn.004148d0
mov eax, dword [ebp - 0x2d8]
and eax, 0x10
je 0x592b7c
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x28]
push eax
call fcn.00592a30
add esp, 0xc
jmp 0x592bbb
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x28]
push edx
call fcn.00598ad0
add esp, 8
movzx eax, al
test eax, eax
je 0x592bbb
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x40]
call fcn.00456570
mov byte [ebp - 4], 3
lea edx, [ebp - 0x40]
push edx
mov ecx, dword [ebp + 0x10]
call fcn.005502f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.004148d0
lea eax, [ebp - 0x2d8]
push eax
mov ecx, dword [ebp - 0x2dc]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x592aaa
mov edx, dword [ebp - 0x2dc]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004148d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.004148d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006116d0
mov esp, ebp
pop ebp
ret
Function at 0x592d90
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x638898
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x6d8314]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x592dda
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp - 0x3c], eax
jmp 0x592de1
mov dword [ebp - 0x3c], 0
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x2c], ecx
cmp dword [ebp - 0x2c], 0
je 0x592dfc
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x40], eax
jmp 0x592e03
mov dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x592e17
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x34], ecx
jmp 0x592e1e
mov dword [ebp - 0x34], 0x65342c
mov edx, dword [ebp - 0x34]
push edx
lea ecx, [ebp - 0x28]
call fcn.00415d10
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00414900
cmp eax, 0x800
jbe 0x592e4d
push 0x800
lea ecx, [ebp - 0x28]
call fcn.00431450
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0041af00
mov edx, dword [ebp - 0x38]
or edx, 1
mov dword [ebp - 0x38], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004148d0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006116d0
mov esp, ebp
pop ebp
ret

Function at 0x592ea0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x592f4c
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x592f4c
mov ecx, dword [ebp + 0xc]
call fcn.00414900
lea ecx, [eax + eax + 2]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
push edx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
sub ecx, 2
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00414c90
push eax
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.MSVCR120.dll_memcpy_s]
add esp, 0x10
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 4]
mov byte [ecx - 1], 0
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 4]
mov byte [edx - 2], 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [ebp - 8]
push ecx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov esp, ebp
pop ebp
ret
Function at 0x593830
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x6d8314]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x120], 2
mov byte [ebp - 0x11a], 0
cmp dword [ebp - 0x120], 0
je 0x593876
cmp dword [ebp - 0x120], 2
je 0x593876
cmp dword [ebp - 0x120], 1
je 0x593876
xor al, al
jmp 0x59391f
mov dword [ebp - 0x118], 0
push 0x110
push 0
lea eax, [ebp - 0x114]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x5938b5
xor al, al
jmp 0x59391f
cmp dword [ebp - 0x108], 2
jne 0x5938c3
call fcn.00593760
movzx edx, byte [ebp - 0x11a]
test edx, edx
je 0x5938da
mov dword [ebp - 0x124], 4
jmp 0x5938e4
mov dword [ebp - 0x124], 0x10
mov eax, dword [ebp - 0x120]
or eax, dword [ebp - 0x124]
mov dword [ebp - 0x120], eax
push 0
mov ecx, dword [ebp - 0x120]
push ecx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x593912
mov byte [ebp - 0x119], 1
jmp 0x593919
mov byte [ebp - 0x119], 0
mov al, byte [ebp - 0x119]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006116d0
mov esp, ebp
pop ebp
ret
Function at 0x5949f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x6d8314]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x3c], str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov dword [ebp - 0x28], 0x20
mov eax, dword [ebp - 0x28]
push eax
call fcn.005c4f06
add esp, 4
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x40], 0x20019
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x40]
push eax
push 0
mov ecx, dword [ebp - 0x3c]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x594aa4
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x34]
push ecx
push 0
push str.DisplayVersion
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x594aa4
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00415d10
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0041af00
mov edx, dword [ebp - 0x20]
or edx, 1
mov dword [ebp - 0x20], edx
lea ecx, [ebp - 0x1c]
call fcn.004148d0
mov eax, dword [ebp + 8]
jmp 0x594ae0
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
call dword [sym.imp.MSVCR120.dll_getchar]
push 0x653838
mov ecx, dword [ebp + 8]
call fcn.00415d10
mov eax, dword [ebp - 0x20]
or eax, 1
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006116d0
mov esp, ebp
pop ebp
ret
Function at 0x594af0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x6d8314]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x3c], 0x653868
mov dword [ebp - 0x28], 0x20
mov eax, dword [ebp - 0x28]
push eax
call fcn.005c4f06
add esp, 4
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x40], 0x20019
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x40]
push eax
push 0
mov ecx, dword [ebp - 0x3c]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x594ba4
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x34]
push ecx
push 0
push str.CurrentBuild
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x594ba4
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00415d10
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0041af00
mov edx, dword [ebp - 0x20]
or edx, 1
mov dword [ebp - 0x20], edx
lea ecx, [ebp - 0x1c]
call fcn.004148d0
mov eax, dword [ebp + 8]
jmp 0x594be0
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
call dword [sym.imp.MSVCR120.dll_getchar]
push 0x6538d4
mov ecx, dword [ebp + 8]
call fcn.00415d10
mov eax, dword [ebp - 0x20]
or eax, 1
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006116d0
mov esp, ebp
pop ebp
ret

Function at 0x594bf0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
mov eax, dword [0x6d8314]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x80c], 0
xor eax, eax
mov word [ebp - 0x804], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x802]
push ecx
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x808], 0
lea edx, [ebp - 0x808]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov dword [ebp - 0x810], eax
cmp dword [ebp - 0x810], 0
jne 0x594ca9
mov dword [ebp - 0x818], 0x800
mov dword [ebp - 0x814], 0
lea edx, [ebp - 0x818]
push edx
lea eax, [ebp - 0x804]
push eax
lea ecx, [ebp - 0x814]
push ecx
push 0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x808]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x810], eax
mov ecx, dword [ebp - 0x808]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x804]
push edx
mov ecx, dword [ebp + 8]
call fcn.00415d10
mov eax, dword [ebp - 0x80c]
or eax, 1
mov dword [ebp - 0x80c], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006116d0
mov esp, ebp
pop ebp
ret
Function at 0x594d60
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x638b28
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x6d8314]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x65262f
lea ecx, [ebp - 0x28]
call fcn.00431130
mov dword [ebp - 4], 0
mov dword [ebp - 0x40], 0x34
push 0
mov ecx, dword [ebp + 8]
call fcn.00414c90
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x594e94
mov dword [ebp - 0x2c], 0
cmp dword [ebp - 0x2c], 0
jne 0x594de5
mov eax, dword [ebp - 0x34]
push eax
call fcn.005c4f06
add esp, 4
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x2c], ecx
jmp 0x594dc8
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x34]
push eax
push 0
mov ecx, dword [ebp + 8]
call fcn.00414c90
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x594e81
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x30]
push edx
push 0x653954
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x594e81
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0xc]
and edx, 0xffff
movzx eax, dx
push eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0xc]
shr edx, 0x10
and edx, 0xffff
movzx eax, dx
push eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 8]
and edx, 0xffff
movzx eax, dx
push eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 8]
shr edx, 0x10
and edx, 0xffff
movzx eax, dx
push eax
push str._d._d._d._d
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.MSVCR120.dll_sprintf]
add esp, 0x18
mov edx, dword [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x28]
call fcn.0043c0f0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
lea edx, [ebp - 0x28]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.0043c130
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004311e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006116d0
mov esp, ebp
pop ebp
ret
Function at 0x596380
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.00414c90
push eax
mov ecx, dword [ebp + 8]
call fcn.00414c90
push eax
push 0x653df0
push 0xc
push 0x653dcc
call fcn.00584a40
add esp, 0x1c
call fcn.00591620
movzx edx, al
test edx, edx
je 0x5963d3
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x5963d3
mov dword [ebp - 8], 0x653de4
jmp 0x5963da
mov dword [ebp - 8], 0x653ec4
movzx ecx, byte [ebp + 0x14]
test ecx, ecx
je 0x5963eb
mov dword [ebp - 4], 5
jmp 0x5963f2
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.00414c90
push eax
mov ecx, dword [ebp + 8]
call fcn.00414c90
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 0x653e68
call fcn.00584a40
add esp, 0x10
cmp dword [ebp - 0x10], 0x20
jg 0x59645f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x653e80
push 0x1b
push str.utility::process::shell
call fcn.00584a40
add esp, 0x10
xor al, al
jmp 0x596461
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x596470
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.00414c90
push eax
mov ecx, dword [ebp + 8]
call fcn.00414c90
push eax
push str.shellEx_filename____s___param____s___runas___d__show___d__timeout___d
push 0x24
push 0x653f0c
call fcn.00584a40
add esp, 0x20
mov dword [ebp - 0x50], 0x3c
mov dword [ebp - 0x4c], 0x440
mov dword [ebp - 0x48], 0
call fcn.00591620
movzx eax, al
test eax, eax
je 0x5964dc
movzx ecx, byte [ebp + 0x10]
test ecx, ecx
je 0x5964dc
mov dword [ebp - 0x44], str.runas
jmp 0x5964e3
mov dword [ebp - 0x44], 0
mov ecx, dword [ebp + 8]
call fcn.00414c90
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp + 0xc]
call fcn.00414c90
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 0
movzx edx, byte [ebp + 0x14]
test edx, edx
je 0x596511
mov dword [ebp - 0x10], 5
jmp 0x596518
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 0x596555
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x654068
push 0x35
push 0x65404c
call fcn.00584a40
add esp, 0x10
xor al, al
jmp 0x596613
mov byte [ebp - 1], 1
cmp dword [ebp + 0x18], 0
je 0x596606
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 0x596595
cmp dword [ebp - 8], 0x102
je 0x5965d5
cmp dword [ebp - 8], 0xffffffff
je 0x5965eb
jmp 0x596606
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 0x5965b4
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 0x653f4c
call fcn.00584a40
add esp, 0x14
jmp 0x596606
push str.shellEx_timeout___
push 0x4c
push str.utility::process::shellEx
call fcn.00584a40
add esp, 0xc
jmp 0x596606
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x6540c8
push 0x51
push 0x6540ac
call fcn.00584a40
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
Function at 0x596850
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x638c18
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x6d8314]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx eax, byte [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00414c90
push eax
mov ecx, dword [ebp + 8]
call fcn.00414c90
push eax
push str.createProcess_filename____s___param____s___show___d
push 0xed
push 0x6546b0
call fcn.00584a40
add esp, 0x18
mov ecx, dword [ebp + 8]
push ecx
mov edx, 0x65465c
lea ecx, [ebp - 0x58]
call fcn.00428e70
add esp, 4
mov dword [ebp - 0x68], eax
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x64], edx
mov dword [ebp - 4], 0
push 0x6546cc
mov eax, dword [ebp - 0x64]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.00428f60
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
call fcn.004148d0
mov ecx, dword [ebp + 0xc]
call fcn.0041af70
movzx edx, al
test edx, edx
jne 0x596936
mov eax, dword [ebp + 0xc]
push eax
mov edx, 0x6546ac
lea ecx, [ebp - 0x40]
call fcn.00428e70
add esp, 4
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x80], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x80]
push edx
lea ecx, [ebp - 0x28]
call fcn.004316b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.004148d0
mov dword [ebp - 0xc8], 0
push 0x40
push 0
lea eax, [ebp - 0xc4]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0xc8], 0x44
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0x9c], 1
movzx ecx, byte [ebp + 0x10]
test ecx, ecx
je 0x596996
mov dword [ebp - 0x5c], 5
jmp 0x59699d
mov dword [ebp - 0x5c], 0
mov dx, word [ebp - 0x5c]
mov word [ebp - 0x98], dx
xor eax, eax
mov word [ebp - 0x96], ax
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x7c], 0
xor ecx, ecx
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x70], ecx
lea edx, [ebp - 0x7c]
push edx
lea eax, [ebp - 0xc8]
push eax
push 0
push 0
push 0x10
push 0
push 0
push 0
lea ecx, [ebp - 0x28]
call fcn.00414c90
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x596a32
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.createProcess_failed____lastError___d
push 0x100
push str.utility::process::create
call fcn.00584a40
add esp, 0x10
mov dword [ebp - 0x60], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004148d0
mov eax, dword [ebp - 0x60]
jmp 0x596a68
mov ecx, dword [ebp - 0x78]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x14], 0
je 0x596a4a
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x74]
mov dword [edx], eax
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x84], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004148d0
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006116d0
mov esp, ebp
pop ebp
ret
Function at 0x596a90
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push eax
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x596ad6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x6546d0
push 0x10f
push 0x65471c
call fcn.00584a40
add esp, 0x14
xor al, al
jmp 0x596b2a
push 0xffffffffffffffff
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x596b0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp + 8]
push eax
push str.kill32_progress_failed_pid___d_lasterror___d
push 0x115
push str.utility::process::kill32
call fcn.00584a40
add esp, 0x14
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], 0
je 0x596b23
mov byte [ebp - 1], 1
jmp 0x596b27
mov byte [ebp - 1], 0
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret

Function at 0x596b30
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x638c58
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x6d8314]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x58]
call fcn.005979f0
mov dword [ebp - 4], 0
push str.tskill.exe
lea ecx, [ebp - 0x28]
call fcn.00415d10
mov byte [ebp - 4], 1
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x40]
call fcn.00465f70
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 0xc]
push ecx
push 0
mov edx, dword [ebp - 0x48]
push edx
lea eax, [ebp - 0x28]
push eax
call fcn.00596620
add esp, 0x10
mov byte [ebp - 0x41], al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.004148d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004148d0
movzx ecx, byte [ebp - 0x41]
test ecx, ecx
jne 0x596c1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.tskill.exe_error_lastError___d
push 0x198
push str.utility::process::kill
call fcn.00584a40
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x596c1e
cmp dword [ebp + 0xc], 0xffffffff
jne 0x596c05
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x596c0f
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp + 8]
push eax
call fcn.00596a90
add esp, 4
mov byte [ebp - 0x41], al
mov cl, byte [ebp - 0x41]
mov byte [ebp - 0x42], cl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.005979c0
mov al, byte [ebp - 0x42]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006116d0
mov esp, ebp
pop ebp
ret