joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001fd25
Capabilities:
Enumerate services

Disassembly:
jmp 0x1400488a0
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1d8
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, 0x32
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1f8]
mov rax, qword [0x1400a6e78]
xor rax, rbp
mov qword [rbp + 0x178], rax
lea rcx, [0x1400b3162]
call fcn.140020883
mov dword [rbp + 4], 0xe000
mov eax, dword [rbp + 4]
mov ecx, eax
call qword [sym.imp.ucrtbased.dll_malloc]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x1b8], 0
je 0x140048924
mov rax, qword [rbp + 0x1b8]
mov dword [rax], 0
cmp qword [rbp + 0x28], 0
je 0x140048aaa
mov eax, dword [rbp + 4]
mov edx, eax
mov rcx, qword [rbp + 0x28]
call fcn.1400200a9
mov dword [rbp + 0x44], 0
mov dword [rbp + 0x64], 0
mov qword [rsp + 0x48], 0
lea rax, [rbp + 0x64]
mov qword [rsp + 0x40], rax
mov rax, qword [rbp + 0x1b8]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x44]
mov qword [rsp + 0x30], rax
mov eax, dword [rbp + 4]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp + 0x28]
mov qword [rsp + 0x20], rax
mov r9d, 3
mov r8d, dword [rbp + 0x1a8]
xor edx, edx
mov rcx, qword [rbp + 0x1a0]
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
test eax, eax
je 0x1400489ba
mov rax, qword [rbp + 0x1b0]
mov rcx, qword [rbp + 0x28]
mov qword [rax], rcx
mov eax, 1
jmp 0x140048aac
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x84], eax
cmp dword [rbp + 0x84], 0xea
jne 0x140048a8e
mov eax, dword [rbp + 0x44]
mov ecx, dword [rbp + 4]
add ecx, eax
mov eax, ecx
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
mov edx, eax
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_realloc]
mov qword [rbp + 0xa8], rax
cmp qword [rbp + 0xa8], 0
je 0x140048a8c
mov rax, qword [rbp + 0xa8]
mov qword [rbp + 0x28], rax
mov eax, dword [rbp + 4]
mov edx, eax
mov rcx, qword [rbp + 0x28]
call fcn.1400200a9
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov rax, qword [rbp + 0x1b8]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x44]
mov qword [rsp + 0x30], rax
mov eax, dword [rbp + 4]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp + 0x28]
mov qword [rsp + 0x20], rax
mov r9d, 3
mov r8d, dword [rbp + 0x1a8]
xor edx, edx
mov rcx, qword [rbp + 0x1a0]
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
test eax, eax
je 0x140048a8c
mov rax, qword [rbp + 0x1b0]
mov rcx, qword [rbp + 0x28]
mov qword [rax], rcx
mov eax, 1
jmp 0x140048aac
jmp 0x140048aa0
mov edx, dword [rbp + 0x84]
lea rcx, str.ERROR:__u_n
call fcn.14001fae1
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_free]
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x50]
lea rdx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.1400203ce
mov rax, rdi
mov rcx, qword [rbp + 0x178]
xor rcx, rbp
call fcn.14001fb4f
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret
Function at 0x14001fd39
Capabilities:
Terminate process

Disassembly:
jmp 0x14005bcd0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x14001fd6b
Capabilities:
Get common file path
Get program files directory
Query environment variable

