joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001615f
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x488
mov rdi, rcx
lea rsi, [rsp + 0x88]
mov rcx, rsi
call fcn.140015d6e
mov rax, qword [rsi]
mov qword [rsp + 0x38], rax
test rax, rax
je 0x1400162aa
mov qword [rsp + 0x30], rdi
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rax], 2
xorps xmm0, xmm0
movups xmmword [rax + 8], xmm0
mov r8d, 0x200
mov r12d, 2
xor r15d, r15d
mov r14d, 0xffffffff
xor r13d, r13d
cmp r8, 0x201
jae 0x1400161ee
lea rbp, [rsp + 0x88]
mov edi, 0x200
mov rbx, r8
jmp 0x140016223
sub r8, r13
lea rcx, [rsp + 0x40]
mov rdx, r8
call fcn.140014400
mov r12, qword [rsp + 0x40]
mov r15, qword [rsp + 0x48]
cmp r15, r14
mov r13d, 0xffffffff
cmovb r13, r15
mov qword [rsp + 0x50], r13
mov rbp, r12
mov rdi, r13
mov rbx, r13
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, qword [rsp + 0x38]
mov rdx, rbp
mov r8d, ebx
call sub.KERNEL32.dll_GetEnvironmentVariableW
mov esi, eax
test eax, eax
jne 0x140016249
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x1400162be
mov r8d, esi
cmp rbx, r8
jne 0x140016271
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x140016396
add rbx, rbx
cmp rbx, r14
cmovae rbx, r14
mov r8, rbx
jmp 0x1400161d3
jb 0x1400161d3
cmp rdi, r8
jb 0x140016396
lea rsi, [rsp + 0x68]
mov rcx, rsi
mov rdx, rbp
call fcn.140013cf6
mov bl, byte [rsi + 0x18]
mov rcx, r12
mov rdx, r15
call fcn.1400144c0
cmp bl, 2
jne 0x1400162f9
mov rbx, qword [rsp + 0x68]
jmp 0x1400162de
lea rcx, [rsp + 0x88]
call fcn.140015f36
mov byte [rsp + 0x58], 2
jmp 0x14001632d
call fcn.1400144aa
mov rbx, rax
mov qword [rsp + 0x68], rax
mov byte [rsp + 0x80], 2
mov rcx, r12
mov rdx, r15
call fcn.1400144c0
mov rdi, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x28]
mov byte [rsp + 0x58], 2
mov rcx, rbx
call fcn.140013897
mov bl, 2
jmp 0x14001631b
movups xmm0, xmmword [rsp + 0x68]
movups xmm1, xmmword [rsp + 0x78]
movaps xmmword [rsp + 0x50], xmm1
movaps xmmword [rsp + 0x40], xmm0
mov bl, byte [rsp + 0x58]
mov rdi, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x38]
mov rdx, rsi
call fcn.1400144c0
cmp bl, 2
jne 0x140016345
mov byte [rdi + 0x18], 2
add rsp, 0x488
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rsi, [rsp + 0x88]
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140015fef
cmp byte [rsi + 0x18], 2
jne 0x14001637d
mov rax, qword [rsp + 0x98]
mov qword [rdi + 0x10], rax
movups xmm0, xmmword [rsp + 0x88]
movups xmmword [rdi], xmm0
mov byte [rdi + 0x18], 3
jmp 0x140016331
movups xmm0, xmmword [rsp + 0x88]
movups xmm1, xmmword [rsp + 0x98]
movups xmmword [rdi + 0x10], xmm1
movups xmmword [rdi], xmm0
jmp 0x140016331
ud2
Function at 0x1400184f0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140019290
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140019290
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140018560
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14017a174]
mov rbx, rcx
test esi, esi
jle 0x140018690
mov rax, qword [0x14017a178]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400185ab
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140018635
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140018590
mov rcx, rbx
call fcn.140018fb0
mov rdi, rax
test rax, rax
je 0x1400186b2
mov rax, qword [0x14017a178]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400190f0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14017a178]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140018697
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14001862e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140018640
add dword [0x14017a174], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14017a178]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001862e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400184f0
nop dword [rax]
xor esi, esi
jmp 0x1400185b8
mov rax, qword [0x14017a178]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400184f0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400184f0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140018c20
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14017a1e0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14017a1c0]
test rbx, rbx
je 0x140018c7c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140018c73
test rsi, rsi
je 0x140018c73
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140018c58
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140018fb0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1401777f0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140018fd0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140018fd8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140018fd0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14001902d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140019024
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140018fd0
add rax, 0x28
cmp rax, r9
jne 0x140019010
xor eax, eax
ret

Function at 0x140019030
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1401777f0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14001904f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140019058
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14001904f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400190f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1401777f0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14001910f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140019118
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140004ee5
Capabilities:
Enumerate process modules

Disassembly:
push rbp
mov eax, 0x1040
call fcn.140010f40
sub rsp, rax
lea rbp, [rsp + 0x80]
lea rdx, [rbp - 0x54]
lea rax, [rbp - 0x50]
mov r8, rdx
mov edx, 0x1000
mov rcx, rax
call sym.K32EnumProcesses
test eax, eax
jne 0x140004f1e
mov eax, 1
jmp 0x140004f82
mov eax, dword [rbp - 0x54]
shr eax, 2
mov dword [rbp + 0xfb4], eax
mov dword [rbp + 0xfb8], 0
jmp 0x140004f6b
mov eax, dword [rbp + 0xfb8]
mov eax, dword [rbp + rax*4 - 0x50]
test eax, eax
je 0x140004f64
mov eax, dword [rbp + 0xfb8]
mov eax, dword [rbp + rax*4 - 0x50]
mov ecx, eax
call sym.checkProcessName
mov dword [rbp + 0xfbc], eax
cmp dword [rbp + 0xfbc], 0
jne 0x140004f7b
add dword [rbp + 0xfb8], 1
mov eax, dword [rbp + 0xfb8]
cmp eax, dword [rbp + 0xfb4]
jb 0x140004f36
jmp 0x140004f7c
nop
mov eax, dword [rbp + 0xfbc]
add rsp, 0x1040
pop rbp
ret

Function at 0x140005412
Capabilities:
Link many functions at runtime

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
lea rax, [0x140033e0c]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rax
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
lea rdx, [0x140033e16]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov rdx, qword [0x140037d20]
mov qword [rdx], rax
mov rax, qword [rbp - 8]
lea rdx, str.NtCreateFile
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [0x14003f060], rax
mov rax, qword [rbp - 8]
lea rdx, str.NtCreateEvent
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [0x14003f068], rax
mov rax, qword [rbp - 8]
lea rdx, str.NtQueryDirectoryFile
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [0x14003f070], rax
mov rax, qword [rbp - 8]
lea rdx, str.NtWaitForSingleObject
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [0x14003f078], rax
mov rax, qword [rbp - 8]
lea rdx, str.RtlUnicodeStringToAnsiString
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [0x14003f080], rax
mov rax, qword [rbp - 8]
lea rdx, str.NtClose
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [0x14003f088], rax
mov rax, qword [rbp - 8]
lea rdx, str.NtOpenFile
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [0x14003f090], rax
mov rax, qword [rbp - 8]
lea rdx, str.NtQueryAttributesFile
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [0x14003f098], rax
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140007b8e
Capabilities:
Check for sandbox username or hostname
Get session user name

