joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140020480
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov dword [rsp + 0x28], 0
lea rcx, [rsp + 0x20]
call fcn.140012e10
nop
cmp qword [rsp + 0x80], 0
jne 0x1400204d6
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [rsp + 0x34], 0
lea rcx, [rsp + 0x20]
call fcn.140012ea0
mov eax, dword [rsp + 0x34]
jmp 0x140020695
mov rcx, qword [rsp + 0x80]
call fcn.140020af0
cmp eax, 1
jne 0x140020525
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x38]
call fcn.140020d30
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x20]
call fcn.140015d00
nop
lea rcx, [rsp + 0x38]
call fcn.140012ea0
jmp 0x140020537
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x20]
call fcn.140012ec0
lea rcx, [rsp + 0x20]
call fcn.1400130a0
cmp eax, 2
jge 0x14002056c
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.140012ea0
mov eax, dword [rsp + 0x40]
jmp 0x140020695
lea rcx, [rsp + 0x20]
call fcn.140267cb0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x2c]
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x60]
sub eax, 1
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 5
ja case.default.0x1400205b6
mov eax, dword [rsp + 0x60]
lea rcx, [0x140000000]
mov eax, dword [rcx + rax*4 + 0x2069c]
add rax, rcx
jmp rax
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.14001fbe0
movzx eax, ax
cmp eax, 0x5c
jne 0x140020633
mov edx, 1
lea rcx, [rsp + 0x20]
call fcn.14001fbe0
movzx eax, ax
cmp eax, 0x5c
jne 0x140020633
mov r8d, 2
mov dx, 0x5c
lea rcx, [rsp + 0x20]
call fcn.14001be40
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xffffffff
je 0x140020629
lea rcx, [rsp + 0x20]
call fcn.1400130a0
sub eax, 1
cmp dword [rsp + 0x30], eax
jne 0x14002061f
mov dword [rsp + 0x28], 1
jmp 0x140020627
mov dword [rsp + 0x28], 0
jmp 0x140020631
mov dword [rsp + 0x28], 1
jmp 0x14002066b
lea rcx, [rsp + 0x20]
call fcn.1400130a0
cmp eax, 3
jg 0x140020663
mov edx, 1
lea rcx, [rsp + 0x20]
call fcn.14001fbe0
movzx eax, ax
cmp eax, 0x3a
jne 0x140020663
mov dword [rsp + 0x28], 1
jmp 0x14002066b
mov dword [rsp + 0x28], 0
jmp 0x14002067f
mov dword [rsp + 0x28], 0
jmp 0x14002067f
mov dword [rsp + 0x28], 0
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x44], eax
lea rcx, [rsp + 0x20]
call fcn.140012ea0
mov eax, dword [rsp + 0x44]
add rsp, 0x78
ret

