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

Disassembly:
mov qword [rsp + 0x10], rdx
push rdi
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x58], rsi
mov rbx, rdx
mov rsi, rcx
xor eax, eax
mov dword [rsp + 0x20], eax
mov qword [rdx + 0x18], Ordinal_17
mov qword [rdx + 0x10], rax
cmp qword [rdx + 0x18], 0x10
jb 0x14003ade1
mov rax, qword [rdx]
jmp 0x14003ade4
mov rax, rbx
mov byte [rax], 0
mov dword [rsp + 0x20], 1
xor r9d, r9d
lea r8d, [r9 + 1]
lea rdx, [rsp + 0x50]
mov rcx, qword [rcx + 0x68]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x14003ae5a
movzx edi, byte [rsp + 0x48]
nop
movzx r8d, byte [rsp + 0x50]
cmp r8b, 0x2e
jne 0x14003ae24
cmp dil, 1
je 0x14003ae5a
jmp 0x14003ae2f
cmp r8b, 0xa
jne 0x14003ae2f
mov dil, 1
jmp 0x14003ae38
xor dil, dil
cmp r8b, 0xd
je 0x14003ae40
mov rcx, rbx
call fcn.140040a90
xor r9d, r9d
lea r8d, [r9 + 1]
lea rdx, [rsp + 0x50]
mov rcx, qword [rsi + 0x68]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x14003ae10
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x14003ae70
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x10], rdx
push rdi
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
xor eax, eax
mov dword [rsp + 0x20], eax
mov qword [rdx + 0x18], Ordinal_17
mov qword [rdx + 0x10], rax
cmp qword [rdx + 0x18], 0x10
jb 0x14003aeb4
mov rax, qword [rdx]
jmp 0x14003aeb7
mov rax, rbx
mov byte [rax], 0
mov dword [rsp + 0x20], 1
mov byte [rsp + 0x58], 0
nop word [rax + rax]
xor r9d, r9d
lea r8d, [r9 + 1]
lea rdx, [rsp + 0x58]
mov rcx, qword [rsi + 0x68]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x14003af0a
movzx r8d, byte [rsp + 0x58]
cmp r8b, 0xd
jne 0x14003aefb
cmp byte [rdi], 0
jne 0x14003aed0
mov rcx, rbx
call fcn.140040a90
cmp byte [rsp + 0x58], 0xa
jne 0x14003aed0
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14003af20
Capabilities:
Connect socket
Resolve dns

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0xc0
mov qword [r11 - 0x68], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov rax, qword [0x1400b52a0]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rax, rdx
mov rdi, rcx
xor ecx, ecx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], rcx
mov qword [r11 - 0x80], rcx
mov qword [r11 - 0x78], rcx
mov qword [r11 - 0x70], rcx
mov dword [rsp + 0x34], 2
mov dword [rsp + 0x38], 1
cmp qword [rdx + 0x18], 0x10
jb 0x14003af86
mov rax, qword [rdx]
lea r9, [rsp + 0x28]
lea r8, [rsp + 0x30]
lea rdx, str.8880
mov rcx, rax
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x14003afc1
lea rcx, [rdi + 8]
mov r8d, Ordinal_25
lea rdx, str.Unable_to_connect_server
call fcn.14001cce0
xor al, al
jmp 0x14003b135
xor r8d, r8d
lea edx, [r8 + 1]
lea ecx, [rdx + 1]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rdi + 0x68], rax
cmp rax, 0xffffffffffffffff
jne 0x14003aff6
lea rcx, [rdi + 8]
lea r8d, [rax + 0x18]
lea rdx, str.Unable_to_create_socket
call fcn.14001cce0
xor al, al
jmp 0x14003b135
mov rdx, qword [rsp + 0x28]
mov r8d, dword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x14003b02c
lea rcx, [rdi + 8]
lea r8d, [rax + 0x12]
lea rdx, str.Unable_to_connect
call fcn.14001cce0
xor al, al
jmp 0x14003b135
mov byte [rsp + 0x20], 1
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.14003ae70
nop
mov r9d, 2
xor r8d, r8d
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x70]
call fcn.14003d6a0
lea rdx, [0x140083274]
mov rcx, rax
call fcn.1400408c0
mov ebx, eax
lea rcx, [rsp + 0x90]
call fcn.140002450
test ebx, ebx
je 0x14003b107
add rdi, 8
mov r8d, reloc.MediaInfo.dll_Ordinal_26
lea rdx, str.Server_rejected_connection
mov rcx, rdi
call fcn.14001cce0
mov r9d, 3
xor r8d, r8d
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x70]
call fcn.14003d6a0
mov rcx, rax
call fcn.140039490
sub eax, 0x1b0
je 0x14003b0ee
sub eax, 1
je 0x14003b0df
sub eax, 1
jne 0x14003b103
lea r8d, [rax + 0x17]
lea rdx, str._:_System_load_too_high
jmp 0x14003b0fb
mov r8d, reloc.MediaInfo.dll_Ordinal_17
lea rdx, str._:_Too_many_users
jmp 0x14003b0fb
mov r8d, reloc.MediaInfo.dll_Ordinal_20
lea rdx, str._:_Permission_denied
mov rcx, rdi
call fcn.140040940
xor bl, bl
jmp 0x14003b128
lea rcx, [rdi + 0x28]
lea rax, [rsp + 0x70]
cmp rcx, rax
je 0x14003b126
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x70]
call fcn.14001d7a0
mov bl, 1
lea rcx, [rsp + 0x70]
call fcn.140002450
movzx eax, bl
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14005b9c0
mov rbx, qword [rsp + 0xe0]
add rsp, 0xc0
pop rdi
ret
Function at 0x1400442e0
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x38
mov rax, qword [sym.imp.FTMedia.dll_class_CFormatFactoryUI____ptr64___ptr64_gpFFUI]
lea r8, [0x1400b73c0]
mov dword [rsp + 0x28], 1
lea rdx, [0x140075a80]
mov qword [rsp + 0x20], 0
mov rcx, qword [rax]
mov rax, qword [rcx + 0x140]
test rax, rax
cmovne r8, rax
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
add rsp, 0x38
ret

Function at 0x1400488f0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
lea rcx, str.frame_step_n
test rcx, rcx
jne 0x140048909
xor edx, edx
jmp 0x14004891e
mov rdx, rcx
nop dword [rax]
movzx eax, byte [rdx]
inc rdx
test al, al
jne 0x140048910
sub edx, ecx
dec edx
mov r8d, edx
mov qword [rsp + 0x20], 0
mov rdx, rcx
lea r9, [rsp + 0x40]
mov rcx, qword [rbx + 0x2d0]
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rdx, str.get_time_pos_n
mov byte [rbx + 0x294], 1
test rdx, rdx
jne 0x140048956
xor ecx, ecx
jmp 0x14004896e
mov rcx, rdx
nop dword [rax]
movzx eax, byte [rcx]
inc rcx
test al, al
jne 0x140048960
sub ecx, edx
dec ecx
mov r8d, ecx
mov qword [rsp + 0x20], 0
mov rcx, qword [rbx + 0x2d0]
lea r9, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rdx, str.pause_n
test rdx, rdx
jne 0x14004899c
xor ecx, ecx
jmp 0x1400489ae
mov rcx, rdx
nop
movzx eax, byte [rcx]
inc rcx
test al, al
jne 0x1400489a0
sub ecx, edx
dec ecx
mov r8d, ecx
mov qword [rsp + 0x20], 0
mov rcx, qword [rbx + 0x2d0]
lea r9, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
add rsp, 0x30
pop rbx
ret