Disassembly:
push rbp
mov eax, 0x8100
call fcn.140010f40
sub rsp, rax
lea rbp, [rsp + 0x80]
lea rax, str.admin
mov qword [rbp + 0x7fb0], rax
lea rax, str.andy
mov qword [rbp + 0x7fb8], rax
lea rax, str.honey
mov qword [rbp + 0x7fc0], rax
lea rax, str.john
mov qword [rbp + 0x7fc8], rax
lea rax, str.john_doe
mov qword [rbp + 0x7fd0], rax
lea rax, str.malnetvm
mov qword [rbp + 0x7fd8], rax
lea rax, str.maltest
mov qword [rbp + 0x7fe0], rax
lea rax, str.malware
mov qword [rbp + 0x7fe8], rax
lea rax, [0x140035096]
mov qword [rbp + 0x7ff0], rax
lea rax, str.sandbox
mov qword [rbp + 0x7ff8], rax
lea rax, str.snort
mov qword [rbp + 0x8000], rax
lea rax, str.tequilaboomboom
mov qword [rbp + 0x8008], rax
lea rax, str.test
mov qword [rbp + 0x8010], rax
lea rax, str.virus
mov qword [rbp + 0x8018], rax
lea rax, str.virusclone
mov qword [rbp + 0x8020], rax
lea rax, str.wilbert
mov qword [rbp + 0x8028], rax
lea rax, str.nepenthes
mov qword [rbp + 0x8030], rax
lea rax, str.currentuser
mov qword [rbp + 0x8038], rax
lea rax, str.username
mov qword [rbp + 0x8040], rax
lea rax, str.vmware
mov qword [rbp + 0x8048], rax
lea rax, str.user
mov qword [rbp + 0x8050], rax
lea rax, str.mike
mov qword [rbp + 0x8058], rax
lea rax, str.louise
mov qword [rbp + 0x8060], rax
lea rax, str.j.seance
mov qword [rbp + 0x8068], rax
mov dword [rbp - 0x54], 0x7fff
lea rdx, [rbp - 0x54]
lea rax, [rbp - 0x50]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_GetUserNameA]
call rax
mov dword [rbp + 0x807c], 0
jmp 0x140007d6a
mov eax, dword [rbp + 0x807c]
cdqe
mov rdx, qword [rbp + rax*8 + 0x7fb0]
lea rax, [rbp - 0x50]
mov r8, 0xffffffffffffffff
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll__strnicmp]
call rax
test eax, eax
je 0x140007d63
lea rax, [rbp - 0x50]
mov rdx, rax
lea rax, str._nComputer_name:_s_n
mov rcx, rax
call sym.printf_7
mov eax, 1
jmp 0x140007d78
add dword [rbp + 0x807c], 1
cmp dword [rbp + 0x807c], 0x17
jle 0x140007d1b
mov eax, 0
add rsp, 0x8100
pop rbp
ret

Function at 0x140007d81
Capabilities:
Get system information on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
lea rax, [rbp - 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetSystemInfo]
call rax
mov eax, dword [rbp - 0x10]
cmp eax, 1
setbe al
movzx eax, al
add rsp, 0x50
pop rbp
ret

Function at 0x140007dc9
Capabilities:
Enumerate gui resources

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov edx, 0
lea rax, [sym.EnumWindowsProc]
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_EnumWindows]
call rax
mov eax, dword [0x14003f0b0]
mov edx, eax
lea rax, str.total_windows_found:__d_n
mov rcx, rax
call sym.printf_7
mov eax, dword [0x14003f0b0]
cmp eax, 0xb
setle al
movzx eax, al
add rsp, 0x20
pop rbp
ret
Function at 0x140008b18
Capabilities:
Get disk information

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
lea rax, [rbp - 4]
mov dword [rsp + 0x38], 1
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, rax
mov r8d, 1
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
call rax
mov eax, dword [rbp - 4]
cmp eax, 0xcd1a40
je 0x140008b77
mov eax, dword [rbp - 4]
cmp eax, 0x70144646
jne 0x140008b7e
mov eax, 1
jmp 0x140008b83
mov eax, 0
add rsp, 0x50
pop rbp
ret
Function at 0x140008f16
Capabilities:
Get local ipv4 addresses

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp + 0x10], rcx
mov dword [rbp - 0x1c], 0
lea rax, [rbp - 0x1c]
mov qword [rsp + 0x20], rax
mov r9d, 0
mov r8d, 0
mov edx, 0
mov ecx, 0
call sym.GetAdaptersAddresses
mov dword [rbp - 0xc], eax
cmp dword [rbp - 0xc], 0x6f
jne 0x140009030
mov eax, dword [rbp - 0x1c]
mov eax, eax
mov rdx, rax
mov ecx, 0x40
mov rax, qword [sym.imp.KERNEL32.dll_LocalAlloc]
call rax
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov qword [rbp - 0x18], rax
cmp qword [rbp - 8], 0
je 0x140009030
mov rdx, qword [rbp - 8]
lea rax, [rbp - 0x1c]
mov qword [rsp + 0x20], rax
mov r9, rdx
mov r8d, 0
mov edx, 0
mov ecx, 0
call sym.GetAdaptersAddresses
mov dword [rbp - 0x22], 0
mov word [rbp - 0x1e], 0
jmp 0x140009019
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x58]
cmp eax, 6
jne 0x14000900d
mov rax, qword [rbp - 8]
add rax, 0x50
mov edx, dword [rax]
mov dword [rbp - 0x22], edx
movzx eax, word [rax + 4]
mov word [rbp - 0x1e], ax
lea rax, [rbp - 0x22]
mov r8d, 3
mov rdx, rax
mov rcx, qword [rbp + 0x10]
call sym.memcmp
test eax, eax
jne 0x14000900d
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LocalFree]
call rax
mov eax, 1
jmp 0x140009035
mov rax, qword [rbp - 8]
mov rax, qword [rax + 8]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140008fbb
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LocalFree]
call rax
mov eax, 0
add rsp, 0x60
pop rbp
ret