Disassembly:
jmp 0x140047c30
push rbp
push rdi
sub rsp, 0xa18
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x1be
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1400a6e78]
xor rax, rbp
mov qword [rbp + 0x9e8], rax
lea rcx, [0x1400b315a]
call fcn.140020883
movzx eax, word [0x1400697b0]
mov word [rbp + 0x240], ax
lea rax, [rbp + 0x242]
mov rdi, rax
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
lea rax, str.qemu_ga
mov qword [rbp + 0x468], rax
lea rax, str.SPICE_Guest_Tools
mov qword [rbp + 0x470], rax
mov eax, 2
mov word [rbp + 0x494], ax
mov dword [rbp + 0x4b4], 0
jmp 0x140047cd0
mov eax, dword [rbp + 0x4b4]
inc eax
mov dword [rbp + 0x4b4], eax
movzx eax, word [rbp + 0x494]
cmp dword [rbp + 0x4b4], eax
jge 0x140047db0
movzx eax, word [0x1400697b0]
mov word [rbp + 0x4e0], ax
lea rax, [rbp + 0x4e2]
mov rdi, rax
xor eax, eax
mov ecx, 0x1fe
rep stosb byte [rdi], al
call fcn.14002027f
test eax, eax
je 0x140047d26
mov r8d, 0x104
lea rdx, [rbp + 0x10]
lea rcx, str._ProgramW6432_
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x140047d3b
xor r9d, r9d
mov r8d, 0x26
lea rdx, [rbp + 0x10]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
movsxd rax, dword [rbp + 0x4b4]
mov r8, qword [rbp + rax*8 + 0x468]
lea rdx, [rbp + 0x10]
lea rcx, [rbp + 0x240]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
lea r9, [rbp + 0x240]
lea r8, str.Checking_QEMU_directory__s
mov edx, 0x100
lea rcx, [rbp + 0x4e0]
call fcn.14001f703
lea rcx, [rbp + 0x240]
call fcn.140020414
test eax, eax
je 0x140047d9d
lea rdx, [rbp + 0x4e0]
mov ecx, 1
call fcn.1400209f5
jmp 0x140047dab
lea rdx, [rbp + 0x4e0]
xor ecx, ecx
call fcn.1400209f5
jmp 0x140047cc2
lea rcx, [rbp - 0x20]
lea rdx, [0x140074ef0]
call fcn.1400203ce
mov rcx, qword [rbp + 0x9e8]
xor rcx, rbp
call fcn.14001fb4f
lea rsp, [rbp + 0x9f8]
pop rdi
pop rbp
ret
Function at 0x14001ff5f
Capabilities:
Get geographical location

Disassembly:
jmp 0x14005aa20
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov r9d, 2
lea r8, [rsp + 0x40]
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x14005aa5d
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov edx, eax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
call fcn.14002085b
add rsp, 0x58
ret

Function at 0x14001ffbe
Capabilities:
Enumerate threads

Disassembly:
jmp 0x140053cf0
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x22
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x188]
mov rax, qword [0x1400a6e78]
xor rax, rbp
mov qword [rbp + 0x138], rax
lea rcx, [0x1400b33a0]
call fcn.140020883
xor edx, edx
mov ecx, 4
call fcn.14001fb0e
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
je 0x140053ddc
mov dword [rbp + 0x28], 0x1c
lea rdx, [rbp + 0x28]
mov rcx, qword [rbp + 8]
call fcn.14001fee7
test eax, eax
je 0x140053dd2
mov eax, dword [rbp + 0x28]
cmp rax, 0x10
jb 0x140053dc1
mov eax, dword [rbp + 0x160]
cmp dword [rbp + 0x34], eax
jne 0x140053dc1
mov r8d, dword [rbp + 0x30]
xor edx, edx
mov ecx, 0x20000
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
jne 0x140053da8
lea rcx, str.OpenThread
call fcn.14001fd66
jmp 0x140053dc1
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp + 0x30]
jmp 0x140053dea
lea rdx, [rbp + 0x28]
mov rcx, qword [rbp + 8]
call fcn.14001f258
test eax, eax
jne 0x140053d6a
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.CreateToolhelp32Snapshot
call fcn.14001fd66
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14007c2b0]
call fcn.1400203ce
mov rax, rdi
mov rcx, qword [rbp + 0x138]
xor rcx, rbp
call fcn.14001fb4f
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret
Function at 0x14002006d
Capabilities:
Enumerate process modules

Disassembly:
jmp 0x14004d9a0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x708
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x12a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x728]
mov rax, qword [0x1400a6e78]
xor rax, rbp
mov qword [rbp + 0x6d8], rax
lea rcx, [0x1400b31a5]
call fcn.140020883
mov dword [rbp + 4], 0
mov edx, dword [rbp + 0x700]
mov ecx, 8
call fcn.14001fb0e
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0xffffffffffffffff
je 0x14004da62
mov dword [rbp + 0x50], 0x438
lea rdx, [rbp + 0x50]
mov rcx, qword [rbp + 0x28]
call fcn.14001feec
test eax, eax
je 0x14004da58
mov rdx, qword [rbp + 0x708]
lea rcx, [rbp + 0x80]
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x14004da47
mov dword [rbp + 4], 1
jmp 0x14004da58
lea rdx, [rbp + 0x50]
mov rcx, qword [rbp + 0x28]
call fcn.14001f348
test eax, eax
jne 0x14004da26
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp + 4]
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, [0x140079f00]
call fcn.1400203ce
mov eax, edi
mov rcx, qword [rbp + 0x6d8]
xor rcx, rbp
call fcn.14001fb4f
lea rsp, [rbp + 0x6e8]
pop rdi
pop rbp
ret

Function at 0x140020086
Capabilities:
Parse pe header

Disassembly:
jmp 0x14005d940
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14005d960
xor al, al
jmp 0x14005d9e1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14005d973
xor al, al
jmp 0x14005d9e1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14005d99d
xor al, al
jmp 0x14005d9e1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14005d9b1
xor al, al
jmp 0x14005d9e1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14005d9c3
xor al, al
jmp 0x14005d9e1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14005d9df
xor al, al
jmp 0x14005d9e1
mov al, 1
add rsp, 0x38
ret
Function at 0x14002035b
Capabilities:
Get mac address on windows

Disassembly:
jmp 0x1400581d0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1d8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x3e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1f8]
mov rax, qword [0x1400a6e78]
xor rax, rbp
mov qword [rbp + 0x1a0], rax
lea rcx, [0x1400b33a0]
call fcn.140020883
mov dword [rbp + 4], 0
mov dword [rbp + 0x64], 0x2c0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, 0x2c0
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x14005825f
lea rcx, str.Error_allocating_memory_needed_to_call_GetAdaptersinfo._n
call fcn.14001f0d7
mov eax, 0xffffffff
jmp 0x1400583aa
lea rdx, [rbp + 0x64]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
mov dword [rbp + 0x84], eax
cmp dword [rbp + 0x84], 0x6f
jne 0x1400582eb
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rbp + 0x28]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [rbp + 0x64]
mov qword [rbp + 0x198], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, qword [rbp + 0x198]
mov r8, rcx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x1400582d7
lea rcx, str.Error_allocating_memory_needed_to_call_GetAdaptersinfo_n
call fcn.14001fae1
mov eax, 1
jmp 0x1400583aa
lea rdx, [rbp + 0x64]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
mov dword [rbp + 0x84], eax
cmp dword [rbp + 0x84], 0
jne 0x140058392
mov dword [rbp + 0xc4], 0
jmp 0x140058312
mov eax, dword [rbp + 0xc4]
inc eax
mov dword [rbp + 0xc4], eax
cmp dword [rbp + 0xc4], 4
jge 0x14005833d
movsxd rax, dword [rbp + 0xc4]
movsxd rcx, dword [rbp + 0xc4]
mov rdx, qword [rbp + 0x1d0]
movzx eax, byte [rdx + rax*2]
mov byte [rbp + rcx + 0xa4], al
jmp 0x140058304
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
je 0x140058392
mov rax, qword [rbp + 0x48]
cmp dword [rax + 0x194], 6
jne 0x140058385
mov rax, qword [rbp + 0x48]
add rax, 0x198
mov r8d, 3
mov rdx, rax
lea rcx, [rbp + 0xa4]
call fcn.14001f86b
test eax, eax
jne 0x140058385
mov dword [rbp + 4], 1
jmp 0x140058392
mov rax, qword [rbp + 0x48]
mov rax, qword [rax]
mov qword [rbp + 0x48], rax
jmp 0x140058345
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rbp + 0x28]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [rbp + 4]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.1400203ce
mov rax, rdi
mov rcx, qword [rbp + 0x1a0]
xor rcx, rbp
call fcn.14001fb4f
lea rsp, [rbp + 0x1b8]
pop rdi
pop rbp
ret
Function at 0x140020414
Capabilities:
Check if file exists
Get file attributes

Disassembly:
jmp 0x1400593c0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x1400b33a0]
call fcn.140020883
mov rcx, qword [rbp + 0x100]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0xffffffff
je 0x14005940b
mov eax, dword [rbp + 4]
and eax, 0x10
test eax, eax
je 0x14005940b
mov dword [rbp + 0xd4], 1
jmp 0x140059415
mov dword [rbp + 0xd4], 0
mov eax, dword [rbp + 0xd4]
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret

Function at 0x1400205a4
Capabilities:
Log keystrokes via application hook

Disassembly:
jmp 0x14004e530
push rbp
push rsi
push rdi
sub rsp, 0x4b0
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xc4
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1400a6e78]
xor rax, rbp
mov qword [rbp + 0x488], rax
lea rcx, [0x1400b31b4]
call fcn.140020883
lea rax, [rbp + 8]
lea rcx, str.InjectedDLL.dll
mov rdi, rax
mov rsi, rcx
mov ecx, 0x20
rep movsb byte [rdi], byte [rsi]
lea rcx, str.notepad.exe
call fcn.14001f50a
mov dword [rbp + 0x2b4], eax
cmp dword [rbp + 0x2b4], 0
jne 0x14004e5a8
xor eax, eax
jmp 0x14004e6e7
mov edx, dword [rbp + 0x2b4]
lea rcx, str._t___Getting_proc_id:__u_n
call fcn.14001f0d7
mov ecx, dword [rbp + 0x2b4]
call fcn.14001ffbe
mov dword [rbp + 0x2d4], eax
cmp dword [rbp + 0x2d4], 0
jne 0x14004e5db
xor eax, eax
jmp 0x14004e6e7
mov edx, dword [rbp + 0x2d4]
lea rcx, str._t___Getting_main_thread_id_of_proc_id:__u_n
call fcn.14001f0d7
xor r9d, r9d
lea r8, [rbp + 0x50]
mov edx, 0x104
lea rcx, [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea rdx, [rbp + 0x50]
lea rcx, str._t___Full_DLL_Path:__s_n
call fcn.14001f0d7
lea rcx, [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rbp + 0x298], rax
cmp qword [rbp + 0x298], 0
jne 0x14004e641
lea rcx, str.LoadLibrary
call fcn.14001fd66
xor eax, eax
jmp 0x14004e6e7
lea rcx, str._t___Looking_for_MyProc_in_our_dll_n
call fcn.14001f0d7
lea rdx, str.MyProc
mov rcx, qword [rbp + 0x298]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x278], rax
cmp qword [rbp + 0x278], 0
jne 0x14004e682
lea rcx, str.GetProcAddress
call fcn.14001fd66
xor eax, eax
jmp 0x14004e6e7
mov rdx, qword [rbp + 0x278]
lea rcx, str._t___Found_at_0x_p_n
call fcn.14001f0d7
mov r9d, dword [rbp + 0x2d4]
mov r8, qword [rbp + 0x298]
mov rdx, qword [rbp + 0x278]
mov ecx, 2
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [rbp + 0x2f8], rax
cmp qword [rbp + 0x2f8], 0
jne 0x14004e6d6
lea rcx, str.SetWindowsHookEx
call fcn.14001fd66
xor eax, eax
jmp 0x14004e6e7
lea rcx, str.SetWindowsHookEx_created_successfully_..._n
call fcn.14001f0d7
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.1400203ce
mov rax, rdi
mov rcx, qword [rbp + 0x488]
xor rcx, rbp
call fcn.14001fb4f
lea rsp, [rbp + 0x490]
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002077a
Capabilities:
Get explorer pid