Function at 0x1400489e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rdi, rcx
xor esi, esi
lea rcx, str.quit_n
test rcx, rcx
jne 0x140048a04
mov edx, esi
jmp 0x140048a1e
mov rdx, rcx
nop word [rax + rax]
movzx eax, byte [rdx]
inc rdx
test al, al
jne 0x140048a10
sub edx, ecx
dec edx
mov r8d, edx
mov qword [rsp + 0x20], rsi
mov rdx, rcx
lea r9, [rsp + 0x50]
mov rcx, qword [rdi + 0x2d0]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rdi + 0x288]
test rbx, rbx
je 0x140048aac
mov byte [rdi + 0x290], 1
cmp dword [rbx + 8], esi
jne 0x140048a5e
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
movups xmm0, xmmword [rbx]
lea rcx, [rsp + 0x30]
movaps xmmword [rsp + 0x30], xmm0
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
je 0x140048a7d
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
mov qword [rbx], rsi
mov dword [rbx + 8], esi
mov rcx, qword [rdi + 0x288]
test rcx, rcx
je 0x140048aa5
cmp dword [rcx + 8], esi
je 0x140048a9b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
mov edx, reloc.WS2_32.dll_recv
call fcn.140009330
mov qword [rdi + 0x288], rsi
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140048ac0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x1400b52a0]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, rcx
lea r8, str.volume__d_1_n
mov r9d, edx
lea rcx, [rsp + 0x40]
mov edx, 0x100
call fcn.1400234f0
lea rax, [rsp + 0x40]
lea rdx, [rsp + 0x40]
test rax, rax
je 0x140048b1e
lea rax, [rsp + 0x40]
nop dword [rax + rax]
movzx ecx, byte [rax]
inc rax
test cl, cl
jne 0x140048b10
sub eax, edx
dec eax
mov rcx, qword [rbx + 0x2d0]
lea r9, [rsp + 0x30]
mov r8d, eax
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14005b9c0
add rsp, 0x150
pop rbx
ret

Function at 0x140048b60
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x160
movaps xmmword [rsp + 0x150], xmm6
mov rax, qword [0x1400b52a0]
xor rax, rsp
mov qword [rsp + 0x140], rax
movaps xmm6, xmm1
xorps xmm3, xmm3
cvtss2sd xmm3, xmm6
movzx edi, r8b
mov rbx, rcx
lea r8, str.seek__.2f_2_n
mov edx, 0x100
lea rcx, [rsp + 0x40]
movq r9, xmm3
call fcn.1400234f0
lea rax, [rsp + 0x40]
lea rdx, [rsp + 0x40]
test rax, rax
jne 0x140048bc6
xor ecx, ecx
jmp 0x140048bde
lea rcx, [rsp + 0x40]
nop dword [rax + rax]
movzx eax, byte [rcx]
inc rcx
test al, al
jne 0x140048bd0
sub ecx, edx
dec ecx
mov r8d, ecx
mov qword [rsp + 0x20], 0
mov rcx, qword [rbx + 0x2d0]
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp byte [rbx + 0x294], 0
je 0x140048c4c
lea rdx, str.pause_n
test rdx, rdx
jne 0x140048c1a
xor ecx, ecx
jmp 0x140048c2e
mov rcx, rdx
nop dword [rax]
movzx eax, byte [rcx]
inc rcx
test al, al
jne 0x140048c20
sub ecx, edx
dec ecx
mov r8d, ecx
mov qword [rsp + 0x20], 0
mov rcx, qword [rbx + 0x2d0]
lea r9, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test dil, dil
je 0x140048c60
mov rcx, qword [rbx + 0x2c0]
movaps xmm1, xmm6
call fcn.1400294a0
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14005b9c0
mov rbx, qword [rsp + 0x180]
movaps xmm6, xmmword [rsp + 0x150]
add rsp, 0x160
pop rdi
ret
Function at 0x140049630
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0xf0
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov rax, qword [0x1400b52a0]
xor rax, rsp
mov qword [rsp + 0xe8], rax
mov rsi, r9
mov rbp, rdx
mov rdi, rcx
mov rbx, qword [rsp + 0x140]
mov rax, qword [sym.imp.FTMedia.dll_class_CFormatFactoryUI____ptr64___ptr64_gpFFUI]
mov rcx, qword [rax]
xor r14d, r14d
cmp byte [rcx + 0x2a0], r14b
je 0x1400496e8
test rdi, rdi
je 0x1400496e8
test rdx, rdx
je 0x1400496e8
mov rcx, qword [sym.imp.FTCore.dll_class_CLogFile_wchar_t__gLogFile]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + Ordinal_285]
mov rcx, qword [sym.imp.FTCore.dll_class_CLogFile_wchar_t__gLogFile]
mov rax, qword [rcx]
mov rdx, rbp
call qword [rax + Ordinal_285]
mov rcx, qword [sym.imp.FTCore.dll_class_CLogFile_wchar_t__gLogFile]
mov dword [rsp + 0xe0], 0xa000d
mov word [rsp + 0xe4], r14w
mov rax, qword [rcx]
lea rdx, [rsp + 0xe0]
call qword [rax + Ordinal_285]
mov rcx, qword [sym.imp.FTCore.dll_class_CLogFile_wchar_t__gLogFile]
call fcn.140049bc0
test rsi, rsi
jne 0x14004971e
xor edx, edx
lea r8d, [rsi + 0x68]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x70], 0x68
mov dword [rsp + 0xac], 1
mov word [rsp + 0xb0], r14w
lea rsi, [rsp + 0x70]
test rbx, rbx
jne 0x140049739
xor eax, eax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
lea rbx, [rsp + 0x50]
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
setne bl
test bl, bl
jne 0x1400497e0
lea rcx, [rsp + 0xe0]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1400497af
mov rcx, rdi
call fcn.140049570
mov r8, rax
lea rdx, str._s_missing
lea rcx, [rsp + 0xe0]
call qword [sym.imp.mfc140u.dll_CMFCZoomKernel::Filter]
mov rdx, qword [rsp + 0xe0]
cmp dword [rdx - 0x10], 0
je 0x1400497d2
mov rcx, qword [sym.imp.FTMedia.dll_class_CFormatFactoryUI____ptr64___ptr64_gpFFUI]
mov rcx, qword [rcx]
mov r8, qword [rcx]
call qword [r8 + 0xe0]
nop
lea rcx, [rsp + 0xe0]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
movzx eax, bl
mov rcx, qword [rsp + 0xe8]
xor rcx, rsp
call fcn.14005b9c0
add rsp, 0xf0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x14004b600
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
mov r10d, r9d
xor ebx, ebx
sub r10d, 1
je 0x14004b622
cmp r10d, 3
je 0x14004b61b
mov eax, ebx
jmp 0x14004b62f
mov eax, 4
jmp 0x14004b62f
or rax, 0xffffffffffffffff
inc rax
cmp byte [r8 + rax], bl
jne 0x14004b626
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
sete al
add rsp, 0x30
pop rbx
ret
Function at 0x14004b8c0
Capabilities:
Query or enumerate registry value

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

Function at 0x14004bb10
Capabilities:
Delete registry key

Disassembly:
sub rsp, 0x28
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
sete al
add rsp, 0x28
ret

Function at 0x14004bf60
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x1400b52a0]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov r8, rcx
mov edx, 0x100
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov edx, 0x5c
lea rcx, [rsp + 0x40]
call qword [sym.imp.VCRUNTIME140.dll_wcschr]
mov edx, 0x5c
lea rcx, [rsp + 0x40]
mov rdi, rax
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
xor ecx, ecx
lea r8, [rsp + 0x40]
mov word [rdi], cx
lea r9, [0x14006e488]
mov rbx, rax
mov edx, ecx
mov word [rax], cx
nop
movzx eax, word [r8 + rdx*2]
inc rdx
cmp ax, word [r9 + rdx*2 - 2]
jne 0x14004bff2
cmp rdx, 5
jne 0x14004bfd0
mov rcx, 0xffffffff80000000
jmp 0x14004c10c
mov rdx, rcx
lea r8, [rsp + 0x40]
lea r9, [0x14006e498]
nop dword [rax]
nop word [rax + rax]
movzx eax, word [r8 + rdx*2]
inc rdx
cmp ax, word [r9 + rdx*2 - 2]
jne 0x14004c032
cmp rdx, 5
jne 0x14004c010
mov rcx, 0xffffffff80000001
jmp 0x14004c10c
mov rdx, rcx
lea r8, [rsp + 0x40]
lea r9, [0x14006e4a8]
nop dword [rax]
nop word [rax + rax]
movzx eax, word [r8 + rdx*2]
inc rdx
cmp ax, word [r9 + rdx*2 - 2]
jne 0x14004c072
cmp rdx, 5
jne 0x14004c050
mov rcx, 0xffffffff80000002
jmp 0x14004c10c
mov rdx, rcx
lea r8, [rsp + 0x40]
lea r9, [0x14006e4b8]
nop dword [rax]
nop word [rax + rax]
movzx eax, word [r8 + rdx*2]
inc rdx
cmp ax, word [r9 + rdx*2 - 2]
jne 0x14004c0af
cmp rdx, 4
jne 0x14004c090
mov rcx, 0xffffffff80000003
jmp 0x14004c10c
mov rdx, rcx
lea r8, [rsp + 0x40]
lea r9, [0x14006e4c0]
nop
movzx eax, word [r8 + rdx*2]
inc rdx
cmp ax, word [r9 + rdx*2 - 2]
jne 0x14004c0df
cmp rdx, 5
jne 0x14004c0c0
mov rcx, 0xffffffff80000005
jmp 0x14004c10c
lea rdx, [rsp + 0x40]
lea r8, [0x14006e4d0]
nop dword [rax + rax]
movzx eax, word [rdx + rcx*2]
inc rcx
cmp ax, word [r8 + rcx*2 - 2]
jne 0x14004c14b
cmp rcx, 5
jne 0x14004c0f0
mov rcx, 0xffffffff80000006
lea rax, [rsp + 0x30]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rdi + 2]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14004c14b
mov rcx, qword [rsp + 0x30]
lea rdx, [rbx + 2]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x30]
test eax, eax
je 0x14004c16e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14005b9c0
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x14004c14d
Function at 0x14004c180
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
mov r10d, r9d
xor ebx, ebx
sub r10d, 1
je 0x14004c1a2
cmp r10d, 3
je 0x14004c19b
mov eax, ebx
jmp 0x14004c1b2
mov eax, 4
jmp 0x14004c1b2
or rax, 0xffffffffffffffff
inc rax
cmp word [r8 + rax*2], bx
jne 0x14004c1a6
add eax, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete al
add rsp, 0x30
pop rbx
ret