Function at 0x14000903b
Capabilities:
Get mac address on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov dword [rbp - 4], 0
mov dword [rbp - 0x18], 0x2c0
mov ecx, 0x2c0
call sym.malloc
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x140009074
mov eax, 0xffffffff
jmp 0x140009147
lea rdx, [rbp - 0x18]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.GetAdaptersInfo
cmp eax, 0x6f
jne 0x1400090b7
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.free
mov eax, dword [rbp - 0x18]
mov eax, eax
mov rcx, rax
call sym.malloc
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x1400090b7
mov eax, 1
jmp 0x140009147
lea rdx, [rbp - 0x18]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.GetAdaptersInfo
test eax, eax
jne 0x140009144
mov dword [rbp - 0x14], 0
jmp 0x1400090f1
mov eax, dword [rbp - 0x14]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
movzx edx, byte [rax]
mov eax, dword [rbp - 0x14]
cdqe
mov byte [rbp + rax - 0x1c], dl
add dword [rbp - 0x14], 1
cmp dword [rbp - 0x14], 3
jle 0x1400090d4
jmp 0x14000913d
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x194]
cmp eax, 6
jne 0x140009132
mov rax, qword [rbp - 0x10]
lea rdx, [rax + 0x198]
lea rax, [rbp - 0x1c]
mov r8d, 3
mov rcx, rax
call sym.memcmp
test eax, eax
jne 0x140009132
mov dword [rbp - 4], 1
jmp 0x140009144
mov rax, qword [rbp - 0x10]
mov rax, qword [rax]
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x1400090f9
mov eax, dword [rbp - 4]
add rsp, 0x40
pop rbp
ret
Function at 0x1400092eb
Capabilities:
Get disk size

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
lea rax, [rbp - 8]
mov r9d, 0
mov r8, rax
mov edx, 0
lea rax, [0x140035370]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
call rax
test eax, eax
je 0x140009336
mov rax, qword [rbp - 8]
movabs rdx, 0xf3fffffff
cmp rax, rdx
ja 0x140009336
mov eax, 1
jmp 0x14000933b
mov eax, 0
add rsp, 0x30
pop rbp
ret

Function at 0x140009341
Capabilities:
Check for debugger via api

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov dword [rbp - 4], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rcx, rax
lea rax, [rbp - 4]
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
call rax
test eax, eax
je 0x14000937e
mov eax, dword [rbp - 4]
test eax, eax
je 0x14000937e
mov eax, 1
jmp 0x140009383
mov eax, 0
add rsp, 0x30
pop rbp
ret

Function at 0x140009389
Capabilities:
Get memory capacity

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov dword [rbp - 0x40], 0x40
lea rax, [rbp - 0x40]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
call rax
mov rax, qword [rbp - 0x38]
mov edx, 0x80000000
cmp rax, rdx
setb al
movzx eax, al
add rsp, 0x60
pop rbp
ret

Function at 0x140009433
Capabilities:
Get disk size

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
mov r9d, 0
mov r8d, 1
mov edx, 0x80000000
lea rax, str..PhysicalDrive0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileA]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0xffffffffffffffff
jne 0x14000949a
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
jmp 0x140009516
mov rax, qword [rbp - 8]
mov qword [rsp + 0x38], 0
lea rdx, [rbp - 0x1c]
mov qword [rsp + 0x30], rdx
mov dword [rsp + 0x28], 8
lea rdx, [rbp - 0x18]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8d, 0
mov edx, 0x7405c
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DeviceIoControl]
call rax
mov dword [rbp - 0xc], eax
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
cmp dword [rbp - 0xc], 0
je 0x140009511
mov rax, qword [rbp - 0x18]
movabs rdx, 0xf3fffffff
cmp rax, rdx
jg 0x140009511
mov eax, 1
jmp 0x140009516
mov eax, 0
add rsp, 0x60
pop rbp
ret
Function at 0x1400097e6
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp - 0x20], 0
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.ole32.dll_CoInitializeEx]
call rax
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
jns 0x140009824
mov eax, 0
jmp 0x14000996d
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 0xffffffff
mov ecx, 0
mov rax, qword [sym.imp.ole32.dll_CoInitializeSecurity]
call rax
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
jns 0x140009889
mov rax, qword [sym.imp.ole32.dll_CoUninitialize]
call rax
mov eax, 0
jmp 0x14000996d
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
mov r9, qword [0x140037b20]
mov r8d, 1
mov edx, 0
mov rax, qword [0x140037b10]
mov rcx, rax
mov rax, qword [sym.imp.ole32.dll_CoCreateInstance]
call rax
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
jns 0x1400098d3
mov rax, qword [sym.imp.ole32.dll_CoUninitialize]
call rax
mov eax, 0
jmp 0x14000996d
mov rcx, qword [rbp + 0x10]
mov rax, qword [sym.imp.OLEAUT32.dll_SysAllocString]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x20]
mov rax, qword [rax]
mov r10, qword [rax + 0x18]
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x10]
mov rcx, qword [rbp + 0x18]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rcx, rax
call r10
mov dword [rbp - 4], eax
mov eax, dword [rbp - 4]
not eax
shr eax, 0x1f
movzx eax, al
mov dword [rbp - 0x14], eax
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.OLEAUT32.dll_SysFreeString]
call rax
mov rax, qword [rbp - 0x20]
mov rax, qword [rax]
mov rdx, qword [rax + 0x10]
mov rax, qword [rbp - 0x20]
mov rcx, rax
call rdx
mov eax, dword [rbp - 0x14]
add rsp, 0x70
pop rbp
ret

Function at 0x140009bf2
Capabilities:
Reference wmi statements

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp - 0x10], 0
lea rax, [rbp - 0x10]
mov rdx, rax
lea rax, str.rootcimv2
mov rcx, rax
call sym.wmi_initialize
cmp eax, 1
je 0x140009c24
mov eax, 0
jmp 0x140009c57
mov rax, qword [rbp - 0x10]
lea r9, [sym.check_wmi_number_cores]
lea r8, str.SELECT__FROM_Win32_Processor
lea rdx, [0x140035414]
mov rcx, rax
call sym.wmi_check_query
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.wmi_cleanup
mov eax, dword [rbp - 4]
add rsp, 0x30
pop rbp
ret

Function at 0x140009d36
Capabilities:
Reference wmi statements

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp - 0x10], 0
lea rax, [rbp - 0x10]
mov rdx, rax
lea rax, str.rootcimv2
mov rcx, rax
call sym.wmi_initialize
cmp eax, 1
je 0x140009d68
mov eax, 0
jmp 0x140009d9b
mov rax, qword [rbp - 0x10]
lea r9, [sym.check_wmi_disk_size]
lea r8, str.SELECT__FROM_Win32_LogicalDisk
lea rdx, [0x140035414]
mov rcx, rax
call sym.wmi_check_query
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.wmi_cleanup
mov eax, dword [rbp - 4]
add rsp, 0x30
pop rbp
ret