Disassembly:
jmp 0x140031ea0
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xa
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1400a6e78]
xor rax, rbp
mov qword [rbp + 0xd8], rax
lea rcx, [0x1400b3089]
call fcn.140020883
mov dword [rbp + 4], 0
call qword [sym.imp.USER32.dll_GetShellWindow]
lea rdx, [rbp + 4]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [rbp + 4]
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, [0x14006bdc0]
call fcn.1400203ce
mov eax, edi
mov rcx, qword [rbp + 0xd8]
xor rcx, rbp
call fcn.14001fb4f
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x140020810
Capabilities:
Check if file exists
Get file attributes

Disassembly:
jmp 0x140059440
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x1400b33a0]
call fcn.140020883
mov rcx, qword [rbp + 0x100]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0xffffffff
je 0x14005948b
mov eax, dword [rbp + 4]
and eax, 0x10
test eax, eax
jne 0x14005948b
mov dword [rbp + 0xd4], 1
jmp 0x140059495
mov dword [rbp + 0xd4], 0
mov eax, dword [rbp + 0xd4]
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x14003ac50
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x740
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x138
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x768]
mov rax, qword [0x1400a6e78]
xor rax, rbp
mov qword [rbp + 0x718], rax
lea rcx, [0x1400b30f4]
call fcn.140020883
mov eax, 2
imul rax, rax, 1
mov rcx, qword [rbp + 0x740]
add rcx, rax
mov rax, rcx
mov dx, 0x5c
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrChrW]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
je 0x14003ace6
mov rax, qword [rbp + 8]
add rax, 2
mov dx, 0x5c
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrChrW]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x14003acf7
mov eax, 0x80004005
jmp 0x14003ae49
mov rax, qword [rbp + 8]
movzx eax, word [rax]
mov word [rbp + 0x24], ax
xor eax, eax
mov rcx, qword [rbp + 8]
mov word [rcx], ax
lea rax, [rbp + 0x280]
lea rcx, [0x14006e764]
mov rdi, rax
mov rsi, rcx
mov ecx, 6
rep movsb byte [rdi], byte [rsi]
lea rax, [rbp + 0x286]
mov rdi, rax
xor eax, eax
mov ecx, 0x202
rep stosb byte [rdi], al
mov eax, 0x41
mov word [rbp + 0x4a4], ax
jmp 0x14003ad58
movzx eax, word [rbp + 0x4a4]
inc ax
mov word [rbp + 0x4a4], ax
movzx eax, word [rbp + 0x4a4]
cmp eax, 0x5a
jge 0x14003ae39
mov eax, 2
imul rax, rax, 0
movzx ecx, word [rbp + 0x4a4]
mov word [rbp + rax + 0x280], cx
mov eax, 2
imul rax, rax, 0
mov qword [rbp + 0x708], rax
cmp qword [rbp + 0x708], 0x208
jae 0x14003ad9f
jmp 0x14003ada4
call fcn.140020117
xor eax, eax
mov rcx, qword [rbp + 0x708]
mov word [rbp + rcx + 0x50], ax
mov r8d, 0x104
lea rdx, [rbp + 0x50]
lea rcx, [rbp + 0x280]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x14003ae34
mov rdx, qword [rbp + 0x740]
lea rcx, [rbp + 0x50]
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x14003ae34
lea r8, [0x14006e76c]
mov edx, 0x104
lea rcx, [rbp + 0x280]
call fcn.14001fb90
mov rax, qword [rbp + 8]
add rax, 2
mov r8, rax
mov edx, 0x104
lea rcx, [rbp + 0x280]
call fcn.14001fb90
lea r8, [rbp + 0x280]
mov rdx, qword [rbp + 0x748]
mov rcx, qword [rbp + 0x740]
call fcn.1400203d8
xor eax, eax
jmp 0x14003ae49
jmp 0x14003ad47
mov rax, qword [rbp + 8]
movzx ecx, word [rbp + 0x24]
mov word [rax], cx
mov eax, 0x80004005
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.1400203ce
mov rax, rdi
mov rcx, qword [rbp + 0x718]
xor rcx, rbp
call fcn.14001fb4f
lea rsp, [rbp + 0x720]
pop rdi
pop rsi
pop rbp
ret
Function at 0x140043b50
Capabilities:
Get hostname