Function at 0x140020af0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x20], 1
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0xffffffff
je 0x140020b2c
mov eax, dword [rsp + 0x24]
and eax, 0x10
test eax, eax
je 0x140020b2c
mov dword [rsp + 0x20], 1
jmp 0x140020b34
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x140020b50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x2c8
mov qword [rsp + 0x2b0], 0xfffffffffffffffe
mov rax, qword [0x1403710d8]
xor rax, rsp
mov qword [rsp + 0x2b8], rax
mov rdx, qword [rsp + 0x2d0]
lea rcx, [rsp + 0x20]
call fcn.140020e30
nop
lea rcx, [rsp + 0x20]
call fcn.140267cb0
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
jne 0x140020c9c
lea rcx, [rsp + 0x20]
call fcn.140267cb0
mov rdx, rax
lea rcx, [rsp + 0x290]
call fcn.1400218a0
xor r8d, r8d
mov dx, 0x3a
lea rcx, [rsp + 0x290]
call fcn.14001be40
test eax, eax
jl 0x140020c61
mov r8d, 0x250
xor edx, edx
lea rcx, [rsp + 0x40]
call sub.MSVCR90.dll_memset
lea rcx, [rsp + 0x20]
call fcn.140267cb0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x298], eax
cmp dword [rsp + 0x298], 0xffffffff
je 0x140020c30
mov eax, dword [rsp + 0x298]
mov dword [rsp + 0x40], eax
jmp 0x140020c5f
mov dword [rsp + 0x29c], 0
lea rcx, [rsp + 0x290]
call fcn.140012ea0
nop
lea rcx, [rsp + 0x20]
call fcn.140012ea0
mov eax, dword [rsp + 0x29c]
jmp 0x140020d05
jmp 0x140020c8d
mov dword [rsp + 0x2a0], 0
lea rcx, [rsp + 0x290]
call fcn.140012ea0
nop
lea rcx, [rsp + 0x20]
call fcn.140012ea0
mov eax, dword [rsp + 0x2a0]
jmp 0x140020d05
lea rcx, [rsp + 0x290]
call fcn.140012ea0
jmp 0x140020ca7
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp qword [rsp + 0x2d8], 0
je 0x140020cc0
mov rcx, qword [rsp + 0x2d8]
mov eax, dword [rsp + 0x40]
mov dword [rcx], eax
mov eax, dword [rsp + 0x40]
and eax, 0x10
test eax, eax
je 0x140020ce9
mov dword [rsp + 0x2a4], 1
lea rcx, [rsp + 0x20]
call fcn.140012ea0
mov eax, dword [rsp + 0x2a4]
jmp 0x140020d05
mov dword [rsp + 0x2a8], 1
lea rcx, [rsp + 0x20]
call fcn.140012ea0
mov eax, dword [rsp + 0x2a8]
mov rcx, qword [rsp + 0x2b8]
xor rcx, rsp
call fcn.14028a900
add rsp, 0x2c8
ret
Function at 0x1400222f0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x6c0
mov rax, qword [0x1403710d8]
xor rax, rsp
mov qword [rsp + 0x6b0], rax
mov dword [rsp + 0x20], 1
mov dword [rsp + 0x30], 0
lea rdi, [rsp + 0x34]
xor eax, eax
mov ecx, 0x24c
rep stosb byte [rdi], al
xor eax, eax
mov word [rsp + 0x280], ax
lea rdi, [rsp + 0x282]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
cmp qword [rsp + 0x6d0], 0
je 0x140022366
mov rax, qword [rsp + 0x6d0]
movzx eax, word [rax]
test eax, eax
jne 0x140022378
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1400224f4
mov r9, qword [rsp + 0x6d0]
lea r8, str._s.
mov edx, 0x104
lea rcx, [rsp + 0x280]
call fcn.14000e460
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x490], rax
cmp qword [rsp + 0x490], 0xffffffffffffffff
jne 0x1400223c6
xor eax, eax
jmp 0x1400224f4
xor eax, eax
mov word [rsp + 0x4a0], ax
lea rdi, [rsp + 0x4a2]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
lea rdx, [0x1402969ac]
lea rcx, [rsp + 0x5c]
call qword [sym.imp.MSVCR90.dll_wcscmp]
test eax, eax
jne 0x1400223f9
jmp 0x140022476
lea rdx, [0x1402969a4]
lea rcx, [rsp + 0x5c]
call qword [sym.imp.MSVCR90.dll_wcscmp]
test eax, eax
jne 0x140022411
jmp 0x140022476
lea r9, [rsp + 0x5c]
mov r8, qword [rsp + 0x6d0]
mov edx, 0x104
lea rcx, [rsp + 0x4a0]
call fcn.140022990
test eax, eax
jne 0x140022436
jmp 0x140022476
mov eax, dword [rsp + 0x30]
and eax, 0x10
test eax, eax
je 0x140022455
mov edx, 1
lea rcx, [rsp + 0x4a0]
call fcn.1400222f0
jmp 0x140022476
mov edx, 0x80
lea rcx, [rsp + 0x4a0]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rsp + 0x4a0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x490]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, 1
je 0x1400223c6
cmp qword [rsp + 0x490], 0xffffffffffffffff
je 0x1400224b7
mov rcx, qword [rsp + 0x490]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rsp + 0x490], 0xffffffffffffffff
cmp dword [rsp + 0x6d8], 1
jne 0x1400224e8
mov edx, 0x80
mov rcx, qword [rsp + 0x6d0]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, qword [rsp + 0x6d0]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [rsp + 0x20], eax
jmp 0x1400224f0
mov dword [rsp + 0x20], 1
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x6b0]
xor rcx, rsp
call fcn.14028a900
add rsp, 0x6c0
pop rdi
ret
Function at 0x140024bf0
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x58
mov eax, dword [0x14037398c]
test eax, eax
jne 0x140024cea
mov dword [rsp + 0x24], 0xffffffff
lea r9, [rsp + 0x24]
mov r8d, 0xffffffff
lea rdx, str.country_code
lea rcx, str.MAIN
call fcn.140025370
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x140024cbc
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x2c], 4
mov dword [rsp + 0x30], 0x51
mov dword [rsp + 0x34], 3
mov dword [rsp + 0x38], 0x52
mov dword [rsp + 0x3c], 1
mov dword [rsp + 0x40], 0x56
mov dword [rsp + 0x44], 2
mov qword [rsp + 0x48], 0
jmp 0x140024c90
mov rax, qword [rsp + 0x48]
add rax, 1
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 4
jae 0x140024cba
mov rcx, qword [rsp + 0x48]
mov eax, dword [rsp + 0x24]
cmp dword [rsp + rcx*8 + 0x28], eax
jne 0x140024cb8
mov rax, qword [rsp + 0x48]
mov eax, dword [rsp + rax*8 + 0x2c]
mov dword [0x14037398c], eax
jmp 0x140024cba
jmp 0x140024c82
jmp 0x140024cea
xor r8d, r8d
lea rdx, str...CommonClassMasterInfo.cpp
lea rcx, [0x1403749c0]
call fcn.14002d540
mov r8d, dword [rsp + 0x20]
lea rdx, str.MI::GS__gipd___u
lea rcx, [0x1403749c0]
call fcn.14002d6f0
mov eax, dword [0x14037398c]
add rsp, 0x58
ret

