joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002fc3c
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [0x1400ea718], 0
je 0x14002fcf0
cmp qword [0x1400ea928], 0
je 0x14002fcf0
cmp dword [0x1400e50f0], 1
jne 0x14002fcae
mov dword [0x1400e9254], 1
call fcn.1400313a0
mov ecx, 0xa0
mov rbx, rax
call fcn.14007f4ec
test rax, rax
je 0x14002fc9c
mov rdx, rbx
mov rcx, rax
call fcn.140034d98
mov qword [0x1400ea2f8], rax
jmp 0x14002fca4
and qword [0x1400ea2f8], 0
mov rcx, rbx
call fcn.14003140c
jmp 0x14002fcb5
and dword [0x1400e9254], 0
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r8, [0x140031388]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call fcn.14008020c
mov rbx, rax
test rax, rax
je 0x14002fcf0
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [0x1400b4580]
add rsp, 0x30
pop rbx
ret

Function at 0x14002fcfc
Capabilities:
Delete file
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x480
mov rax, qword [0x1400e5430]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov r12, rcx
xor ecx, ecx
call qword [0x1400b41e8]
mov ebx, 0x104
mov r8d, ebx
lea rdx, [rsp + 0x50]
mov rcx, qword [0x1400e9270]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea rdx, [0x1400b5dd0]
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
jne 0x14002fd8f
lea rcx, [0x1400b5dd0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rsi, rsi
je 0x14002fe83
lea rdx, str.MiniDumpWriteDump
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
test rax, rax
je 0x14002fe7a
lea rdx, [rsp + 0x260]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rdx, str.BugTrap_1.3.3718.38316.dmp
lea rcx, [rsp + 0x260]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
lea rcx, [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x14002fe7a
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x44], r12
mov r9d, 1
mov dword [rsp + 0x4c], r9d
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r8, r15
mov edx, ebx
mov rcx, rdi
call r14
mov ebx, eax
mov rcx, r15
call qword [0x1400b4580]
test ebx, ebx
jne 0x14002fe7a
lea rcx, [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x14002fe85
xor eax, eax
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.14007e1c0
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
Function at 0x140031160
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x1400e5430]
xor rax, rsp
mov qword [rsp + 0x250], rax
lea rcx, [rsp + 0x20]
call fcn.14003fa08
cmp dword [0x1400e9254], 0
je 0x14003119e
lea rcx, [rsp + 0x20]
xor edx, edx
call fcn.14003f964
mov rbx, qword [0x1400ea718]
call fcn.14003c028
lea r8, [rsp + 0x40]
mov rdx, rax
mov r9d, 0x104
mov rcx, rbx
call fcn.14003c070
lea rdi, [0x1400ea510]
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea r8, [rsp + 0x40]
lea rcx, [0x1400ea720]
mov rdx, rdi
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
mov ebx, 1
test byte [0x1400e9488], bl
je 0x14003123c
mov edx, 0x104
mov rcx, rdi
call fcn.14002ea54
mov r8, qword [0x1400ea928]
mov rcx, qword [0x1400ea718]
mov rdx, rdi
call fcn.14003bcdc
test eax, eax
je 0x140031238
mov rcx, qword [0x1400ea718]
lea r8, [0x1400ea720]
mov rdx, rdi
call fcn.14003b9b4
test eax, eax
jne 0x140031258
xor ebx, ebx
jmp 0x140031258
mov r8, qword [0x1400ea928]
mov rcx, qword [0x1400ea718]
lea rdx, [0x1400ea720]
call fcn.14003bdfc
mov ebx, eax
lea rcx, [rsp + 0x20]
call fcn.14003f9b0
mov eax, ebx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14007e1c0
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret

Function at 0x14003128c
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
test byte [0x1400e9488], 1
je 0x1400312b0
lea rcx, [0x1400ea510]
call fcn.14002e7ec
mov word [0x1400ea510], bx
lea rcx, [0x1400ea720]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov word [0x1400ea720], bx
add rsp, 0x20
pop rbx
ret

Function at 0x1400312d0
Capabilities:
Delete file

Disassembly:
sub rsp, 0x38
cmp dword [0x1400e50f0], 2
jne 0x1400312e8
xor ecx, ecx
add rsp, 0x38
jmp fcn.14002f994
call fcn.140031160
test eax, eax
je 0x140031376
mov ecx, dword [0x1400e50f0]
dec ecx
je 0x14003131a
sub ecx, 2
je 0x140031311
dec ecx
jne 0x140031376
xor ecx, ecx
call fcn.14002f7f0
jmp 0x140031376
xor ecx, ecx
call fcn.14002fefc
jmp 0x140031376
cmp qword [0x1400ea2f8], 0
je 0x140031376
and qword [rsp + 0x20], 0
mov rcx, qword [0x1400e9270]
xor r8d, r8d
test byte [0x1400e9488], 0x10
jne 0x140031364
lea r9, [0x1400406e8]
lea edx, [r8 + 0x6f]
call qword [sym.imp.USER32.dll_DialogBoxParamW]
cmp rax, 1
jne 0x140031376
and qword [rsp + 0x20], 0
mov rcx, qword [0x1400e9270]
xor r8d, r8d
lea r9, [0x14003fc20]
mov edx, 0x65
call qword [sym.imp.USER32.dll_DialogBoxParamW]
add rsp, 0x38
jmp fcn.14003128c
Function at 0x1400328ec
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov ebx, dword [rcx + 0x214]
mov rbp, r9
mov r14, r8
mov r15d, edx
mov rdi, rcx
call fcn.1400328c0
shr ebx, 2
mov rsi, rax
and ebx, 1
test rax, rax
jne 0x14003292d
test ebx, ebx
je 0x140032986
mov r9, qword [rsp + 0x60]
mov r8, r14
mov edx, r15d
mov rcx, rdi
call fcn.140032734
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test rsi, rsi
je 0x140032959
mov rdx, rsi
mov rcx, rdi
call fcn.14003287c
test ebx, ebx
je 0x140032978
mov rdx, qword [rdi + 0x248]
lea rcx, [0x1400b5e38]
test rdx, rdx
cmovne rcx, rdx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x140035ba8
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rdx, str.MAPI
lea rcx, str.MAIL
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetProfileIntW]
test eax, eax
je 0x140035c7b
lea rcx, str.MAPI32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rbx + 0x10], rax
test rax, rax
je 0x140035c7b
lea rdx, str.MAPILogon
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x10]
lea rdx, str.MAPILogoff
mov qword [rbx + 0x18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x10]
lea rdx, str.MAPISendMail
mov qword [rbx + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x10]
lea rdx, str.MAPIResolveName
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x10]
lea rdx, str.MAPIFreeBuffer
mov qword [rbx + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [rbx + 0x18], 0
mov qword [rbx + 0x38], rax
je 0x140035c73
cmp qword [rbx + 0x20], 0
je 0x140035c73
cmp qword [rbx + 0x28], 0
je 0x140035c73
cmp qword [rbx + 0x30], 0
je 0x140035c73
test rax, rax
jne 0x140035c7b
mov rcx, rbx
call fcn.140035c88
add rsp, 0x20
pop rbx
ret
Function at 0x1400374d8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x1400e5430]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov r8d, dword [rcx + 8]
xor ebx, ebx
mov r15, rdx
mov rdi, rcx
test r8d, r8d
je 0x14003763f
mov r14, qword [rdi]
lea rsi, [rbx + rbx*2]
cmp qword [r14 + rsi*8], 0
je 0x14003766f
mov r9, r15
mov edx, 0x104
lea rcx, [rsp + 0x60]
cmp r8d, 1
jbe 0x140037559
lea eax, [rbx + 1]
lea r8, str._s_d.bmp
mov dword [rsp + 0x20], eax
call fcn.1400807f0
jmp 0x140037565
lea r8, str._s.bmp
call fcn.1400807f0
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x14003766f
xor edx, edx
lea rcx, [rsp + 0x48]
lea r8d, [rdx + 0xe]
call fcn.1400809a0
and qword [rsp + 0x20], 0
mov eax, 0x4d42
mov word [rsp + 0x48], ax
mov ecx, dword [r14 + rsi*8 + 0x10]
lea r9, [rsp + 0x40]
add ecx, 0xe
lea rdx, [rsp + 0x48]
mov r8d, 0xe
mov dword [rsp + 0x52], ecx
add ecx, dword [r14 + rsi*8 + 0x14]
mov dword [rsp + 0x4a], ecx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r8d, dword [r14 + rsi*8 + 0x10]
mov rdx, qword [r14 + rsi*8]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r8d, dword [r14 + rsi*8 + 0x14]
mov rdx, qword [r14 + rsi*8 + 8]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, r12
call qword [0x1400b4580]
mov r8d, dword [rdi + 8]
inc ebx
cmp ebx, r8d
jb 0x14003751f
mov eax, 1
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.14007e1c0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
xor eax, eax
jmp 0x140037644
Function at 0x140037b5c
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x180
mov rax, qword [0x1400e5430]
xor rax, rsp
mov qword [rsp + 0x170], rax
xor ebx, ebx
lea rax, [rsp + 0x60]
mov rdi, rdx
mov qword [rsp + 0x38], rbx
mov r15, rcx
mov qword [rsp + 0x30], rbx
or r9d, 0xffffffff
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], 0x104
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea r8d, [rbx + 3]
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov edx, 0x80000000
mov rcx, rdi
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], r8d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x140037cb0
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, 0x19000
cmp eax, esi
cmovb esi, eax
mov ecx, esi
call fcn.140055b1c
mov rbp, rax
test rax, rax
je 0x140037ca5
mov dword [rsp + 0x48], 9
mov dword [rsp + 0x40], 8
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], ebx
lea rdx, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
mov rcx, r15
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
call fcn.140046d1c
test eax, eax
jne 0x140037c9d
jmp 0x140037c6b
mov r8d, dword [rsp + 0x50]
test r8d, r8d
je 0x140037c8e
mov rdx, rbp
mov rcx, r15
call fcn.140047464
mov edi, ebx
test eax, eax
sete dil
test edi, edi
je 0x140037c8e
lea r9, [rsp + 0x50]
mov r8d, esi
mov rdx, rbp
mov rcx, r14
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x50], ebx
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
test eax, eax
jne 0x140037c4a
mov rcx, r15
call fcn.14004758c
test eax, eax
cmovne edi, ebx
mov ebx, edi
mov rcx, rbp
call fcn.14007efdc
mov rcx, r14
call qword [0x1400b4580]
jmp 0x140037cd1
call qword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0xfffffffe
cmp eax, 1
jbe 0x140037ccc
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140037cd1
mov ebx, 1
mov eax, ebx
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.14007e1c0
mov rbx, qword [rsp + 0x1c8]
add rsp, 0x180
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140038d2c
Capabilities:
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
cmp qword [rcx + 0xb88], 0
mov rsi, r8
mov r14, rdx
mov rbx, rcx
je 0x140038e2c
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r15d, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
and dword [rsp + 0x50], 0
lea r8, [rsp + 0x50]
mov rcx, rsi
mov edx, eax
mov ebp, eax
call fcn.1400367bc
jmp 0x140038e24
mov r8d, dword [rsp + 0x50]
cmp r8d, r15d
sete al
cmp qword [rbx + 0x18], 0
je 0x140038d9b
test al, al
jne 0x140038e15
test al, al
je 0x140038dbb
lea rax, str.Active_Thread
xor r9d, r9d
mov rdx, r14
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.14003820c
jmp 0x140038e15
xor edx, edx
lea ecx, [rdx + 0x4a]
call qword [rbx + 0xb88]
mov rdi, rax
test rax, rax
je 0x140038e15
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, dword [rsp + 0x50]
lea rdx, str.Suspended_Thread
test eax, eax
lea rcx, str.Running_Thread
mov r9, rdi
cmovne rcx, rdx
mov rdx, r14
mov qword [rsp + 0x20], rcx
mov rcx, rbx
call fcn.14003820c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [0x1400b4580]
lea r8, [rsp + 0x50]
mov edx, ebp
mov rcx, rsi
call fcn.14003687c
test eax, eax
jne 0x140038d85
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret

Function at 0x140038e4c
Capabilities:
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
cmp qword [rcx + 0xb88], 0
mov rsi, r8
mov r14, rdx
mov rbx, rcx
je 0x140038f4c
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r15d, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
and dword [rsp + 0x50], 0
lea r8, [rsp + 0x50]
mov rcx, rsi
mov edx, eax
mov ebp, eax
call fcn.1400367bc
jmp 0x140038f44
mov r8d, dword [rsp + 0x50]
cmp r8d, r15d
sete al
cmp qword [rbx + 0x18], 0
je 0x140038ebb
test al, al
jne 0x140038f35
test al, al
je 0x140038edb
lea rax, str.active
xor r9d, r9d
mov rdx, r14
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.140038374
jmp 0x140038f35
xor edx, edx
lea ecx, [rdx + 0x4a]
call qword [rbx + 0xb88]
mov rdi, rax
test rax, rax
je 0x140038f35
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, dword [rsp + 0x50]
lea rdx, str.suspended
test eax, eax
lea rcx, str.running
mov r9, rdi
cmovne rcx, rdx
mov rdx, r14
mov qword [rsp + 0x20], rcx
mov rcx, rbx
call fcn.140038374
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [0x1400b4580]
lea r8, [rsp + 0x50]
mov edx, ebp
mov rcx, rsi
call fcn.14003687c
test eax, eax
jne 0x140038ea5
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x1400395b8
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov rax, qword [0x1400e5430]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov rbx, rcx
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rax, str.Unknown
mov qword [rbx], rax
mov eax, dword [rsp + 0x24]
sub eax, 3
je 0x1400396c2
dec eax
je 0x140039670
dec eax
je 0x140039636
dec eax
jne 0x1400396dc
cmp dword [rsp + 0x30], 2
jne 0x1400396dc
cmp dword [rsp + 0x28], eax
jne 0x1400396dc
lea rax, str.Windows_Vista
jmp 0x1400396d9
cmp dword [rsp + 0x30], 2
jne 0x1400396dc
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x140039667
dec eax
je 0x14003965e
dec eax
jne 0x1400396dc
lea rax, str.Windows_Server_2003
jmp 0x1400396d9
lea rax, str.Windows_XP
jmp 0x1400396d9
lea rax, str.Windows_2000
jmp 0x1400396d9
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x1400396a2
cmp eax, 0xa
je 0x140039692
cmp eax, 0x5a
jne 0x1400396dc
cmp dword [rsp + 0x30], 1
jne 0x1400396dc
lea rax, str.Windows_Me
jmp 0x1400396d9
cmp dword [rsp + 0x30], 1
jne 0x1400396dc
lea rax, str.Windows_98
jmp 0x1400396d9
cmp dword [rsp + 0x30], 2
jne 0x1400396b2
lea rax, str.Windows_NT_4.0
jmp 0x1400396d9
cmp dword [rsp + 0x30], 1
jne 0x1400396dc
lea rax, str.Windows_95
jmp 0x1400396d9
cmp dword [rsp + 0x28], 0x33
jne 0x1400396dc
cmp dword [rsp + 0x30], 2
lea rax, str.Windows_NT_3.51
cmovne rax, qword [rbx]
mov qword [rbx], rax
lea rcx, [rbx + 8]
lea r8, [rsp + 0x34]
mov edx, pe_nt_image_headers64
call fcn.140080bcc
mov ecx, dword [rsp + 0x2c]
mov r9d, 0xa
lea r8d, [r9 + 6]
lea rdx, [rbx + 0x108]
call fcn.14008226c
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.14007e1c0
mov rbx, qword [rsp + 0x168]
add rsp, 0x150
pop rbp
ret

Function at 0x14003972c
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rbx, rcx
lea rdi, [0x1400b6a70]
mov qword [rcx], rdi
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [0x1400ea930], 0
je 0x140039781
movzx eax, word [rsp + 0x20]
test eax, eax
je 0x140039781
cmp eax, 6
je 0x140039778
lea rcx, str.AMD_x64
cmp eax, 9
cmove rdi, rcx
mov qword [rbx], rdi
jmp 0x14003978b
lea rax, str.IA_64
jmp 0x140039788
lea rax, str.Intel_x86
mov qword [rbx], rax
mov eax, dword [rsp + 0x40]
mov dword [rbx + 8], eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x1400397a4
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x1400e5430]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov rdi, rdx
mov r15d, ecx
mov ebx, pe_nt_image_headers64
lea r8, [0x1400b6a88]
mov edx, ebx
mov rcx, rdi
call fcn.140080bcc
lea r14, [rdi + 0x100]
lea r8, [0x1400b6a80]
lea edx, [rbx - 0x70]
mov rcx, r14
call fcn.140080bcc
lea rsi, [rdi + 0x120]
lea r8, [0x1400b6a88]
mov rcx, rsi
mov edx, ebx
call fcn.140080bcc
xor r12d, r12d
mov ebx, 1
cmp dword [0x1400ea930], r12d
je 0x14003998b
lea r8, str.HARDWAREDESCRIPTIONSystemCentralProcessor_lu
lea rcx, [rsp + 0x50]
mov r9d, r15d
mov edx, 0x104
call fcn.1400807f0
lea rax, [rsp + 0x38]
lea rdx, [rsp + 0x50]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140039988
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
lea rdx, str.MHz
xor r8d, r8d
mov dword [rsp + 0x34], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400398d5
cmp dword [rsp + 0x30], 4
jne 0x1400398d5
mov ecx, dword [rsp + 0x40]
lea r9d, [rbx + 9]
lea r8d, [rbx + 0xf]
mov rdx, r14
call fcn.14008226c
jmp 0x1400398d9
mov word [r14], r12w
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, str.ProcessorNameString
mov r14d, 0x100
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x34], r14d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140039929
cmp dword [rsp + 0x30], ebx
jne 0x140039929
lea rdx, [0x1400b5178]
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_StrTrimW]
jmp 0x14003992d
mov word [rsi], r12w
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, str.Identifier
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x34], r14d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140039977
cmp dword [rsp + 0x30], ebx
jne 0x140039977
lea rdx, [0x1400b5178]
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_StrTrimW]
jmp 0x14003997b
mov word [rdi], r12w
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14003998b
mov ebx, r12d
mov eax, ebx
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.14007e1c0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x1400399c0
Capabilities:
Get memory capacity

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1400e5430]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ecx, dword [rsp + 0x24]
mov esi, 0xa
lea r8d, [rsi - 2]
mov r9d, esi
mov rdx, rbx
call fcn.14008226c
mov ecx, dword [rsp + 0x28]
lea edi, [rsi + 6]
lea rdx, [rbx + 0x10]
mov r8d, edi
mov r9d, esi
call fcn.14008226c
mov ecx, dword [rsp + 0x30]
lea rdx, [rbx + 0x30]
mov r9d, esi
mov r8d, edi
call fcn.14008226c
mov ecx, dword [rsp + 0x38]
lea rdx, [rbx + 0x50]
mov r9d, esi
mov r8d, edi
call fcn.14008226c
mov ecx, dword [rsp + 0x40]
lea rdx, [rbx + 0x70]
mov r9d, esi
mov r8d, edi
call fcn.14008226c
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14007e1c0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x14003a67c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x240
mov rax, qword [0x1400e5430]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdx, str.environment
mov rsi, rcx
call fcn.140046494
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor r15d, r15d
mov rdi, rax
test rax, rax
je 0x14003a779
mov rbx, rax
cmp word [rax], r15w
je 0x14003a770
mov edx, 0x3d
mov rcx, rbx
call fcn.1400820dc
xor edx, edx
mov rbp, rax
test rax, rax
je 0x14003a757
mov rcx, rax
call fcn.1400820dc
mov r9, rbp
lea rcx, [rsp + 0x20]
sub r9, rbx
mov r8, rbx
mov edx, 0x104
sar r9, 1
mov r14, rax
call fcn.14008140c
lea rdx, str.variable
mov rcx, rsi
call fcn.140046494
lea r8, [rsp + 0x20]
lea rdx, str.name
mov rcx, rsi
call fcn.140045fd0
lea r8, [rbp + 2]
lea rdx, str.value
mov rcx, rsi
call fcn.140045fd0
mov rcx, rsi
call fcn.1400460c0
jmp 0x14003a762
mov rcx, rbx
call fcn.1400820dc
mov r14, rax
lea rbx, [r14 + 2]
cmp word [rbx], r15w
jne 0x14003a6da
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rcx, rsi
call fcn.1400460c0
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14007e1c0
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret