joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180019174
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x18003a370]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x1800191d2
cmp word [rdx], r12w
jne 0x1800191d2
or byte [rax + r8*8 + 0x38], cl
jmp 0x1800191d8
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x180019333
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x18001930e
lea r9, [rcx + 2]
cmp ax, r13w
je 0x180019211
mov rcx, r9
jmp 0x180019234
cmp r9, rdx
jae 0x18001924b
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x1800191f5
jmp 0x180019333
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180019308
cmp dword [rsp + 0x80], edi
je 0x180019308
mov rdx, r14
lea r11, [0x18003a370]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x1800192e1
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x1800192b4
mov word [rbx], r12w
jmp 0x18001932f
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x1800192bd
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x18001932f
cmp word [rsp + 0x70], r12w
jne 0x1800192ee
cmp rbx, rsi
je 0x1800192ae
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.180019e00
cmp word [rsp + 0x70], r12w
je 0x180019333
mov word [rbx], r13w
jmp 0x18001932f
lea r11, [0x18003a370]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x18001932b
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x180019333
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18001daa8
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18001dad8
xor eax, eax
jmp 0x18001db9b
mov rbp, rbx
cmp word [rax], si
je 0x18001dafd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18001dae4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18001dae0
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18001c1f0
movsxd r14, eax
test eax, eax
jne 0x18001db3b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18001dad1
mov rcx, r14
call fcn.18001a05c
mov rdi, rax
test rax, rax
jne 0x18001db54
xor ecx, ecx
call fcn.18001688c
jmp 0x18001db30
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18001c1f0
test eax, eax
jne 0x18001db85
mov rcx, rdi
call fcn.18001688c
jmp 0x18001db8f
xor ecx, ecx
call fcn.18001688c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x180023440
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.180019e00
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.180019e00
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180023590
cmp rax, 0xffffffffffffffff
je 0x180023590
xor edi, edi
test rbp, rbp
jle 0x18002353b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1800168c8
mov rbx, rax
test rax, rax
jne 0x1800234c8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x180023531
mov edx, 0x8000
mov ecx, r14d
call fcn.1800232c8
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.180018530
cmp eax, 0xffffffff
je 0x180023511
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1800234d8
mov edx, r15d
mov ecx, r14d
call fcn.1800232c8
jmp 0x180023531
cmp byte [rsi + 0x38], dil
je 0x180023528
cmp dword [rsi + 0x34], 5
jne 0x180023528
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x180023531
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.18001688c
jmp 0x1800235a4
jns 0x1800235a4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.180019e00
cmp rax, 0xffffffffffffffff
jne 0x18002355c
cmp byte [rsi + 0x30], dil
je 0x1800235a4
mov edi, dword [rsi + 0x2c]
jmp 0x1800235a4
mov ecx, r14d
call fcn.180020e0c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1800235a4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1800235a4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x18002359d
mov eax, dword [rsi + 0x2c]
jmp 0x1800235a2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.180019e00
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x180024070
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180024098
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180024098
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140008208
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x168]
sub rsp, 0x250
mov rax, qword [0x14001d2a8]
xor rax, rsp
mov qword [rbp + 0x140], rax
and qword [rdx], 0
mov r15, rdx
mov r8, rcx
mov edi, 0x104
mov edx, edi
lea rcx, [rsp + 0x30]
xor r14d, r14d
call fcn.1400084f8
lea r8, [0x140019040]
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.140008580
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov rbx, rax
test rax, rax
jne 0x1400082ab
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1400083de
mov rcx, qword [rbp + 0x168]
lea edx, [rdi - 0x44]
call fcn.140002240
mov esi, eax
jmp 0x1400083c2
and dword [rsp + 0x24], r14d
lea rdx, [rsp + 0x24]
and dword [rsp + 0x20], r14d
mov rcx, rbx
call fcn.14000231c
mov esi, eax
test eax, eax
jns 0x1400082f2
mov rcx, qword [rbp + 0x168]
mov r9d, eax
mov edx, 0xc6
call fcn.140002204
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x140008421
jmp 0x1400083c2
lea r8, [0x140019048]
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140008580
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov rdi, rax
test rax, rax
jne 0x140008346
mov rcx, qword [rbp + 0x168]
mov edx, 0xcc
call fcn.140002240
mov rcx, rbx
mov esi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x140008433
jmp 0x1400083c2
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14000231c
mov esi, eax
test eax, eax
jns 0x140008391
mov rcx, qword [rbp + 0x168]
mov r9d, eax
mov edx, 0xce
call fcn.140002204
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x140008457
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x140008445
jmp 0x1400083c2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x140008469
movsxd rax, dword [rsp + 0x20]
mov rcx, rbx
movsxd r14, dword [rsp + 0x24]
shl rax, 0x1f
or r14, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x14000840f
xor esi, esi
test esi, esi
jns 0x1400083de
mov rcx, qword [rbp + 0x168]
mov r9d, esi
mov edx, 0x59
call fcn.140002204
mov eax, esi
jmp 0x1400083e3
mov qword [r15], r14
xor eax, eax
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.140016740
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov rcx, qword [rbp + 0x168]
mov edx, 0x8f0
call fcn.1400022a8
int3
mov rcx, qword [rbp + 0x168]
mov edx, 0x8f0
call fcn.1400022a8
int3
mov rcx, qword [rbp + 0x168]
mov edx, 0x8f0
call fcn.1400022a8
int3
mov rcx, qword [rbp + 0x168]
mov edx, 0x8f0
call fcn.1400022a8
int3
mov rcx, qword [rbp + 0x168]
mov edx, 0x8f0
call fcn.1400022a8
int3
mov rcx, qword [rbp + 0x168]
mov edx, 0x8f0
call fcn.1400022a8
int3
Function at 0x140008af8
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xd0
mov rax, qword [0x14001d2a8]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor ebx, ebx
cmp dword [0x14001d9ec], ebx
je 0x140008b30
cmp qword [0x14001da00], rbx
setne bl
jmp 0x140008c9f
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x90
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x94
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetVersionExA]
cmp dword [rsp + 0x30], 2
lea rcx, str.USER32
mov eax, ebx
sete al
mov dword [0x14001d9e8], eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
je 0x140008c64
lea rdx, [0x1400192c0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14001da20], rax
test rax, rax
je 0x140008c64
lea rdx, str.MonitorFromWindow
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14001da18], rax
test rax, rax
je 0x140008c64
lea rdx, str.MonitorFromRect
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14001da10], rax
test rax, rax
je 0x140008c64
lea rdx, str.MonitorFromPoint
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14001da08], rax
test rax, rax
je 0x140008c64
lea rdx, [0x140019318]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14001d9f8], rax
test rax, rax
je 0x140008c64
lea rdx, str.EnumDisplayDevicesW
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14001d9f0], rax
test rax, rax
je 0x140008c64
cmp dword [0x14001d9e8], ebx
lea rdx, str.GetMonitorInfoW
mov rcx, rdi
jne 0x140008c4b
lea rdx, str.GetMonitorInfoA
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14001da00], rax
test rax, rax
je 0x140008c64
mov ebx, 1
jmp 0x140008c95
mov qword [0x14001da20], rbx
mov qword [0x14001da18], rbx
mov qword [0x14001da10], rbx
mov qword [0x14001da08], rbx
mov qword [0x14001da00], rbx
mov qword [0x14001d9f8], rbx
mov qword [0x14001d9f0], rbx
mov dword [0x14001d9ec], 1
mov eax, ebx
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140016740
mov rbx, qword [rsp + 0xe0]
add rsp, 0xd0
pop rdi
ret
Function at 0x140008dd0
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rdi, rdx
mov rbx, rcx
mov edx, 2
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoInitializeEx]
test eax, eax
js 0x140008f35
mov qword [rbx + 0x20], rdi
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCommandLineW]
mov rdx, rax
mov rcx, rbx
call fcn.1400091f4
mov dword [rbx + 8], eax
mov rcx, rbx
mov rax, qword [rbx]
mov rax, qword [rax + 0x18]
call qword [case.0x14000a56b.0]
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0xa8]
call qword [case.0x14000a56b.0]
mov rcx, rbx
call fcn.140008f48
mov eax, dword [rbx + 8]
dec eax
cmp eax, 2
ja 0x140008e55
mov rcx, rbx
call fcn.140009420
test eax, eax
jns 0x140008e55
mov byte [rbx + 0x31], 1
mov dword [rbx + 0x34], eax
cmp dword [rbx + 8], 1
jne 0x140008eb5
mov rcx, qword [rbx + 0x10]
xor r9d, r9d
xor r8d, r8d
mov byte [rbx + 0x28], 1
mov edx, 0x400
call qword [sym.imp.USER32.dll_PostMessageW]
jmp 0x140008ea5
mov rdx, qword [rbx + 0x10]
lea rcx, [rsp + 0x20]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x140008ead
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_DispatchMessageW]
cmp byte [rbx + 0x28], 0
jne 0x140008e76
jmp 0x140008eb5
xor ecx, ecx
call qword [sym.imp.USER32.dll_PostQuitMessage]
mov ecx, 0x20
call qword [sym.imp.d3d9.dll_Direct3DCreate9]
mov qword [rbx + 0x2458], rax
test rax, rax
jne 0x140008ed5
mov dword [rbx + 0x34], 0x82000001
jmp 0x140008f2f
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x50]
call qword [case.0x14000a56b.0]
test eax, eax
jns 0x140008eee
mov dword [rbx + 0x34], eax
jmp 0x140008f2f
mov rcx, rbx
call fcn.14000a5b0
test eax, eax
js 0x140008ee9
mov edx, dword [rbx + 0x2450]
xor ecx, ecx
test edx, edx
je 0x140008f28
mov r8, qword [rbx + rcx*8 + 0x2408]
cmp byte [r8 + 0x2ba1], 0
jne 0x140008f33
cmp byte [r8 + 0x2ba3], 0
jne 0x140008f33
inc ecx
cmp ecx, edx
jb 0x140008f06
mov dword [rbx + 0x34], 0x82000003
mov byte [rbx + 0x31], 1
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x14000c02c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r14
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rax, qword [0x14001d2a8]
xor rax, rsp
mov qword [rbp + 0x50], rax
xor eax, eax
mov dword [rsp + 0x50], 4
mov rdi, rcx
mov qword [rsp + 0x68], rax
mov r14, rdx
mov qword [rsp + 0x70], rax
lea rax, [rcx + 0xc]
xor r9d, r9d
lea rcx, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x28], rcx
lea rdx, str.AllScreensSame
mov rcx, r14
mov qword [rsp + 0x20], rax
xor r12d, r12d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ebx, ebx
cmp dword [rdi + 0x1798], ebx
jbe 0x14000c1fa
lea rcx, [rbx + rbx*8]
shl rcx, 6
mov eax, dword [rcx + rdi + 0x570]
cmp eax, 0xffffffff
je 0x14000c1ec
mov rsi, qword [rdi + rax*8 + 0x2408]
lea r9d, [rbx + 1]
lea r8, str.Screen__d
mov edx, 0x64
lea rcx, [rbp - 0x80]
call fcn.140008658
and qword [rsp + 0x40], r12
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
lea rdx, [rbp - 0x80]
and qword [rsp + 0x30], r12
xor r9d, r9d
mov dword [rsp + 0x28], 0x20019
xor r8d, r8d
and dword [rsp + 0x20], r12d
mov rcx, r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
test eax, eax
jne 0x14000c1ec
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rdx, str.Adapter_ID
lea rax, [rsp + 0x68]
mov dword [rsp + 0x60], 0x10
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x28], rcx
lea rax, [rsi + 0x2ba4]
mov rcx, qword [rsp + 0x58]
lea rdx, str.Leave_Black
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x70]
cmp rcx, qword [rsi + 0x440]
jne 0x14000c1a1
cmp rax, qword [rsi + 0x448]
je 0x14000c1ab
test rcx, rcx
jne 0x14000c1e1
test rax, rax
jne 0x14000c1e1
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x28], rcx
lea rax, [rsi + 0x2ba8]
mov rcx, qword [rsp + 0x58]
lea rdx, str.Disable_Hardware
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc ebx
cmp ebx, dword [rdi + 0x1798]
jb 0x14000c0a6
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.140016740
mov rbx, qword [rsp + 0x1a0]
add rsp, 0x160
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000ccec
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rsi, rcx
lea r8, [0x140019160]
xor ecx, ecx
mov rbx, r9
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_1.dll_FindResourceW]
and qword [rbx], 0
mov rdi, rax
test rax, rax
je 0x14000cd5d
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_SizeofResource]
test eax, eax
je 0x14000cd5d
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadResource]
test rax, rax
je 0x14000cd5d
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LockResource]
test rax, rax
je 0x14000cd5d
mov rdx, rax
mov qword [rsp + 0x30], rbx
mov rcx, rsi
call fcn.14000cd84
test eax, eax
js 0x14000cd6c
mov rax, qword [rbx]
neg rax
sbb eax, eax
not eax
and eax, 0x80004005
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x1400155f8
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, r8
mov dword [rsp + 0x68], 4
lea rax, [r11 + 0x20]
xor r8d, r8d
mov qword [r11 - 0x20], rax
lea r9, [r11 - 0x18]
mov qword [r11 - 0x28], rdx
mov rdx, rcx
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rdi]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test ebx, ebx
jne 0x140015649
cmp dword [rsp + 0x30], 4
jne 0x140015649
lea eax, [rbx + 1]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x140016268
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [0x14001fecc], 0
jne 0x140016316
xor ecx, ecx
mov dword [0x14001fecc], 1
xor esi, esi
call fcn.14001632c
xor ecx, ecx
mov rdi, rax
call fcn.14001632c
mov rbx, rax
test rdi, rdi
je 0x1400162b3
test rax, rax
je 0x1400162b3
cmp rdi, rax
jne 0x1400162b8
mov esi, 1
test rdi, rdi
je 0x1400162c5
mov rcx, rdi
call fcn.140016350
test rbx, rbx
je 0x1400162d7
cmp rbx, rdi
je 0x1400162d7
mov rcx, rbx
call fcn.140016350
xor ecx, ecx
call fcn.140016350
test esi, esi
je 0x140016316
lea rcx, str.D3DX:__WARN__Overloaded_::new_and_::delete_operators_do_not_conform_to_C_standards:_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, str.D3DX:__WARN__An_allocation_of_zero_bytes_should_return_a_unique_non_null_pointer_to_at_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, str.D3DX:__WARN__least_zero_bytes._Deletion_of_a_null_pointer_should_quietly_do_nothing._r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, str.D3DX:__WARN__D3DX_relies_upon_this_behavior._r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400164e8
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call fcn.140016df4
add rsp, 0x28
jmp 0x1400164e8
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push r14
sub rsp, 0xb0
and dword [rsp + 0x20], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor edi, edi
xor eax, eax
lock cmpxchg qword [0x14001fed0], rbx
je 0x140016532
cmp rax, rbx
jne 0x140016547
mov edi, 1
mov eax, dword [0x14001fed8]
cmp eax, 1
jne 0x140016554
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x1400165c1
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001651b
mov eax, dword [0x14001fed8]
test eax, eax
jne 0x1400165b7
mov dword [0x14001fed8], 1
lea r14, [0x140018b50]
lea rbx, [0x140018b38]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x24], eax
cmp rbx, r14
jae 0x1400165a9
test eax, eax
jne 0x1400165ad
cmp qword [rbx], 0
je 0x14001659e
mov rax, qword [rbx]
mov rcx, qword [case.0x14000a56b.0]
call rcx
mov dword [rsp + 0x24], eax
add rbx, 8
mov qword [rsp + 0x30], rbx
jmp 0x14001657f
test eax, eax
je 0x1400165c1
mov eax, 0xff
jmp 0x140016716
mov dword [0x14001d2f4], 1
mov eax, dword [0x14001fed8]
cmp eax, 1
jne 0x1400165e9
lea rdx, [0x140018b30]
lea rcx, [0x140018af8]
call sub.msvcrt.dll__initterm
mov dword [0x14001fed8], 2
test edi, edi
jne 0x1400165f6
xor eax, eax
xchg qword [0x14001fed0], rax
cmp qword [0x14001fef0], 0
je 0x14001662a
lea rcx, [0x14001fef0]
call fcn.140016d60
test eax, eax
je 0x14001662a
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14001fef0]
mov r9, qword [case.0x14000a56b.0]
call r9
mov rax, qword [sym.imp.msvcrt.dll__acmdln]
mov rbx, qword [rax]
mov qword [rsp + 0x28], rbx
mov edi, dword [rsp + 0x20]
mov cl, byte [rbx]
cmp cl, 0x20
ja 0x1400166b5
test cl, cl
je 0x14001664c
test edi, edi
jne 0x1400166b5
dec cl
cmp cl, 0x1f
ja 0x14001665f
inc rbx
mov qword [rsp + 0x28], rbx
mov cl, byte [rbx]
jmp 0x14001664c
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rbx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140003bbc
mov dword [0x14001d2f0], eax
cmp dword [0x14001d310], 0
jne 0x14001669e
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14001d2f4], 0
jne 0x1400166b3
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14001d2f0]
jmp 0x140016716
cmp cl, 0x22
jne 0x1400166c7
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [rsp + 0x20], eax
movzx ecx, cl
call qword [sym.imp.msvcrt.dll__ismbblead]
test eax, eax
je 0x1400166dc
inc rbx
mov qword [rsp + 0x28], rbx
inc rbx
mov qword [rsp + 0x28], rbx
jmp 0x14001663d
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop r14
ret
Function at 0x140016c5c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140016ca8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140016ca0
cmp dword [rcx + 0x3c], edx
jl 0x140016ca0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140016ca0
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140016ca8
mov rax, rdx
add rsp, 0x18
ret