Function at 0x140025b50
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
xor eax, eax
test eax, eax
jne 0x140025b63
xor eax, eax
test eax, eax
jne 0x140025b63
mov dword [rsp + 0x34], 4
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x140025bb7
mov eax, dword [rsp + 0x38]
jmp 0x140025bc7
cmp dword [rsp + 0x30], 4
je 0x140025bc5
mov eax, recv
jmp 0x140025bc7
xor eax, eax
add rsp, 0x48
ret

Function at 0x140029a40
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor eax, eax
test eax, eax
jne 0x140029a4e
xor eax, eax
test eax, eax
jne 0x140029a4e
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
add rsp, 0x28
ret
Function at 0x140029e30
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
mov eax, 0x2068
call fcn.14028b850
sub rsp, rax
mov rax, qword [0x1403710d8]
xor rax, rsp
mov qword [rsp + 0x2058], rax
cmp qword [rsp + 0x2070], 0
jne 0x140029e66
xor eax, eax
jmp 0x140029f75
mov rax, qword [rsp + 0x2070]
movzx eax, word [rax]
test eax, eax
jne 0x140029e7c
xor eax, eax
jmp 0x140029f75
mov dword [rsp + 0x30], 0x1000
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [rsp + 0x2048], eax
mov eax, dword [rsp + 0x2048]
add eax, 1
mov ecx, eax
shl rcx, 1
call qword [sym.imp.MSVCR90.dll_malloc]
mov qword [rsp + 0x2040], rax
cmp qword [rsp + 0x2040], 0
jne 0x140029ec4
xor eax, eax
jmp 0x140029f75
mov edx, dword [rsp + 0x2048]
add edx, 1
mov rcx, qword [rsp + 0x2040]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x140029efe
mov rcx, qword [rsp + 0x2040]
call qword [sym.imp.MSVCR90.dll_free]
mov qword [rsp + 0x2040], 0
xor eax, eax
jmp 0x140029f75
mov rax, qword [rsp + 0x2070]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x2040]
lea r8, [0x1402941f8]
mov edx, 0x1000
lea rcx, [rsp + 0x40]
call fcn.14000e460
mov r8d, 8
xor edx, edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [rsp + 0x2050], rax
mov rcx, qword [rsp + 0x2040]
call qword [sym.imp.MSVCR90.dll_free]
mov qword [rsp + 0x2040], 0
cmp qword [rsp + 0x2050], 0
je 0x140029f73
mov rax, qword [rsp + 0x2050]
jmp 0x140029f75
xor eax, eax
mov rcx, qword [rsp + 0x2058]
xor rcx, rsp
call fcn.14028a900
add rsp, 0x2068
ret
Function at 0x14002b010
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
mov eax, 0x2068
call fcn.14028b850
sub rsp, rax
mov rax, qword [0x1403710d8]
xor rax, rsp
mov qword [rsp + 0x2058], rax
cmp qword [rsp + 0x2070], 0
jne 0x14002b046
xor eax, eax
jmp 0x14002b155
mov rax, qword [rsp + 0x2070]
movzx eax, word [rax]
test eax, eax
jne 0x14002b05c
xor eax, eax
jmp 0x14002b155
mov dword [rsp + 0x30], 0x1000
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [rsp + 0x2048], eax
mov eax, dword [rsp + 0x2048]
add eax, 1
mov ecx, eax
shl rcx, 1
call qword [sym.imp.MSVCR90.dll_malloc]
mov qword [rsp + 0x2040], rax
cmp qword [rsp + 0x2040], 0
jne 0x14002b0a4
xor eax, eax
jmp 0x14002b155
mov edx, dword [rsp + 0x2048]
add edx, 1
mov rcx, qword [rsp + 0x2040]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x14002b0de
mov rcx, qword [rsp + 0x2040]
call qword [sym.imp.MSVCR90.dll_free]
mov qword [rsp + 0x2040], 0
xor eax, eax
jmp 0x14002b155
mov rax, qword [rsp + 0x2070]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x2040]
lea r8, [0x1402941f8]
mov edx, 0x1000
lea rcx, [rsp + 0x40]
call fcn.14000e460
mov r8d, 8
xor edx, edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [rsp + 0x2050], rax
mov rcx, qword [rsp + 0x2040]
call qword [sym.imp.MSVCR90.dll_free]
mov qword [rsp + 0x2040], 0
cmp qword [rsp + 0x2050], 0
je 0x14002b153
mov rax, qword [rsp + 0x2050]
jmp 0x14002b155
xor eax, eax
mov rcx, qword [rsp + 0x2058]
xor rcx, rsp
call fcn.14028a900
add rsp, 0x2068
ret

