joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140108ff0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x140183fc0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x140109085
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x1401090e6
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.1400e3540
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14011c640
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x1401091a1
sub ecx, 1
je 0x140109214
sub ecx, 1
je 0x140109150
cmp ecx, 1
je 0x140109133
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x14015a490]
call fcn.1400e3540
jmp 0x140109214
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.140108d20
test eax, eax
je 0x140109214
jmp 0x1401090ba
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x140109214
sub rax, rsi
cmp rax, rbp
jae 0x140109214
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.1400e36c0
jmp 0x140109214
cmp r8d, 4
jle 0x140109214
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x140109214
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.1400e3460
mov esi, eax
test eax, eax
je 0x1401091f3
mov edx, 5
mov rcx, rbx
call fcn.140109ce0
mov eax, esi
jmp 0x1401090ba
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.1400f1f40
mov rcx, r14
call fcn.1400f2220
test eax, eax
je 0x1401090b8
mov edx, 5
mov rcx, rbx
call fcn.140109ce0
mov eax, Ordinal_46
jmp 0x1401090ba
Function at 0x14011bfb0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x14011bff2
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x14011c039
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x14011c092
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x14011c050
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x14011c0d3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x14015fb6b]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14015fb6c]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x14011c0a0
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x14011c2d0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14011c30a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14011c30f
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14011c358
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x14011c358
dec r8
sub rdx, 1
jne 0x14011c33e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x14011d52c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14011d576
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14011d576
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14011d576
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14011d576
cmp dword [rcx + 0x84], 0xe
jbe 0x14011d576
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14011d578
xor al, al
add rsp, 0x28
ret
Function at 0x140001389
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x14001ec10
push rbp
sub rsp, 0xe0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x58], 0xfffffffffffffffe
mov qword [rbp - 0x38], rdx
mov rax, rdx
mov qword [rbp - 0x30], rax
mov qword [rbp + 0x50], rdx
mov qword [rbp + 0x48], r8
mov qword [rbp + 0x40], rcx
mov rcx, qword [rbp + 0x40]
mov qword [rbp - 0x28], rcx
call fcn.140001c2b
test al, 1
jne 0x14001ec9d
lea rcx, str.IsValid__
mov rax, rsp
mov qword [rax + 0x28], rcx
lea rcx, [0x140065dce]
mov qword [rax + 0x20], rcx
lea rdx, str.spoof_net_.._.._util_reg.hpp
mov rax, qword [sym.imp.ucrtbased.dll__CrtDbgReportW]
xor ecx, ecx
mov r9d, ecx
mov ecx, 2
mov r8d, 0x601
call rax
mov ecx, eax
mov eax, 1
cmp eax, ecx
jne 0x14001ec9d
int3
mov rcx, qword [rbp - 0x38]
mov byte [rbp + 0x3f], 0
call fcn.140002306
mov dword [rbp + 0x38], 0
mov dword [rbp + 0x34], 2
mov dword [rbp + 0x30], 0xea
cmp dword [rbp + 0x30], 0xea
jne 0x14001edb2
mov rcx, qword [rbp + 0x48]
call fcn.140001898
mov r8, rax
mov rax, qword [rbp - 0x28]
mov rcx, qword [rax]
xor eax, eax
mov edx, eax
mov r9d, 2
lea rax, [rbp + 0x38]
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], rax
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov dword [rbp + 0x30], eax
cmp dword [rbp + 0x30], 0
je 0x14001ed44
mov edx, dword [rbp + 0x30]
lea r8, str.Cannot_get_the_size_of_the_string_value:_RegGetValueW_failed.
lea rcx, [rbp + 8]
call fcn.140001d3e
jmp 0x14001ed2f
lea rdx, [0x1400930b0]
lea rcx, [rbp + 8]
call sub.VCRUNTIME140D.dll__CxxThrowException
jmp 0x14001ee2b
mov rcx, qword [rbp - 0x38]
mov eax, dword [rbp + 0x38]
shr eax, 1
mov edx, eax
xor eax, eax
mov r8w, ax
call fcn.140001afa
jmp 0x14001ed5f
mov rcx, qword [rbp - 0x38]
call fcn.1400015fa
mov qword [rbp - 0x40], rax
mov rcx, qword [rbp + 0x48]
call fcn.140001898
mov r10, qword [rbp - 0x40]
mov r8, rax
mov rax, qword [rbp - 0x28]
mov rcx, qword [rax]
xor eax, eax
mov edx, eax
mov r9d, 2
lea rax, [rbp + 0x38]
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], r10
mov qword [rsp + 0x30], rax
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov dword [rbp + 0x30], eax
jmp 0x14001ecbf
cmp dword [rbp + 0x30], 0
je 0x14001ede9
mov edx, dword [rbp + 0x30]
lea r8, str.Cannot_get_the_string_value:_RegGetValueW_failed.
lea rcx, [rbp - 0x20]
call fcn.140001d3e
jmp 0x14001edd4
lea rdx, [0x1400930b0]
lea rcx, [rbp - 0x20]
call sub.VCRUNTIME140D.dll__CxxThrowException
jmp 0x14001ee2b
mov rcx, qword [rbp - 0x38]
mov eax, dword [rbp + 0x38]
shr eax, 1
mov edx, eax
dec rdx
xor eax, eax
mov r8w, ax
call fcn.140001afa
jmp 0x14001ee07
mov byte [rbp + 0x3f], 1
test byte [rbp + 0x3f], 1
jne 0x14001ee1e
mov rcx, qword [rbp - 0x38]
call fcn.1400024e6
mov rax, qword [rbp - 0x30]
add rsp, 0xe0
pop rbp
ret
int3
Function at 0x1400014c9
Capabilities:
Query or enumerate registry key

Disassembly:
jmp 0x140013a80
push rbp
sub rsp, 0x110
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x88], 0xfffffffffffffffe
mov qword [rbp - 0x20], rdx
mov rax, rdx
mov qword [rbp - 0x18], rax
mov qword [rbp + 0x80], rdx
mov qword [rbp + 0x78], rcx
mov rcx, qword [rbp + 0x78]
mov qword [rbp - 0x10], rcx
call fcn.140001c2b
test al, 1
jne 0x140013b0f
lea rcx, str.IsValid__
mov rax, rsp
mov qword [rax + 0x28], rcx
lea rcx, [0x140065dce]
mov qword [rax + 0x20], rcx
lea rdx, str.spoofguid_.._.._util_reg.hpp
mov rax, qword [sym.imp.ucrtbased.dll__CrtDbgReportW]
xor ecx, ecx
mov r9d, ecx
mov ecx, 2
mov r8d, 0x841
call rax
mov ecx, eax
mov eax, 1
cmp eax, ecx
jne 0x140013b0f
int3
mov rax, qword [rbp - 0x10]
mov dword [rbp + 0x74], 0
mov dword [rbp + 0x70], 0
mov rcx, qword [rax]
xor eax, eax
mov r9d, eax
lea r10, [rbp + 0x74]
lea rax, [rbp + 0x70]
mov rdx, r9
mov r8, r9
mov qword [rsp + 0x20], r10
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov dword [rbp + 0x6c], eax
cmp dword [rbp + 0x6c], 0
je 0x140013bad
mov edx, dword [rbp + 0x6c]
lea rcx, [rbp + 0x40]
lea r8, str.RegQueryInfoKeyW_failed_while_preparing_for_subkey_enumeration.
call fcn.140001d3e
lea rcx, [rbp + 0x40]
lea rdx, [0x1400930b0]
call sub.VCRUNTIME140D.dll__CxxThrowException
mov eax, dword [rbp + 0x70]
inc eax
mov dword [rbp + 0x70], eax
mov eax, dword [rbp + 0x70]
mov edx, eax
lea rcx, [rbp + 0x38]
call fcn.1400012ad
mov rcx, qword [rbp - 0x20]
mov byte [rbp + 0x37], 0
call fcn.1400011bd
mov rcx, qword [rbp - 0x20]
mov eax, dword [rbp + 0x74]
mov edx, eax
call fcn.1400025db
jmp 0x140013be3
mov dword [rbp + 0x30], 0
mov eax, dword [rbp + 0x30]
cmp eax, dword [rbp + 0x74]
jae 0x140013cab
mov eax, dword [rbp + 0x70]
mov dword [rbp + 0x2c], eax
lea rcx, [rbp + 0x38]
call fcn.14000230b
mov r8, rax
mov rax, qword [rbp - 0x10]
mov edx, dword [rbp + 0x30]
mov rcx, qword [rax]
lea r9, [rbp + 0x2c]
xor eax, eax
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [rbp + 0x6c], eax
cmp dword [rbp + 0x6c], 0
je 0x140013c7a
mov edx, dword [rbp + 0x6c]
lea r8, str.Cannot_enumerate_subkeys:_RegEnumKeyExW_failed.
mov rcx, rbp
call fcn.140001d3e
jmp 0x140013c66
lea rdx, [0x1400930b0]
mov rcx, rbp
call sub.VCRUNTIME140D.dll__CxxThrowException
jmp 0x140013cd8
lea rcx, [rbp + 0x38]
call fcn.14000230b
mov rcx, qword [rbp - 0x20]
mov qword [rbp - 8], rax
lea rdx, [rbp - 8]
lea r8, [rbp + 0x2c]
call fcn.140001fc8
jmp 0x140013c9d
mov eax, dword [rbp + 0x30]
add eax, 1
mov dword [rbp + 0x30], eax
jmp 0x140013bea
mov byte [rbp + 0x37], 1
test byte [rbp + 0x37], 1
jne 0x140013cc2
mov rcx, qword [rbp - 0x20]
call fcn.1400020db
lea rcx, [rbp + 0x38]
call fcn.1400026e9
mov rax, qword [rbp - 0x18]
add rsp, 0x110
pop rbp
ret
int3
Function at 0x140001636
Capabilities:
Set registry value

Disassembly:
jmp 0x14001ae70
sub rsp, 0xa8
mov rax, qword [0x14009b518]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0x70], r8
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x60], rcx
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x50], rcx
call fcn.140001c2b
test al, 1
jne 0x14001aef8
lea rcx, str.IsValid__
mov rax, rsp
mov qword [rax + 0x28], rcx
lea rcx, [0x140065dce]
mov qword [rax + 0x20], rcx
lea rdx, str.spoof_scsi_.._.._util_reg.hpp
mov rax, qword [sym.imp.ucrtbased.dll__CrtDbgReportW]
xor ecx, ecx
mov r9d, ecx
mov ecx, 2
mov r8d, 0x51c
call rax
mov ecx, eax
mov eax, 1
cmp eax, ecx
jne 0x14001aef8
int3
mov rcx, qword [rsp + 0x70]
call fcn.140001ad7
mov dword [rsp + 0x5c], eax
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x4c], eax
mov rcx, qword [rsp + 0x70]
call fcn.14000104b
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x68]
call fcn.140001898
mov rcx, qword [rsp + 0x50]
mov r10, qword [rsp + 0x40]
mov rdx, rax
mov eax, dword [rsp + 0x4c]
mov rcx, qword [rcx]
xor r8d, r8d
mov r9d, 3
mov qword [rsp + 0x20], r10
mov dword [rsp + 0x28], eax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
je 0x14001afac
mov edx, dword [rsp + 0x58]
lea rcx, [rsp + 0x78]
lea r8, str.Cannot_write_binary_data_value:_RegSetValueExW_failed.
call fcn.140001d3e
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea rax, [0x1400930b0]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140001c53
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
call sub.VCRUNTIME140D.dll__CxxThrowException
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140001c53
nop
add rsp, 0xa8
ret
Function at 0x140001bae
Capabilities:
Set registry value

Disassembly:
jmp 0x14000be90
push rbp
sub rsp, 0xc0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x38], 0xfffffffffffffffe
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x20], rcx
mov rcx, qword [rbp + 0x20]
mov qword [rbp - 0x38], rcx
call fcn.140001c2b
test al, 1
jne 0x14000bf12
lea rcx, str.IsValid__
mov rax, rsp
mov qword [rax + 0x28], rcx
lea rcx, [0x140065dce]
mov qword [rax + 0x20], rcx
lea rdx, str.spoofmachine_id_.._.._util_reg.hpp
mov rax, qword [sym.imp.ucrtbased.dll__CrtDbgReportW]
xor ecx, ecx
mov r9d, ecx
mov ecx, 2
mov r8d, 0x503
call rax
mov ecx, eax
mov eax, 1
cmp eax, ecx
jne 0x14000bf12
int3
mov rdx, qword [rbp + 0x30]
mov rcx, rbp
call fcn.14000259a
mov rcx, rbp
call fcn.140002586
shl rax, 1
mov dword [rbp - 4], eax
mov eax, dword [rbp - 4]
mov dword [rbp - 0x3c], eax
mov rcx, rbp
call fcn.1400014a6
mov qword [rbp - 0x48], rax
mov rcx, qword [rbp + 0x28]
call fcn.140001898
mov rcx, qword [rbp - 0x38]
mov r10, qword [rbp - 0x48]
mov rdx, rax
mov eax, dword [rbp - 0x3c]
mov rcx, qword [rcx]
xor r8d, r8d
mov r9d, 7
mov qword [rsp + 0x20], r10
mov dword [rsp + 0x28], eax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rbp - 8], eax
cmp dword [rbp - 8], 0
je 0x14000bfaa
mov edx, dword [rbp - 8]
lea r8, str.Cannot_write_multi_string_value:_RegSetValueExW_failed.
lea rcx, [rbp - 0x30]
call fcn.140001d3e
jmp 0x14000bf95
lea rdx, [0x1400930b0]
lea rcx, [rbp - 0x30]
call sub.VCRUNTIME140D.dll__CxxThrowException
jmp 0x14000bfbc
mov rcx, rbp
call fcn.14000103c
nop
add rsp, 0xc0
pop rbp
ret
int3

Function at 0x140001dde
Capabilities:
Terminate process

Disassembly:
jmp 0x14005fa20
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140001fcd
Capabilities:
Get geographical location

Disassembly:
jmp 0x14004ca60
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov r9d, 2
lea r8, [rsp + 0x40]
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x14004ca9d
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov edx, eax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
call fcn.1400027fc
add rsp, 0x58
ret
Function at 0x140002077
Capabilities:
Set console window title

Disassembly:
jmp 0x140012280
sub rsp, 0x38
mov dword [rsp + 0x34], 0
lea rcx, str.zeta_spoofer
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
xor eax, eax
mov ecx, eax
call fcn.140012400
mov qword [rsp + 0x28], rax
call qword [sym.imp.ucrtbased.dll__getpid]
mov ecx, eax
mov rax, qword [rsp + 0x28]
movsxd rcx, ecx
add rax, rcx
mov ecx, eax
call qword [sym.imp.ucrtbased.dll_srand]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Spoofing_bios_version._n
call fcn.1400012c6
call fcn.14000130c
test al, 1
jne 0x1400122f5
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Failed_to_spoof_bios_version._n
call fcn.1400012c6
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Spoofing_guid._n
call fcn.1400012c6
call fcn.140001e88
test al, 1
jne 0x140012328
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Failed_to_spoof_guid._n
call fcn.1400012c6
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Spoofing_machine_id._n
call fcn.1400012c6
call fcn.14000290f
test al, 1
jne 0x14001235b
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Failed_to_spoof_machine_id._n
call fcn.1400012c6
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Spoofing_scsi_drives._n
call fcn.1400012c6
call fcn.1400029be
test al, 1
jne 0x14001238e
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Failed_to_spoof_scsi_drives._n
call fcn.1400012c6
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Spoofing_ide_drives._n
call fcn.1400012c6
call fcn.1400011c7
test al, 1
jne 0x1400123c1
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Failed_to_spoof_ide_drives._n
call fcn.1400012c6
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Spoofing_miscellaneous_things._n
call fcn.1400012c6
call fcn.1400014e7
test al, 1
jne 0x1400123f4
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Failed_to_spoof_miscellaneous_things._n
call fcn.1400012c6
xor eax, eax
add rsp, 0x38
ret
Function at 0x1400020d1
Capabilities:
Parse pe header

Disassembly:
jmp 0x140060600
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140060620
xor al, al
jmp 0x1400606a1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140060633
xor al, al
jmp 0x1400606a1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14006065d
xor al, al
jmp 0x1400606a1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140060671
xor al, al
jmp 0x1400606a1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140060683
xor al, al
jmp 0x1400606a1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14006069f
xor al, al
jmp 0x1400606a1
mov al, 1
add rsp, 0x38
ret

Function at 0x140002720
Capabilities:
Set registry value

Disassembly:
jmp 0x140005250
sub rsp, 0xa8
mov rax, qword [0x14009b518]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0x70], r8
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x60], rcx
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x50], rcx
call fcn.140001c2b
test al, 1
jne 0x1400052d8
lea rcx, str.IsValid__
mov rax, rsp
mov qword [rax + 0x28], rcx
lea rcx, [0x140065dce]
mov qword [rax + 0x20], rcx
lea rdx, str.spoof_bios_.._.._util_reg.hpp
mov rax, qword [sym.imp.ucrtbased.dll__CrtDbgReportW]
xor ecx, ecx
mov r9d, ecx
mov ecx, 2
mov r8d, 0x4d4
call rax
mov ecx, eax
mov eax, 1
cmp eax, ecx
jne 0x1400052d8
int3
mov rcx, qword [rsp + 0x70]
call fcn.14000187a
add rax, 1
shl rax, 1
mov dword [rsp + 0x5c], eax
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x4c], eax
mov rcx, qword [rsp + 0x70]
call fcn.140001898
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x68]
call fcn.140001898
mov rcx, qword [rsp + 0x50]
mov r10, qword [rsp + 0x40]
mov rdx, rax
mov eax, dword [rsp + 0x4c]
mov rcx, qword [rcx]
xor r8d, r8d
mov r9d, 1
mov qword [rsp + 0x20], r10
mov dword [rsp + 0x28], eax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
je 0x140005393
mov edx, dword [rsp + 0x58]
lea rcx, [rsp + 0x78]
lea r8, str.Cannot_write_string_value:_RegSetValueExW_failed.
call fcn.140001d3e
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea rax, [0x1400930b0]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140001c53
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
call sub.VCRUNTIME140D.dll__CxxThrowException
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140001c53
nop
add rsp, 0xa8
ret
Function at 0x14000296e
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x1400140c0
push rbp
sub rsp, 0xc0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x38], 0xfffffffffffffffe
mov qword [rbp - 0x38], rdx
mov rax, rdx
mov qword [rbp - 0x30], rax
mov qword [rbp + 0x30], rdx
mov qword [rbp + 0x28], r8
mov qword [rbp + 0x20], rcx
mov rcx, qword [rbp + 0x20]
mov qword [rbp - 0x28], rcx
call fcn.140001c2b
test al, 1
jne 0x14001414d
lea rcx, str.IsValid__
mov rax, rsp
mov qword [rax + 0x28], rcx
lea rcx, [0x140065dce]
mov qword [rax + 0x20], rcx
lea rdx, str.spoofguid_.._.._util_reg.hpp
mov rax, qword [sym.imp.ucrtbased.dll__CrtDbgReportW]
xor ecx, ecx
mov r9d, ecx
mov ecx, 2
mov r8d, 0x73b
call rax
mov ecx, eax
mov eax, 1
cmp eax, ecx
jne 0x14001414d
int3
mov dword [rbp + 0x1c], 2
lea rcx, [rbp - 0x10]
call fcn.140002306
mov dword [rbp - 0x14], 0
mov dword [rbp - 0x18], 0xea
cmp dword [rbp - 0x18], 0xea
jne 0x140014249
mov rcx, qword [rbp + 0x28]
call fcn.140001898
mov r8, rax
mov rax, qword [rbp - 0x28]
mov rcx, qword [rax]
xor eax, eax
mov edx, eax
mov r9d, 2
lea rax, [rbp - 0x14]
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], rax
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov dword [rbp - 0x18], eax
cmp dword [rbp - 0x18], 0
je 0x1400141db
mov rcx, qword [rbp - 0x38]
mov edx, dword [rbp - 0x18]
call fcn.1400020b3
mov dword [rbp - 0x1c], 1
jmp 0x1400142a2
mov eax, dword [rbp - 0x14]
shr eax, 1
mov edx, eax
xor eax, eax
mov r8w, ax
lea rcx, [rbp - 0x10]
call fcn.140001afa
jmp 0x1400141f6
lea rcx, [rbp - 0x10]
call fcn.1400015fa
mov qword [rbp - 0x40], rax
mov rcx, qword [rbp + 0x28]
call fcn.140001898
mov r10, qword [rbp - 0x40]
mov r8, rax
mov rax, qword [rbp - 0x28]
mov rcx, qword [rax]
xor eax, eax
mov edx, eax
mov r9d, 2
lea rax, [rbp - 0x14]
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], r10
mov qword [rsp + 0x30], rax
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov dword [rbp - 0x18], eax
jmp 0x14001416b
cmp dword [rbp - 0x18], 0
je 0x14001426b
mov rcx, qword [rbp - 0x38]
mov edx, dword [rbp - 0x18]
call fcn.1400020b3
mov dword [rbp - 0x1c], 1
jmp 0x1400142a2
mov eax, dword [rbp - 0x14]
shr eax, 1
mov edx, eax
dec rdx
xor eax, eax
mov r8w, ax
lea rcx, [rbp - 0x10]
call fcn.140001afa
jmp 0x140014289
mov rcx, qword [rbp - 0x38]
lea rdx, [rbp - 0x10]
call fcn.140001e4c
jmp 0x14001429b
mov dword [rbp - 0x1c], 1
lea rcx, [rbp - 0x10]
call fcn.1400024e6
mov rax, qword [rbp - 0x30]
add rsp, 0xc0
pop rbp
ret