Function at 0x14004c1e0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x1400b52a0]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov dword [rsp + 0x30], r8d
mov rsi, rdx
mov r8, rcx
mov edx, 0x100
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov edx, 0x5c
lea rcx, [rsp + 0x50]
call qword [sym.imp.VCRUNTIME140.dll_wcschr]
mov edx, 0x5c
lea rcx, [rsp + 0x50]
mov rdi, rax
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
xor ecx, ecx
lea r8, [rsp + 0x50]
mov word [rdi], cx
lea r9, str.HKCR
mov rbx, rax
mov edx, ecx
mov word [rax], cx
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [r8 + rdx*2]
inc rdx
cmp ax, word [r9 + rdx*2 - 2]
jne 0x14004c282
cmp rdx, 5
jne 0x14004c260
mov rcx, 0xffffffff80000000
jmp 0x14004c39c
mov rdx, rcx
lea r8, [rsp + 0x50]
lea r9, str.HKCU
nop dword [rax]
nop word [rax + rax]
movzx eax, word [r8 + rdx*2]
inc rdx
cmp ax, word [r9 + rdx*2 - 2]
jne 0x14004c2c2
cmp rdx, 5
jne 0x14004c2a0
mov rcx, 0xffffffff80000001
jmp 0x14004c39c
mov rdx, rcx
lea r8, [rsp + 0x50]
lea r9, str.HKLM
nop dword [rax]
nop word [rax + rax]
movzx eax, word [r8 + rdx*2]
inc rdx
cmp ax, word [r9 + rdx*2 - 2]
jne 0x14004c302
cmp rdx, 5
jne 0x14004c2e0
mov rcx, 0xffffffff80000002
jmp 0x14004c39c
mov rdx, rcx
lea r8, [rsp + 0x50]
lea r9, [0x14006e598]
nop dword [rax]
nop word [rax + rax]
movzx eax, word [r8 + rdx*2]
inc rdx
cmp ax, word [r9 + rdx*2 - 2]
jne 0x14004c33f
cmp rdx, 4
jne 0x14004c320
mov rcx, 0xffffffff80000003
jmp 0x14004c39c
mov rdx, rcx
lea r8, [rsp + 0x50]
lea r9, str.HKCC
nop
movzx eax, word [r8 + rdx*2]
inc rdx
cmp ax, word [r9 + rdx*2 - 2]
jne 0x14004c36f
cmp rdx, 5
jne 0x14004c350
mov rcx, 0xffffffff80000005
jmp 0x14004c39c
lea rdx, [rsp + 0x50]
lea r8, str.HKDD
nop dword [rax + rax]
movzx eax, word [rdx + rcx*2]
inc rcx
cmp ax, word [r8 + rcx*2 - 2]
jne 0x14004c3f2
cmp rcx, 5
jne 0x14004c380
mov rcx, 0xffffffff80000006
lea rax, [rsp + 0x38]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rdi + 2]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14004c3f2
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
lea rdx, [rbx + 2]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
test eax, eax
je 0x14004c40f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14005b9c0
add rsp, 0x260
pop rdi
pop rsi
pop rbx
ret
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x30]
jmp 0x14004c3f4
Function at 0x14004c430
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x278
mov rax, qword [0x1400b52a0]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov esi, r8d
mov rdi, rdx
mov r8, rcx
mov edx, 0x100
lea rcx, [rsp + 0x60]
mov ebp, r9d
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov edx, 0x5c
lea rcx, [rsp + 0x60]
call qword [sym.imp.VCRUNTIME140.dll_wcschr]
mov edx, 0x5c
lea rcx, [rsp + 0x60]
mov r14, rax
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
xor ebx, ebx
lea rdx, [rsp + 0x60]
mov word [r14], bx
lea r8, [0x14006e430]
mov r15, rax
mov ecx, ebx
mov word [rax], bx
nop dword [rax + rax]
movzx eax, word [rdx + rcx*2]
inc rcx
cmp ax, word [r8 + rcx*2 - 2]
jne 0x14004c4d1
cmp rcx, 5
jne 0x14004c4b0
mov rcx, 0xffffffff80000000
jmp 0x14004c5c0
mov rcx, rbx
lea rdx, [rsp + 0x60]
lea r8, [0x14006e440]
movzx eax, word [rdx + rcx*2]
inc rcx
cmp ax, word [r8 + rcx*2 - 2]
jne 0x14004c501
cmp rcx, 5
jne 0x14004c4e0
mov rcx, 0xffffffff80000001
jmp 0x14004c5c0
mov rcx, rbx
lea rdx, [rsp + 0x60]
lea r8, [0x14006e450]
movzx eax, word [rdx + rcx*2]
inc rcx
cmp ax, word [r8 + rcx*2 - 2]
jne 0x14004c531
cmp rcx, 5
jne 0x14004c510
mov rcx, 0xffffffff80000002
jmp 0x14004c5c0
mov rcx, rbx
lea rdx, [rsp + 0x60]
lea r8, [0x14006e460]
movzx eax, word [rdx + rcx*2]
inc rcx
cmp ax, word [r8 + rcx*2 - 2]
jne 0x14004c55e
cmp rcx, 4
jne 0x14004c540
mov rcx, 0xffffffff80000003
jmp 0x14004c5c0
mov rcx, rbx
lea rdx, [rsp + 0x60]
lea r8, [0x14006e468]
nop dword [rax]
movzx eax, word [rdx + rcx*2]
inc rcx
cmp ax, word [r8 + rcx*2 - 2]
jne 0x14004c58e
cmp rcx, 5
jne 0x14004c570
mov rcx, 0xffffffff80000005
jmp 0x14004c5c0
mov rax, rbx
lea rdx, [rsp + 0x60]
lea r8, [0x14006e478]
nop dword [rax]
movzx ecx, word [rdx + rax*2]
inc rax
cmp cx, word [r8 + rax*2 - 2]
jne 0x14004c663
cmp rax, 5
jne 0x14004c5a0
mov rcx, 0xffffffff80000006
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rdx, [r14 + 2]
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], 2
xor r8d, r8d
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14004c663
test ebp, ebp
jne 0x14004c634
mov ecx, esi
sub ecx, 1
je 0x14004c615
sub ecx, 3
je 0x14004c60e
cmp ecx, 7
jne 0x14004c636
lea ebx, [rax + 8]
jmp 0x14004c636
mov ebx, 4
jmp 0x14004c636
or rax, 0xffffffffffffffff
nop dword [rax]
cmp word [rdi + rax*2 + 2], bx
lea rax, [rax + 1]
jne 0x14004c620
lea ebx, [rax*2 + 2]
jmp 0x14004c636
mov ebx, ebp
mov rcx, qword [rsp + 0x50]
lea rdx, [r15 + 2]
mov dword [rsp + 0x28], ebx
mov r9d, esi
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
test eax, eax
je 0x14004c685
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14005b9c0
add rsp, 0x278
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x14004c665