Function at 0x14002b1a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x58
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x30], 4
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x34], 4
call fcn.140036ae0
cmp eax, 1
jne 0x14002b1e6
xor eax, eax
jmp 0x14002b297
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREMicroSoftWindowsCurrentVersionPoliciesSystem
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
je 0x14002b21e
mov eax, dword [rsp + 0x40]
jmp 0x14002b297
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, str.EnableLUA
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x14002b277
cmp dword [rsp + 0x48], 1
jne 0x14002b268
mov dword [rsp + 0x40], 1
jmp 0x14002b277
cmp dword [rsp + 0x48], 0
jne 0x14002b277
mov dword [rsp + 0x40], 0
cmp qword [rsp + 0x38], 0
je 0x14002b293
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x38], 0
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret
Function at 0x14002b4f0
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x20], 0
lea rcx, str.Wtsapi32.dll
call fcn.14002b900
mov r11, rax
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x28], r11
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x28], 0
je 0x14002b5ff
lea rdx, str.WTSEnumerateSessionsW
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r11, rax
mov rax, qword [rsp + 0x40]
mov qword [rax], r11
lea rdx, str.WTSEnumerateProcessesW
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r11, rax
mov rax, qword [rsp + 0x40]
mov qword [rax + 8], r11
lea rdx, str.WTSQuerySessionInformationW
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r11, rax
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x10], r11
lea rdx, str.WTSFreeMemory
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r11, rax
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x18], r11
lea rdx, str.WTSQueryUserToken
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r11, rax
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x20], r11
mov rcx, qword [rsp + 0x40]
call fcn.14002b6c0
movzx eax, al
test eax, eax
jne 0x14002b5f7
mov rcx, qword [rsp + 0x40]
call fcn.14002b610
mov dword [rsp + 0x20], 0
jmp 0x14002b5ff
mov dword [rsp + 0x20], 1
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x14002b900
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
mov eax, 0x2068
call fcn.14028b850
sub rsp, rax
mov rax, qword [0x1403710d8]
xor rax, rsp
mov qword [rsp + 0x2058], rax
cmp qword [rsp + 0x2070], 0
jne 0x14002b936
xor eax, eax
jmp 0x14002ba45
mov rax, qword [rsp + 0x2070]
movzx eax, word [rax]
test eax, eax
jne 0x14002b94c
xor eax, eax
jmp 0x14002ba45
mov dword [rsp + 0x30], 0x1000
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [rsp + 0x2048], eax
mov eax, dword [rsp + 0x2048]
add eax, 1
mov ecx, eax
shl rcx, 1
call qword [sym.imp.MSVCR90.dll_malloc]
mov qword [rsp + 0x2040], rax
cmp qword [rsp + 0x2040], 0
jne 0x14002b994
xor eax, eax
jmp 0x14002ba45
mov edx, dword [rsp + 0x2048]
add edx, 1
mov rcx, qword [rsp + 0x2040]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x14002b9ce
mov rcx, qword [rsp + 0x2040]
call qword [sym.imp.MSVCR90.dll_free]
mov qword [rsp + 0x2040], 0
xor eax, eax
jmp 0x14002ba45
mov rax, qword [rsp + 0x2070]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x2040]
lea r8, [0x1402941f8]
mov edx, 0x1000
lea rcx, [rsp + 0x40]
call fcn.14000e460
mov r8d, 8
xor edx, edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [rsp + 0x2050], rax
mov rcx, qword [rsp + 0x2040]
call qword [sym.imp.MSVCR90.dll_free]
mov qword [rsp + 0x2040], 0
cmp qword [rsp + 0x2050], 0
je 0x14002ba43
mov rax, qword [rsp + 0x2050]
jmp 0x14002ba45
xor eax, eax
mov rcx, qword [rsp + 0x2058]
xor rcx, rsp
call fcn.14028a900
add rsp, 0x2068
ret
Function at 0x14002c050
Capabilities:
Get disk information

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x6a0
mov rax, qword [0x1403710d8]
xor rax, rsp
mov qword [rsp + 0x690], rax
xor eax, eax
mov word [rsp + 0x46c], ax
lea rdi, [rsp + 0x46e]
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
xor eax, eax
mov word [rsp + 0x480], ax
lea rdi, [rsp + 0x482]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
xor eax, eax
mov word [rsp + 0x250], ax
lea rdi, [rsp + 0x252]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
xor eax, eax
mov word [rsp + 0x40], ax
lea rdi, [rsp + 0x42]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [rsp + 0x30], eax
lea r8, [0x140299534]
mov edx, 3
lea rcx, [rsp + 0x46c]
call fcn.14000e460
mov dword [rsp + 0x468], 0
mov dword [rsp + 0x464], 0
mov dword [rsp + 0x464], 0
jmp 0x14002c136
mov eax, dword [rsp + 0x464]
add eax, 1
mov dword [rsp + 0x464], eax
cmp dword [rsp + 0x464], 0x104
jae 0x14002c1b8
mov ecx, dword [rsp + 0x464]
mov rax, qword [rsp + 0x6b0]
movzx eax, word [rax + rcx*2]
cmp eax, 0x5c
jne 0x14002c16c
mov eax, dword [rsp + 0x468]
add eax, 1
mov dword [rsp + 0x468], eax
mov ecx, dword [rsp + 0x464]
mov rax, qword [rsp + 0x6b0]
movzx eax, word [rax + rcx*2]
test eax, eax
jne 0x14002c185
jmp 0x14002c1b8
cmp dword [rsp + 0x468], 3
jne 0x14002c191
jmp 0x14002c1b8
mov edx, dword [rsp + 0x464]
mov ecx, dword [rsp + 0x464]
mov rax, qword [rsp + 0x6b0]
movzx eax, word [rax + rdx*2]
mov word [rsp + rcx*2 + 0x250], ax
jmp 0x14002c125
cmp dword [rsp + 0x468], 3
jae 0x14002c1cc
mov eax, 0xfffffffe
jmp 0x14002c2e0
mov ecx, dword [rsp + 0x464]
mov rax, qword [rsp + 0x6b0]
lea r8, [rax + rcx*2]
mov edx, 0x104
lea rcx, [rsp + 0x40]
call fcn.14000afd0
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x460], eax
jmp 0x14002c21f
mov eax, dword [rsp + 0x460]
shr eax, 1
mov dword [rsp + 0x460], eax
movzx eax, word [rsp + 0x46c]
add ax, 1
mov word [rsp + 0x46c], ax
movzx eax, word [rsp + 0x46c]
cmp eax, 0x5b
jge 0x14002c2db
mov eax, dword [rsp + 0x460]
and eax, 1
test eax, eax
jne 0x14002c240
jmp 0x14002c1fb
mov r8d, 0x104
xor edx, edx
lea rcx, [rsp + 0x480]
call sub.MSVCR90.dll_memset
mov r8d, 0x104
lea rdx, [rsp + 0x480]
lea rcx, [rsp + 0x46c]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
lea rdx, [rsp + 0x250]
lea rcx, [rsp + 0x480]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x14002c2d6
mov r8d, dword [rsp + 0x6c0]
shl r8, 1
xor edx, edx
mov rcx, qword [rsp + 0x6b8]
call sub.MSVCR90.dll_memset
mov edx, dword [rsp + 0x6c0]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x46c]
lea r8, [0x140299528]
mov rcx, qword [rsp + 0x6b8]
call fcn.14000e460
xor eax, eax
jmp 0x14002c2e0
jmp 0x14002c1fb
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x690]
xor rcx, rsp
call fcn.14028a900
add rsp, 0x6a0
pop rdi
ret
Function at 0x14002daf0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x870
mov rax, qword [0x1403710d8]
xor rax, rsp
mov qword [rsp + 0x868], rax
mov rax, qword [rsp + 0x880]
cmp dword [rax + 0xcb0], 1
jne 0x14002db2a
mov eax, 0x4df
jmp 0x14002ddca
mov rax, qword [rsp + 0x880]
movzx eax, word [rax + 0xaa0]
test eax, eax
jne 0x14002db47
mov eax, recv
jmp 0x14002ddca
mov qword [rsp + 0x850], 0
call fcn.14002e810
mov r9d, eax
mov rdx, qword [rsp + 0x880]
add rdx, 0xcb4
lea rax, [rsp + 0x850]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x858], eax
cmp dword [rsp + 0x858], 0
jne 0x14002dd0a
mov dword [rsp + 0x860], 4
mov rcx, qword [rsp + 0x880]
add rcx, 0xc
lea rax, [rsp + 0x860]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor r8d, r8d
lea rdx, str.DebugLogDelPolicy
mov rcx, qword [rsp + 0x850]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x858], eax
cmp dword [rsp + 0x858], 0
je 0x14002dc00
mov rax, qword [rsp + 0x880]
mov dword [rax + 0xc], 3
mov rax, qword [rsp + 0x880]
movzx eax, word [rax + 0x220]
test eax, eax
jne 0x14002dcfc
mov rax, qword [rsp + 0x880]
cmp dword [rax + 0xebc], 1
jne 0x14002dc4f
mov rdx, qword [rsp + 0x880]
add rdx, 0x220
mov r8d, 0x400
mov rcx, qword [rsp + 0x880]
call fcn.14002e4d0
jmp 0x14002dcfc
mov dword [rsp + 0x860], 0x208
mov rcx, qword [rsp + 0x880]
add rcx, 0x220
mov r8d, 0x800
xor edx, edx
call sub.MSVCR90.dll_memset
mov rcx, qword [rsp + 0x880]
add rcx, 0x220
lea rax, [rsp + 0x860]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140299cd0]
mov rcx, qword [rsp + 0x850]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x858], eax
cmp dword [rsp + 0x858], 0
jne 0x14002dcdc
mov rcx, qword [rsp + 0x880]
add rcx, 0x220
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x14002dcfc
mov rcx, qword [rsp + 0x880]
add rcx, 0x220
lea r8, [0x140299cc8]
mov edx, 0x400
call fcn.14000af60
mov rcx, qword [rsp + 0x850]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov word [rsp + 0x50], ax
lea rdi, [rsp + 0x52]
xor eax, eax
mov ecx, 0x7fe
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x880]
add rax, 0x18
mov r9, qword [rsp + 0x880]
add r9, 0x220
mov qword [rsp + 0x20], rax
lea r8, str._s_s.logs
mov edx, 0x800
lea rcx, [rsp + 0x50]
call fcn.14002ddf0
mov rdx, qword [rsp + 0x880]
add rdx, 0xaa0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
mov rax, qword [rsp + 0x880]
mov eax, dword [rax + 0xc]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x880]
mov r9d, dword [rax + 8]
lea r8, [0x140299c30]
lea rcx, [rsp + 0x50]
call fcn.14002ebc0
mov dword [rsp + 0x85c], eax
cmp dword [rsp + 0x85c], 0
jne 0x14002ddc3
mov rax, qword [rsp + 0x880]
mov dword [rax + 0xcb0], 1
mov eax, dword [rsp + 0x85c]
mov rcx, qword [rsp + 0x868]
xor rcx, rsp
call fcn.14028a900
add rsp, 0x870
pop rdi
ret