Disassembly:
push rbp
push rdi
sub rsp, 0x138
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, SafeArrayGetElement
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1400a6e78]
xor rax, rbp
mov qword [rbp + 0x100], rax
lea rcx, [0x1400b313e]
call fcn.140020883
mov dword [rbp + 0x24], 0
lea r8, [rbp + 0x24]
xor edx, edx
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
mov eax, dword [rbp + 0x24]
inc eax
mov eax, eax
mov qword [rbp + 0xf8], rax
mov eax, 2
mov rcx, qword [rbp + 0xf8]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call qword [sym.imp.ucrtbased.dll_malloc]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x140043be5
xor eax, eax
jmp 0x140043c0e
lea r8, [rbp + 0x24]
mov rdx, qword [rbp + 8]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
jne 0x140043c0a
mov rcx, qword [rbp + 8]
call qword [sym.imp.ucrtbased.dll_free]
xor eax, eax
jmp 0x140043c0e
mov rax, qword [rbp + 8]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x140072410]
call fcn.1400203ce
mov rax, rdi
mov rcx, qword [rbp + 0x100]
xor rcx, rbp
call fcn.14001fb4f
lea rsp, [rbp + 0x118]
pop rdi
pop rbp
ret

Function at 0x140043c80
Capabilities:
Get hostname

Disassembly:
push rbp
push rdi
sub rsp, 0x138
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, SafeArrayGetElement
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1400a6e78]
xor rax, rbp
mov qword [rbp + 0x100], rax
lea rcx, [0x1400b313e]
call fcn.140020883
mov dword [rbp + 0x24], SafeArrayLock
mov eax, dword [rbp + 0x24]
mov qword [rbp + 0xf8], rax
mov eax, 2
mov rcx, qword [rbp + 0xf8]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call qword [sym.imp.ucrtbased.dll_malloc]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x140043d00
xor eax, eax
jmp 0x140043d24
lea rdx, [rbp + 0x24]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x140043d20
mov rcx, qword [rbp + 8]
call qword [sym.imp.ucrtbased.dll_free]
xor eax, eax
jmp 0x140043d24
mov rax, qword [rbp + 8]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x140072390]
call fcn.1400203ce
mov rax, rdi
mov rcx, qword [rbp + 0x100]
xor rcx, rbp
call fcn.14001fb4f
lea rsp, [rbp + 0x118]
pop rdi
pop rbp
ret
Function at 0x140043d90
Capabilities:
Get session user name

Disassembly:
push rbp
push rdi
sub rsp, 0x138
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, SafeArrayGetElement
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1400a6e78]
xor rax, rbp
mov qword [rbp + 0x100], rax
lea rcx, [0x1400b313e]
call fcn.140020883
mov dword [rbp + 0x24], 0x101
mov eax, dword [rbp + 0x24]
mov qword [rbp + 0xf8], rax
mov eax, 2
mov rcx, qword [rbp + 0xf8]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call qword [sym.imp.ucrtbased.dll_malloc]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x140043e10
xor eax, eax
jmp 0x140043e34
lea rdx, [rbp + 0x24]
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x140043e30
mov rcx, qword [rbp + 8]
call qword [sym.imp.ucrtbased.dll_free]
xor eax, eax
jmp 0x140043e34
mov rax, qword [rbp + 8]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x140072310]
call fcn.1400203ce
mov rax, rdi
mov rcx, qword [rbp + 0x100]
xor rcx, rbp
call fcn.14001fb4f
lea rsp, [rbp + 0x118]
pop rdi
pop rbp
ret