joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140033460
Capabilities:
Delete service

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x20
mov rsi, rcx
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x1400334ea
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
mov qword [rsp + 0x30], rdi
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test rax, rax
mov rdi, rax
je 0x1400334d8
mov r8d, 0x10000
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
test rax, rax
mov rsi, rax
je 0x1400334cf
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov ecx, 1
test eax, eax
cmovne ebx, ecx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret

Function at 0x140033500
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
mov r11, rsp
sub rsp, 0x68
mov qword [rsp + 0x50], 0xfffffffffffffffe
lea rax, [r11 + 0x10]
mov qword [r11 - 0x28], rax
lea rax, [r11 + 0x18]
mov qword [r11 - 0x30], rax
xor eax, eax
mov qword [r11 - 0x38], rax
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1400ee248]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x140033574
lea rdx, [0x1400ee278]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
add rsp, 0x68
ret
Function at 0x140037970
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x160
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1401620c0]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor esi, esi
mov dword [rsp + 0x20], esi
mov byte [rsp + 0x40], sil
xor edx, edx
mov r8d, 0x103
lea rcx, [rsp + 0x41]
call fcn.1400c2840
nop
test rbx, rbx
jne 0x1400379ee
lea rdx, [rsp + 0x40]
mov ecx, 0xff
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140037970
lea rbx, [rsp + 0x40]
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
cmp rcx, 1
je 0x140037a6c
mov r8, qword [rsp + 0x28]
lea rdx, [r8 + 0x30]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
cmp rcx, 1
jne 0x140037a6c
nop
movzx eax, byte [rbx]
mov byte [rdx], al
add rbx, 1
add rdx, 1
test al, al
jne 0x140037a20
lea rdi, [r8 + 0x30]
mov rcx, rdi
call fcn.1400b3390
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
mov rax, qword [str.AE52FVSF.HTM]
mov qword [rdi - 1], rax
mov eax, dword [0x1400ef2e0]
mov dword [rdi + 7], eax
movzx eax, byte [0x1400ef2e4]
mov byte [rdi + 0xb], al
mov esi, 1
mov dword [rsp + 0x20], esi
mov eax, esi
jmp 0x140037a74
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400c2a20
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140037d60
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
mov rbx, rcx
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbx + 0x30]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 1
je 0x140037dbb
lea rcx, [rbx + 0x30]
call fcn.1400b6a90
test eax, eax
je 0x140037dbb
lea rcx, [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x140037dbb
xor edx, edx
lea rcx, [rbx + 0x30]
call fcn.1400b8880
mov rcx, qword [rbx]
test rcx, rcx
je 0x140037dcf
call fcn.14008c4f0
mov qword [rbx], 0
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140037de5
call fcn.14008c4f0
mov qword [rbx + 8], 0
jmp 0x140037dec
lea rcx, [rbx + 0x28]
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
jmp fcn.14002d2c0
Function at 0x140038690
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rdx
mov r8, rcx
mov edx, 8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
jne 0x1400386d6
lea rcx, str.____DataEvent::_Failed_to_allocate_memory_n_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rdx, [0x14015d478]
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x40], 1
call fcn.1400c7610
int3
mov qword [rax + 8], rbx
add rsp, 0x20
pop rbx
ret

Function at 0x140039970
Capabilities:
Get common file path

Disassembly:
push rdi
sub rsp, 0x170
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x1401620c0]
xor rax, rsp
mov qword [rsp + 0x160], rax
cmp dword [0x140165b80], 0
jne 0x140039a7a
mov edx, 0x104
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea rcx, [rsp + 0x50]
call fcn.1400b3390
lea rdi, [rsp + 0x50]
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
mov rax, qword [str.kernel32.dll]
mov qword [rdi - 1], rax
mov eax, dword [0x1400e8f70]
mov dword [rdi + 7], eax
movzx eax, byte [0x1400e8f74]
mov byte [rdi + 0xb], al
call fcn.140039930
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 3]
lea rcx, [rsp + 0x50]
call qword [0x140165ba0]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140039a7a
lea r9, [0x140165b98]
lea r8, [0x140165b90]
lea rdx, [0x140165b88]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x140039a70
mov rcx, qword [0x140165b88]
test ecx, ecx
jne 0x140039a66
cmp dword [0x140165b8c], ecx
cmove rcx, qword [0x140165b98]
mov qword [0x140165b88], rcx
mov dword [0x140165b80], 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1400c2a20
add rsp, 0x170
pop rdi
ret

Function at 0x14003bf80
Capabilities:
Get hostname

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov rbx, rdx
mov dword [rsp + 0x58], r8d
mov r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.1400c2840
lea rdx, [rsp + 0x58]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
cmp rcx, 1
jne 0x14003bfd8
movabs rax, 0x746c7561666564
mov qword [rbx], rax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140042830
Capabilities:
Get session user name

Disassembly:
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x190
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x1d0], rbx
mov rax, qword [0x1401620c0]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov r13, rdx
mov rbx, rcx
xor r14d, r14d
mov esi, r14d
mov dword [rsp + 0x50], r14d
test rcx, rcx
jne 0x140042880
xor eax, eax
jmp 0x140042ab3
mov rcx, qword [rdx + 0x298]
add rcx, 0x54a4
cmp byte [rcx], 0
je 0x1400428c4
nop
nop
nop
nop
movzx eax, byte [rcx]
mov byte [rbx], al
add rcx, 1
add rbx, 1
test al, al
jne 0x1400428a0
mov r12d, 1
mov esi, r12d
mov dword [rsp + 0x50], r12d
jmp 0x140042aab
mov r12d, 1
mov dword [rsp + 0x64], 0x104
lea rdx, [rsp + 0x64]
lea rcx, [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov r11d, r14d
mov dword [rsp + 0x60], r14d
nop
nop
mov r8d, r11d
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x70]
repne scasb al, byte [rdi]
not rcx
sub rcx, r12
cmp r8, rcx
jae 0x140042935
movsx ecx, byte [rsp + r8 + 0x70]
add ecx, r11d
mov eax, 0x51eb851f
mul ecx
shr edx, 3
imul edx, edx, 0x19
sub ecx, edx
add ecx, 0x41
mov byte [rsp + r8 + 0x70], cl
add r11d, r12d
mov dword [rsp + 0x60], r11d
jmp 0x1400428f0
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x70]
repne scasb al, byte [rdi]
not rcx
sub rcx, r12
movzx eax, byte [rsp + 0x78]
cmp rcx, 8
cmova eax, r14d
mov byte [rsp + 0x78], al
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x70]
repne scasb al, byte [rdi]
not rcx
cmp rcx, r12
je 0x140042a06
mov rax, qword [0x140160e18]
mov qword [rsp + 0x58], rax
lea rdx, [0x1400e8a80]
lea rcx, [rsp + 0x58]
call fcn.14002d580
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x58]
call fcn.14002d580
mov rdx, qword [rsp + 0x58]
mov r8, qword [rdx - 0x10]
cmp r8, 6
jle 0x1400429be
add r8, 0xfffffffffffffffa
mov edx, 6
lea rcx, [rsp + 0x58]
call fcn.14002def0
lea rdx, [0x1400e8a7c]
lea rcx, [rsp + 0x58]
call fcn.14002d580
lea rcx, [rsp + 0x58]
call fcn.14002d830
mov rdx, qword [rsp + 0x58]
mov rcx, rbx
movzx eax, byte [rdx]
mov byte [rcx], al
add rdx, 1
add rcx, 1
test al, al
jne 0x1400429e1
mov esi, r12d
mov dword [rsp + 0x50], r12d
lea rcx, [rsp + 0x58]
call fcn.14002d2c0
jmp 0x140042a37
test r12d, r12d
je 0x140042a37
lea rcx, str.xsrque32
mov rdx, rbx
nop
nop
nop
movzx eax, byte [rcx]
mov byte [rdx], al
add rcx, r12
add rdx, r12
test al, al
jne 0x140042a20
mov esi, r12d
mov dword [rsp + 0x50], r12d
cmp byte [rbx], 0
je 0x140042aab
mov rcx, qword [r13 + 0x298]
add rcx, 0x54a4
nop
nop
movzx eax, byte [rbx]
mov byte [rcx], al
add rbx, 1
add rcx, 1
test al, al
jne 0x140042a50
mov rdi, qword [r13]
mov rax, qword [r13 + 0x298]
add rax, 0x54a4
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
mov dword [rsp + 0x38], r14d
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x28], 0x104
mov qword [rsp + 0x20], rax
mov r9d, r12d
lea r8, str.BbToolHlp
mov rdx, qword [r13 + 0x270]
mov rcx, r13
call qword [rdi + 0x68]
nop
jmp 0x140042ab1
mov eax, esi
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.1400c2a20
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x190
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140042ba0
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx], 0
mov rbx, rcx
jne 0x140042ce4
lea rcx, str.mapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov qword [rbx], rax
je 0x140042cef
lea rdx, str.MAPIInitialize
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.MAPILogonEx
mov qword [rbx + 8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.MAPIUninitialize
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.MAPIAllocateBuffer
mov qword [rbx + 0x18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.MAPIAllocateMore
mov qword [rbx + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.MAPIFreeBuffer
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.MAPIAdminProfiles
mov qword [rbx + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.HrGetOneProp_12
mov qword [rbx + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.HrSetOneProp_8
mov qword [rbx + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.RTFSync
mov qword [rbx + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.HrQueryAllRows_24
mov qword [rbx + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.WrapCompressedRTFStream
mov qword [rbx + 0x58], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.FreeProws_4
mov qword [rbx + 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.UlRelease_4
mov qword [rbx + 0x68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x70], rax
mov eax, 1
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x140049860
Capabilities:
Set registry value

Disassembly:
push r12
sub rsp, 0x50
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], rdi
mov rdi, rdx
mov rsi, rcx
mov dword [rsp + 0x30], 5
mov qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
call fcn.1400493f0
mov ebx, eax
mov dword [rsp + 0x30], eax
test eax, eax
jne 0x140049968
mov rdx, rdi
mov rcx, rsi
call fcn.140049600
mov ebx, eax
mov dword [rsp + 0x30], eax
test eax, eax
jne 0x14004995a
mov rdx, rdi
mov rcx, rsi
call fcn.140049740
mov ebx, eax
mov dword [rsp + 0x30], eax
test eax, eax
jne 0x140049945
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0xc0000000
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
mov dword [rsp + 0x30], eax
test eax, eax
jne 0x140049945
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x80]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r12, qword [rsp + 0x38]
mov r8, r12
mov rdx, rdi
mov rcx, rsi
call fcn.140049510
jmp 0x14004995f
mov r12, qword [rsp + 0x38]
mov rcx, r12
call fcn.14008c4f0
nop
mov eax, ebx
jmp 0x140049970
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop r12
ret
Function at 0x140049d10
Capabilities:
Get hostname

Disassembly:
push rbx
sub rsp, 0x1c0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x1401620c0]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rbx, rdx
mov rax, qword [0x140160e18]
mov qword [rsp + 0x40], rax
lea rdx, str.__WIN_INFO___r_n
mov rcx, rbx
call fcn.14002d430
mov dword [rsp + 0x48], SafeArrayUnaccessData
xor eax, eax
mov qword [rsp + 0x1a0], rax
mov qword [rsp + 0x1a8], rax
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea r8, [rsp + 0x1a0]
lea rdx, str.Computer_Name__s__n
lea rcx, [rsp + 0x40]
call fcn.14002dec0
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.14002d5f0
xor edx, edx
mov r8d, 0x94
lea rcx, [rsp + 0x60]
call fcn.1400c2840
mov dword [rsp + 0x60], 0x94
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
mov r11d, dword [rsp + 0x70]
cmp r11d, 1
jne 0x140049dff
mov r9d, dword [rsp + 0x64]
cmp r9d, 4
ja 0x140049df6
cmp r9d, 4
jne 0x140049ded
cmp dword [rsp + 0x68], 0
ja 0x140049df6
lea r8, str.Windows_95
jmp 0x140049e1a
lea r8, str.Windows_98
jmp 0x140049e1a
lea r8, str.Windows_NT
lea rax, str.Windows
cmp r11d, 2
cmovne r8, rax
mov r9d, dword [rsp + 0x64]
lea rax, [rsp + 0x74]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x6c]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x20], eax
lea rdx, str.Version__s__d._d_Build__d__s_n
lea rcx, [rsp + 0x40]
call fcn.14002dec0
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.14002d5f0
lea rdx, [0x1400f219c]
lea rcx, [0x140165d80]
call qword [sym.imp.USER32.dll_wsprintfA]
lea r8, [0x140165d80]
lea rdx, str.Platform__s_n
lea rcx, [rsp + 0x40]
call fcn.14002dec0
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.14002d5f0
lea rcx, [rsp + 0x40]
call fcn.1400b57d0
lea rdx, [0x1400f22b8]
mov rcx, rbx
call fcn.14002d580
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.14002d5f0
lea rdx, [0x1400e9510]
mov rcx, rbx
call fcn.14002d580
xor edx, edx
mov r8d, 0x9c
lea rcx, [rsp + 0x100]
call fcn.1400c2840
mov word [rsp + 0x124], 0x9c
lea r8, [rsp + 0x100]
or edx, 0xffffffff
xor ecx, ecx
call qword [sym.imp.USER32.dll_EnumDisplaySettingsA]
test eax, eax
je 0x140049f3c
mov eax, dword [rsp + 0x170]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x16c]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x168]
lea r8, [rsp + 0x100]
lea rdx, str.Display_Device__s_BPP__d_Res__dx_d_n
lea rcx, [rsp + 0x40]
call fcn.14002dec0
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.14002d5f0
jmp 0x140049f4c
lea rdx, str.Display_Device_Unknown_n
mov rcx, rbx
call fcn.14002d580
nop
lea rcx, [rsp + 0x40]
call fcn.14002d2c0
nop
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.1400c2a20
add rsp, 0x1c0
pop rbx
ret
Function at 0x140049fb0
Capabilities:
Get disk information
Get hostname

Disassembly:
push rsi
push rdi
push r12
sub rsp, 0x50
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov rdi, rcx
xor r12d, r12d
mov qword [rsp + 0x40], r12
mov ecx, 0xe4
call fcn.14008c4a0
mov rsi, rax
mov qword [rsp + 0x40], rax
xor edx, edx
mov r8d, 0xe4
mov rcx, rax
call fcn.1400c2840
mov dword [rsi], 0x1009
mov dword [rsi + 4], 0xe4
mov qword [rsi + 8], 2
mov rax, qword [rdi + 0x18]
mov rcx, qword [rax + 0x298]
add rcx, 0x2570
lea rdx, [rsi + 0x18]
nop
movzx eax, byte [rcx]
mov byte [rdx], al
add rcx, 1
add rdx, 1
test al, al
jne 0x14004a020
mov rax, qword [rdi + 0x18]
mov rcx, qword [rax + 0x298]
add rcx, 0x2581
lea rdx, [rsi + 0x4a]
nop
nop
nop
movzx eax, byte [rcx]
mov byte [rdx], al
add rcx, 1
add rdx, 1
test al, al
jne 0x14004a050
lea rcx, [rsi + 0x7c]
mov edx, 0x32
call fcn.1400b5910
mov dword [rsp + 0x78], 0x32
lea rbx, [rsi + 0xae]
lea rdx, [rsp + 0x78]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
cmp rcx, 1
jne 0x14004a0c1
lea rcx, str._default_
nop
nop
nop
movzx eax, byte [rcx]
mov byte [rbx], al
add rcx, 1
add rbx, 1
test al, al
jne 0x14004a0b0
mov dword [rsp + 0x88], r12d
mov dword [rsp + 0x80], r12d
lea r9, [rsi + 0xe0]
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x30], r12
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor edx, edx
lea rcx, [0x1400ee648]
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
nop
mov rax, rsi
jmp 0x14004a119
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop r12
pop rdi
pop rsi
ret

Function at 0x14004a160
Capabilities:
Get disk information

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x78], rsi
mov rdi, rcx
xor esi, esi
mov qword [rsp + 0x40], rsi
mov ecx, 0xb2
call fcn.14008c4a0
mov rbx, rax
mov qword [rsp + 0x40], rax
xor edx, edx
mov r8d, 0xb2
mov rcx, rax
call fcn.1400c2840
mov dword [rbx], 0x1024
mov dword [rbx + 4], 0xb2
mov qword [rbx + 8], 2
mov word [rbx + 0x10], 2
mov rax, qword [rdi + 0x18]
mov rcx, qword [rax + 0x298]
add rcx, 0x2570
lea rdx, [rbx + 0x18]
nop
nop
nop
movzx eax, byte [rcx]
mov byte [rdx], al
add rcx, 1
add rdx, 1
test al, al
jne 0x14004a1e0
mov rax, qword [rdi + 0x18]
mov rcx, qword [rax + 0x298]
add rcx, 0x2581
lea rdx, [rbx + 0x4a]
nop
nop
nop
movzx eax, byte [rcx]
mov byte [rdx], al
add rcx, 1
add rdx, 1
test al, al
jne 0x14004a210
lea rcx, [rbx + 0x7c]
mov edx, 0x32
call fcn.1400b5910
mov dword [rsp + 0x70], esi
mov dword [rsp + 0x68], esi
lea r9, [rbx + 0xae]
mov dword [rsp + 0x38], esi
mov qword [rsp + 0x30], rsi
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor edx, edx
lea rcx, [0x1400ee648]
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
nop
mov rax, rbx
jmp 0x14004a278
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x14004a2c0
Capabilities:
Get disk information
Get hostname

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rdi, rcx
xor esi, esi
mov qword [rsp + 0x40], rsi
mov ecx, 0x116
call fcn.14008c4a0
mov rbx, rax
mov qword [rsp + 0x40], rax
xor edx, edx
mov r8d, 0x116
mov rcx, rax
call fcn.1400c2840
mov dword [rbx], 0x1027
mov dword [rbx + 4], 0x116
mov qword [rbx + 8], 2
mov word [rbx + 0x10], 2
mov rax, qword [rdi + 0x18]
mov rcx, qword [rax + 0x298]
add rcx, 0x2570
lea rdx, [rbx + 0x18]
nop
movzx eax, byte [rcx]
mov byte [rdx], al
add rcx, 1
add rdx, 1
test al, al
jne 0x14004a330
mov rax, qword [rdi + 0x18]
mov rcx, qword [rax + 0x298]
add rcx, 0x2581
lea rdx, [rbx + 0x4a]
nop
nop
nop
movzx eax, byte [rcx]
mov byte [rdx], al
add rcx, 1
add rdx, 1
test al, al
jne 0x14004a360
lea rcx, [rbx + 0x7c]
mov edx, 0x32
call fcn.1400b5910
mov r11, qword [rdi + 0x18]
mov rcx, qword [r11 + 0x298]
add rcx, 0x2685
lea rdx, [rbx + 0xae]
nop
nop
movzx eax, byte [rcx]
mov byte [rdx], al
add rcx, 1
add rdx, 1
test al, al
jne 0x14004a3a0
mov dword [rsp + 0x78], 0x32
lea rcx, [rbx + 0xe0]
lea rdx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov dword [rsp + 0x88], esi
mov dword [rsp + 0x80], esi
lea r9, [rbx + 0x112]
mov dword [rsp + 0x38], esi
mov qword [rsp + 0x30], rsi
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor edx, edx
lea rcx, [0x1400ee648]
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
nop
mov rax, rbx
jmp 0x14004a420
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x14004e260
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x150
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1401620c0]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, rcx
mov qword [rsp + 0x20], rcx
lea rcx, str.KERNEL32.DLL
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rsi, rax
xor eax, eax
mov dword [rbx], eax
mov dword [rbx + 4], eax
mov dword [rbx + 8], eax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
mov qword [rbx + 0x20], rax
mov qword [rbx + 0x28], rax
mov qword [rbx + 0x30], rax
mov qword [rbx + 0x38], rax
mov qword [rbx + 0x40], rax
mov qword [rbx + 0x48], rax
mov qword [rbx + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x14004e38e
mov edx, 0x104
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea rdi, [rsp + 0x30]
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
mov rax, qword [str.psapi.dll]
mov qword [rdi - 1], rax
movzx eax, word [0x1400f3db8]
mov word [rdi + 7], ax
movzx eax, byte [0x1400f3dba]
mov byte [rdi + 9], al
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rbx + 0x10], rax
test rax, rax
je 0x14004e38e
lea rdx, str.EnumProcesses
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x40], rax
lea rdx, str.EnumProcessModules
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x48], rax
lea rdx, str.GetModuleFileNameExA
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x50], rax
cmp qword [rbx + 0x40], 0
je 0x14004e38e
cmp qword [rbx + 0x48], 0
je 0x14004e38e
test rax, rax
je 0x14004e38e
mov dword [rbx + 8], 1
cmp dword [rbx + 8], 0
jne 0x14004e424
lea rdx, str.CreateToolhelp32Snapshot
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x18], rax
lea rdx, str.Process32First
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x20], rax
lea rdx, str.Process32Next
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x28], rax
lea rdx, str.Module32First
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x30], rax
lea rdx, str.Module32Next
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x38], rax
cmp qword [rbx + 0x18], 0
je 0x14004e424
cmp qword [rbx + 0x20], 0
je 0x14004e424
cmp qword [rbx + 0x28], 0
je 0x14004e424
cmp qword [rbx + 0x30], 0
je 0x14004e424
test rax, rax
je 0x14004e424
mov dword [rbx + 4], 1
cmp dword [rbx + 4], 0
jne 0x14004e430
cmp dword [rbx + 8], 0
je 0x14004e436
mov dword [rbx], 1
mov rax, rbx
jmp 0x14004e440
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400c2a20
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret