joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140058f60
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov ecx, 0x40
add rdx, rdx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x140058fc2
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140058fb7
cmp edi, eax
jb 0x140058fb7
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140059260
Capabilities:
Identify system language via api

Disassembly:
sub rsp, 0x28
mov qword [0x1400d0bf8], rcx
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ecx, ax
mov edx, 0x3ff
and cx, dx
cmp cx, 9
jne 0x14005929b
mov ecx, 0xfc00
mov byte [0x1400d0c00], 1
and ax, cx
mov ecx, 0x400
cmp ax, cx
je 0x1400592a2
mov byte [0x1400d0c00], 0
add rsp, 0x28
ret

Function at 0x140059d10
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp byte [rcx + 0x4005], 0
mov rdi, rdx
mov rbx, rcx
je 0x140059d32
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbx + 0x4030]
test rcx, rcx
je 0x140059d59
mov r8, rdi
lea rdx, [0x14009f600]
call fcn.14005a4a0
mov rcx, qword [rbx + 0x4030]
call fcn.14007e6c0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14005a330
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x50
xor r14d, r14d
mov ebp, 1
mov rsi, r8
movzx ebx, r14w
sub edx, ebp
je 0x14005a371
sub edx, ebp
je 0x14005a36a
cmp edx, ebp
jne 0x14005a374
lea ebx, [rbp + 3]
jmp 0x14005a374
mov ebx, 2
jmp 0x14005a374
movzx ebx, bp
lea rdx, [0x1400a6598]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rdi, rax
test rax, rax
je 0x14005a3bf
mov qword [rsp + 0x40], r14
xor r8d, r8d
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov dword [rsp + 0x30], r14d
movzx edx, bx
mov word [rsp + 0x28], bp
mov rcx, rax
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret

Function at 0x14005a550
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rdi
sub rsp, 0x38
cmp byte [0x1400d0c54], 0
mov rbx, 0xffffffff80000001
lea rdi, [rbx + 1]
jne 0x14005a6ac
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rsi
xor esi, esi
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
mov qword [rsp + 0x68], rsi
xor r8d, r8d
lea rdx, str.SoftwareNVIDIA_CorporationGlobal_nView
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14005a65c
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x60]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x58], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x1400a65b8]
mov dword [rsp + 0x50], esi
mov dword [rsp + 0x60], esi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005a5f7
cmp dword [rsp + 0x50], esi
je 0x14005a5f7
mov byte [0x1400d0c55], 1
jmp 0x14005a600
cmp byte [0x1400d0c55], sil
je 0x14005a64c
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x60]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x58], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x1400a65c8]
mov dword [rsp + 0x50], esi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x68], rsi
jmp 0x14005a65c
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14005a6a0
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [0x1400d0c55], sil
je 0x14005a6a0
lea rax, [rsp + 0x68]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareNVIDIA_CorporationGlobal_nView
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14005a699
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14005a6a0
mov byte [0x1400d0c55], sil
mov rsi, qword [rsp + 0x30]
mov byte [0x1400d0c54], 1
cmp byte [0x1400d0c55], 0
cmovne rbx, rdi
mov rax, rbx
add rsp, 0x38
pop rdi
pop rbx
ret
Function at 0x14005a810
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rbx, rcx
call fcn.14005a550
mov qword [rsp + 0x50], rax
cmp rax, 0xffffffff80000001
jne 0x14005a872
lea rdx, [rsp + 0x50]
mov ecx, 0xf003f
call qword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x50]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14005a893
lea rcx, [rsp + 0x58]
mov r9d, 0xf003f
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x14005a8b2
mov rcx, qword [rsp + 0x58]
mov rdx, rdi
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov rcx, qword [rsp + 0x58]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14005aa50
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov dword [rsp + 0x58], 4
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], 0
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [rsp + 0x50]
add rsp, 0x38
ret

Function at 0x14005aa90
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov dword [rsp + 0x58], 4
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete al
add rsp, 0x38
ret

Function at 0x14005aad0
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x48
lea rax, [rsp + 0x60]
mov dword [rsp + 0x60], 8
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x30], 0
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x68], 0xb
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rax, qword [rsp + 0x30]
add rsp, 0x48
ret

Function at 0x14005ab20
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov dword [rsp + 0x58], 8
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete al
add rsp, 0x38
ret
Function at 0x14005ab60
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push r14
push r15
sub rsp, 0x260
mov rax, qword [0x1400ce568]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbp, r8
mov r15, rdx
mov r14, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x40]
call fcn.1400725e0
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x208
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rsp + 0x40]
xor r8d, r8d
mov rdx, r15
mov qword [rsp + 0x20], rax
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov rbx, 0xffffffffffffffff
lea rax, [rsp + 0x40]
mov r8, rbx
sete sil
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x14005abe0
lea rdx, [rsp + 0x40]
mov rcx, rbp
call fcn.14000d6c0
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x14005acab
test sil, sil
jne 0x14005acab
mov ecx, eax
mov qword [rsp + 0x2a8], rdi
mov eax, 2
mul rcx
cmovo rax, rbx
mov rcx, rax
call fcn.140070308
mov rdi, rax
test rax, rax
je 0x14005ac80
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, r15
mov qword [rsp + 0x20], rdi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete sil
test eax, eax
jne 0x14005ac78
nop
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x14005ac60
mov r8, rbx
mov rdx, rdi
mov rcx, rbp
call fcn.14000d6c0
mov rcx, rdi
call fcn.14006fc78
mov rdi, qword [rsp + 0x2a8]
movzx eax, sil
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14006fd90
add rsp, 0x260
pop r15
pop r14
pop rsi
pop rbp
pop rbx
ret
movzx eax, sil
jmp 0x14005ac8c

Function at 0x14005acc0
Capabilities:
Query or enumerate registry value

Disassembly:
mov dword [rsp + 0x20], r9d
sub rsp, 0x38
lea rax, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete al
add rsp, 0x38
ret

Function at 0x14005acf0
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
sub rsp, 0x38
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete al
add rsp, 0x38
ret

Function at 0x14005ad30
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], r8
sub rsp, 0x38
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], 8
mov r9d, 0xb
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete al
add rsp, 0x38
ret

Function at 0x14005ad70
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov rax, qword [r8 + 0x10]
add rax, rax
cmp qword [r8 + 0x18], 8
jb 0x14005ad85
mov r8, qword [r8]
mov dword [rsp + 0x28], eax
mov r9d, 1
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete al
add rsp, 0x38
ret
Function at 0x14005adb0
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
xor r10d, r10d
test r8, r8
je 0x14005adf0
mov r9d, r9d
mov rax, r8
shr r9, 1
mov r11, r9
je 0x14005ade0
nop word [rax + rax]
cmp word [rax], r10w
je 0x14005ade0
add rax, 2
sub r9, 1
jne 0x14005add0
sub r11, r9
test r9, r9
cmove r11, r10
je 0x14005adf0
lea r10, [r11 + r11]
add r10, 2
mov r9d, 1
mov dword [rsp + 0x28], r10d
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete al
add rsp, 0x38
ret
Function at 0x14005b810
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x1400ce568]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rsi, r8
mov rbx, rdx
xor dil, dil
xor r14d, r14d
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], r14w
lea edx, [r14 + 0x30]
lea rcx, [rsp + 0x40]
call fcn.14000d860
mov qword [rsp + 0x50], 0x28
mov qword [rsp + 0x58], 0x2f
mov qword [rax], r14
mov qword [rax + 8], r14
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], r14
mov qword [rax + 0x20], r14
mov qword [rax + 0x28], r14
mov qword [rax + 0x30], r14
mov qword [rax + 0x38], r14
mov qword [rax + 0x40], r14
mov qword [rax + 0x48], r14
mov word [rax + 0x50], r14w
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rdx, rax
mov r8d, dword [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.ole32.dll_StringFromGUID2]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], r14w
lea r8d, [r14 + 0x4b]
lea rdx, [0x1400a6780]
lea rcx, [rsp + 0x60]
call fcn.14000d6c0
nop
lea r8d, [r14 + 1]
lea rdx, [0x1400b9f10]
lea rcx, [rsp + 0x60]
call fcn.14000edd0
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x50]
lea rcx, [rsp + 0x60]
call fcn.14000edd0
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rdx, qword [rsp + 0x60]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14005b9d6
mov dword [rsp + 0x30], 0x208
mov dword [rsp + 0x34], r14d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, [0x1400a5718]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005b9ca
lea rax, [rbp - 0x80]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x14005b9b0
lea rdx, [rbp - 0x80]
mov rcx, rsi
call fcn.14000d6c0
mov dil, 1
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x14005ba18
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005ba13
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005ba9b
call fcn.14006fc78
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], r14w
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x14005ba6a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005ba65
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005ba95
call fcn.14006fc78
movzx eax, dil
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.14006fd90
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.14007698c
nop
call fcn.14007698c
nop
int3
Function at 0x14005c380
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x1400ce568]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov edx, dword [0x1400d0ca8]
mov rbx, rcx
test edx, edx
je 0x14005c3b7
mov eax, dword [0x1400cd49c]
cmp eax, 0xffffffff
jne 0x14005c4bb
lea rcx, [0x1400a6898]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.RtlGetVersion
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rsp + 0x20]
test rax, rax
je 0x14005c3ea
call rax
jmp 0x14005c3f0
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x30], 2
jne 0x14005c4ab
mov ecx, dword [rsp + 0x24]
cmp ecx, 5
jne 0x14005c41a
xor edx, edx
cmp dword [rsp + 0x28], edx
seta dl
inc edx
mov dword [0x1400d0ca8], edx
jmp 0x14005c4b1
cmp ecx, 6
jne 0x14005c479
mov eax, dword [rsp + 0x28]
test eax, eax
jne 0x14005c434
mov edx, 3
mov dword [0x1400d0ca8], edx
jmp 0x14005c4b1
cmp eax, 1
jne 0x14005c446
mov edx, 4
mov dword [0x1400d0ca8], edx
jmp 0x14005c4b1
cmp eax, 2
jne 0x14005c458
mov edx, 5
mov dword [0x1400d0ca8], edx
jmp 0x14005c4b1
cmp eax, 3
jne 0x14005c46a
mov edx, 6
mov dword [0x1400d0ca8], edx
jmp 0x14005c4b1
jbe 0x14005c4ab
mov edx, 8
mov dword [0x1400d0ca8], edx
jmp 0x14005c4b1
cmp ecx, 0xa
jne 0x14005c493
mov eax, dword [rsp + 0x28]
test eax, eax
jne 0x14005c46c
mov edx, 7
mov dword [0x1400d0ca8], edx
jmp 0x14005c4b1
mov eax, dword [0x1400d0ca8]
mov edx, 8
cmova eax, edx
mov edx, eax
mov dword [0x1400d0ca8], eax
jmp 0x14005c4b1
mov edx, dword [0x1400d0ca8]
mov eax, dword [rsp + 0x2c]
mov dword [0x1400cd49c], eax
test rbx, rbx
je 0x14005c4c2
mov dword [rbx], eax
mov eax, edx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14006fd90
add rsp, 0x150
pop rbx
ret

Function at 0x14005c4e0
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, 2
test eax, eax
jne 0x14005c4fd
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
add rsp, 0x28
ret
Function at 0x14005c510
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x1400ce568]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov ecx, dword [0x1400d0ca8]
test ecx, ecx
je 0x14005c540
cmp dword [0x1400cd49c], 0xffffffff
jne 0x14005c644
lea rcx, [0x1400a6898]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.RtlGetVersion
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rsp + 0x20]
test rax, rax
je 0x14005c573
call rax
jmp 0x14005c579
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x30], 2
jne 0x14005c634
mov edx, dword [rsp + 0x24]
cmp edx, 5
jne 0x14005c5a3
xor ecx, ecx
cmp dword [rsp + 0x28], ecx
seta cl
inc ecx
mov dword [0x1400d0ca8], ecx
jmp 0x14005c63a
cmp edx, 6
jne 0x14005c602
mov eax, dword [rsp + 0x28]
test eax, eax
jne 0x14005c5bd
mov ecx, 3
mov dword [0x1400d0ca8], ecx
jmp 0x14005c63a
cmp eax, 1
jne 0x14005c5cf
mov ecx, 4
mov dword [0x1400d0ca8], ecx
jmp 0x14005c63a
cmp eax, 2
jne 0x14005c5e1
mov ecx, 5
mov dword [0x1400d0ca8], ecx
jmp 0x14005c63a
cmp eax, 3
jne 0x14005c5f3
mov ecx, 6
mov dword [0x1400d0ca8], ecx
jmp 0x14005c63a
jbe 0x14005c634
mov ecx, 8
mov dword [0x1400d0ca8], ecx
jmp 0x14005c63a
cmp edx, 0xa
jne 0x14005c61c
mov eax, dword [rsp + 0x28]
test eax, eax
jne 0x14005c5f5
mov ecx, 7
mov dword [0x1400d0ca8], ecx
jmp 0x14005c63a
mov eax, dword [0x1400d0ca8]
mov ecx, 8
cmova eax, ecx
mov ecx, eax
mov dword [0x1400d0ca8], eax
jmp 0x14005c63a
mov ecx, dword [0x1400d0ca8]
mov eax, dword [rsp + 0x2c]
mov dword [0x1400cd49c], eax
cmp ecx, 7
setge al
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14006fd90
add rsp, 0x158
ret
Function at 0x14005cdb0
Capabilities:
Enumerate process modules

Disassembly:
mov r11, rsp
push rsi
sub rsp, 0x270
mov rax, qword [0x1400ce568]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov qword [r11 + 0x20], rbp
mov rsi, rcx
mov qword [r11 - 0x20], r14
lea rcx, [rsp + 0x30]
mov qword [r11 - 0x28], r15
mov r14d, edx
movzx r15d, r8b
xor edx, edx
mov r8d, 0x208
call fcn.1400725e0
mov r8d, r14d
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbp, rax
test rax, rax
je 0x14005d009
lea rdx, [rsi + 0x234]
mov qword [rsp + 0x260], r12
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
xor r12d, r12d
lea r9, [rsp + 0x20]
lea rdx, [rsp + 0x28]
mov qword [rsp + 0x28], r12
mov rcx, rbp
mov dword [rsp + 0x20], r12d
lea r8d, [r12 + 8]
call sub.KERNEL32.dll_K32EnumProcessModules
mov rdx, qword [rsp + 0x28]
test rdx, rdx
je 0x14005cff8
mov qword [rsp + 0x268], rdi
lea r8, [rsp + 0x30]
mov edi, 0x104
mov rcx, rbp
mov r9d, edi
call sub.KERNEL32.dll_K32GetModuleFileNameExW
test eax, eax
je 0x14005cff0
lea r8d, [r12 + 1]
mov qword [rsp + 0x290], rbx
lea rdx, [0x1400a0830]
lea rcx, [rsi + 0x210]
call fcn.14000d6c0
lea rax, [rsp + 0x30]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], r12w
jne 0x14005ceb0
lea rdx, [rsp + 0x30]
lea rcx, [rsi + 0x210]
call fcn.14000edd0
mov r8d, 1
lea rdx, [0x1400a0830]
lea rcx, [rsi + 0x210]
call fcn.14000edd0
mov rcx, rdi
lea rax, [rsp + 0x30]
lea rbx, [rsi + 4]
cmp word [rax], r12w
je 0x14005cf00
add rax, 2
sub rcx, 1
jne 0x14005cef0
mov rdx, rdi
mov rax, r12
sub rdx, rcx
test rcx, rcx
lea rcx, [rsp + 0x30]
cmove rdx, r12
cmovne rax, rdx
lea rcx, [rcx + rax*2]
lea rax, [rsp + 0x30]
cmp rcx, rax
jbe 0x14005cf41
cmp word [rcx], 0x5c
je 0x14005cf3d
sub rcx, 2
lea rax, [rsp + 0x30]
cmp rcx, rax
ja 0x14005cf27
jmp 0x14005cf41
add rcx, 2
mov r8, rdi
mov rdx, rbx
sub rcx, rbx
nop word [rax + rax]
lea rax, [r8 + 0x7ffffefa]
test rax, rax
je 0x14005cf72
movzx eax, word [rcx + rdx]
test ax, ax
je 0x14005cf72
mov word [rdx], ax
add rdx, 2
sub r8, 1
jne 0x14005cf50
test r8, r8
lea rax, [rdx - 2]
cmovne rax, rdx
mov word [rax], r12w
test rbx, rbx
je 0x14005cfac
mov rcx, rdi
mov rax, rbx
nop dword [rax]
cmp word [rax], r12w
je 0x14005cfa0
add rax, 2
sub rcx, 1
jne 0x14005cf90
sub rdi, rcx
test rcx, rcx
cmove rdi, r12
jne 0x14005cfaf
mov rdi, r12
lea rax, [rbx + rdi*2]
cmp rax, rbx
jbe 0x14005cfcd
cmp word [rax], 0x2e
je 0x14005cfc9
sub rax, 2
cmp rax, rbx
ja 0x14005cfb8
jmp 0x14005cfcd
mov word [rax], r12w
mov rcx, rbx
call qword [sym.imp.USER32.dll_CharLowerW]
lea rcx, [rsi + 0x20c]
mov rdx, rbx
call fcn.14005c230
mov rbx, qword [rsp + 0x290]
mov dword [rsi], r14d
mov rdi, qword [rsp + 0x268]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r12, qword [rsp + 0x260]
mov r14, qword [rsp + 0x258]
test r15b, r15b
mov r15, qword [rsp + 0x250]
mov rbp, qword [rsp + 0x298]
je 0x14005d038
cmp dword [rsi], 0
je 0x14005d03b
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.14005d060
cmp dword [rsi], 0
seta al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14006fd90
add rsp, 0x270
pop rsi
ret
Function at 0x14005d060
Capabilities:
Get file version info

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x30
mov rsi, rdx
mov dword [rsp + 0x60], 0
mov rbp, rcx
lea rdx, [rsp + 0x60]
mov rcx, rsi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test eax, eax
je 0x14005d0f6
mov ecx, edi
mov qword [rsp + 0x50], rbx
call fcn.140070308
mov rbx, rax
test rax, rax
je 0x14005d0f1
mov r9, rax
mov qword [rsp + 0x20], 0
mov r8d, edi
mov dword [rsp + 0x68], 0
xor edx, edx
mov rcx, rsi
call sub.VERSION.dll_GetFileVersionInfoW
lea r9, [rsp + 0x68]
mov rcx, rbx
lea r8, [rsp + 0x20]
lea rdx, [0x1400b9f10]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x14005d0e9
mov rax, qword [rsp + 0x20]
mov ecx, dword [rax + 8]
mov dword [rbp + 0x230], ecx
mov rcx, rbx
call fcn.14006fc78
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret

Function at 0x14005d130
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
lea r8, [rcx + 4]
mov rbx, rcx
lea rdx, [0x1400a68a0]
mov rcx, rdi
mov r9d, 0x208
call fcn.14005acc0
lea r8, [rbx + 0x210]
mov rcx, rdi
lea rdx, str.commandline
call fcn.14005ab60
lea r8, [rbx + 0x20c]
mov rcx, rdi
lea rdx, str.apphash
call fcn.14005aa90
lea r8, [rbx + 0x230]
mov rcx, rdi
lea rdx, str.version
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.14005aa90

Function at 0x14005d1b0
Capabilities:
Get common file path
Get startup folder

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x1400ce568]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor edi, edi
mov dword [rsp + 0x20], edi
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x30]
call fcn.1400725e0
xor r9d, r9d
lea r8d, [rdi + 0x23]
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], 7
mov word [rbx], di
lea rax, [rsp + 0x30]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], di
jne 0x14005d220
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.14000d6c0
mov dword [rsp + 0x20], 1
mov r8d, 0x19
lea rdx, [0x1400a4608]
mov rcx, rbx
call fcn.14000edd0
mov rax, rbx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14006fd90
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret