joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2fc4d6540
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d7620
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d6f42
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f9108]
test eax, eax
je 0x2fc4d6fda
lea rax, [0x2fc4f90e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f9110]
mov qword [rbp - 8], rax
jmp 0x2fc4d6fbe
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d6fb2
cmp qword [rbp - 0x10], 0
je 0x2fc4d6fb2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d6f78
lea rax, [0x2fc4f90e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d6fdb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d70e0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d7108
mov eax, 0
jmp 0x2fc4d7156
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d7131
mov eax, 0
jmp 0x2fc4d7156
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d7151
mov eax, 0
jmp 0x2fc4d7156
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d715c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d71da
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d71d1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d71d1
mov rax, qword [rbp - 8]
jmp 0x2fc4d71ef
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d71a4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d1e30
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d2f10
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d2832
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f5108]
test eax, eax
je 0x2fc4d28ca
lea rax, [0x2fc4f50e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f5110]
mov qword [rbp - 8], rax
jmp 0x2fc4d28ae
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d28a2
cmp qword [rbp - 0x10], 0
je 0x2fc4d28a2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d2868
lea rax, [0x2fc4f50e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d28cb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d29d0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d29f8
mov eax, 0
jmp 0x2fc4d2a46
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d2a21
mov eax, 0
jmp 0x2fc4d2a46
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d2a41
mov eax, 0
jmp 0x2fc4d2a46
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d3230
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d4310
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d3c32
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f6108]
test eax, eax
je 0x2fc4d3cca
lea rax, [0x2fc4f60e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f6110]
mov qword [rbp - 8], rax
jmp 0x2fc4d3cae
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d3ca2
cmp qword [rbp - 0x10], 0
je 0x2fc4d3ca2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d3c68
lea rax, [0x2fc4f60e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d3ccb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d3dd0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d3df8
mov eax, 0
jmp 0x2fc4d3e46
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d3e21
mov eax, 0
jmp 0x2fc4d3e46
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d3e41
mov eax, 0
jmp 0x2fc4d3e46
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc559550
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc55a630
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc559f52
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc57c108]
test eax, eax
je 0x2fc559fea
lea rax, [0x2fc57c0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc57c110]
mov qword [rbp - 8], rax
jmp 0x2fc559fce
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc559fc2
cmp qword [rbp - 0x10], 0
je 0x2fc559fc2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc559f88
lea rax, [0x2fc57c0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc559feb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc55a0f0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc55a118
mov eax, 0
jmp 0x2fc55a166
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc55a141
mov eax, 0
jmp 0x2fc55a166
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc55a161
mov eax, 0
jmp 0x2fc55a166
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc55a16c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc55a1ea
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc55a1e1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc55a1e1
mov rax, qword [rbp - 8]
jmp 0x2fc55a1ff
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc55a1b4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400057e0
Capabilities:
Listen for remote procedure calls

Disassembly:
push r12
sub rsp, 0x70
xor edx, edx
movabs rax, 0x6300610063006e
mov qword [rsp + 0x30], rax
movabs rax, 0x70006e005f006e
mov qword [rsp + 0x38], rax
xor eax, eax
mov word [rsp + 0x40], ax
movabs rax, 0x7000690070005c
mov qword [rsp + 0x50], rax
movabs rax, 0x760073005c0065
mov qword [rsp + 0x58], rax
movabs rax, 0x6c007400630063
mov qword [rsp + 0x60], rax
mov word [rsp + 0x68], dx
call qword [sym.imp.kernel32.dll_CreateThreadpoolCleanupGroup]
test rax, rax
mov qword [0x140020008], rax
je 0x1400058e0
lea rcx, [rsp + 0x30]
xor r9d, r9d
xor edx, edx
lea r8, [rsp + 0x50]
call qword [sym.imp.rpcrt4.dll_RpcServerUseProtseqEpW]
test eax, eax
mov r12d, eax
je 0x140005890
test byte [section..data], 2
jne 0x140005960
mov eax, r12d
add rsp, 0x70
pop r12
ret
mov rax, qword [0x14001da90]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rax]
call qword [sym.imp.rpcrt4.dll_RpcServerRegisterIf]
test eax, eax
mov r12d, eax
je 0x140005908
test byte [section..data], 2
je 0x14000587e
mov dword [rsp + 0x20], eax
lea r9, str.RpcServerRegisterIf_failed_with_error__lu_n
mov ecx, 1
lea r8, str.RPC_Init
lea rdx, section..data
call fcn.140001490
jmp 0x14000587e
test byte [section..data], 2
jne 0x140005990
mov rax, qword gs:[0x30]
mov r12d, dword [rax + 0x68]
mov eax, r12d
add rsp, 0x70
pop r12
ret
mov r8d, 1
mov edx, 0x4d2
mov ecx, 1
call qword [sym.imp.rpcrt4.dll_RpcServerListen]
test eax, eax
mov r12d, eax
je 0x1400059c8
test byte [section..data], 2
je 0x14000587e
mov dword [rsp + 0x20], eax
lea r9, str.RpcServerListen_failed_with_error__lu_n
mov ecx, 1
lea r8, str.RPC_Init
lea rdx, section..data
call fcn.140001490
jmp 0x14000587e
mov dword [rsp + 0x20], eax
lea r9, str.RpcServerUseProtseq_failed_with_error__lu_n
mov ecx, 1
lea r8, str.RPC_Init
lea rdx, section..data
call fcn.140001490
mov eax, r12d
add rsp, 0x70
pop r12
ret
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x68]
lea r9, [0x14001b4d0]
mov ecx, 1
lea r8, str.RPC_Init
lea rdx, section..data
mov dword [rsp + 0x20], eax
call fcn.140001490
jmp 0x1400058ed
mov r9d, 8
mov edx, 0x3e8
mov rcx, 0xffffffffffffffff
lea r8, [section..bss]
call qword [sym.imp.ntdll.dll_NtSetInformationProcess]
jmp 0x14000587e

Function at 0x140005c00
Capabilities:
Delete registry value
Set registry value

Disassembly:
sub rsp, 0x38
test r8, r8
je 0x140005c50
cmp word [r8], 0
mov rax, r8
je 0x140005c68
nop dword [rax + rax]
add rax, 2
cmp word [rax], 0
jne 0x140005c18
sub rax, r8
sar rax, 1
lea eax, [rax + rax + 2]
mov qword [rsp + 0x20], r8
mov r9d, 1
xor r8d, r8d
mov dword [rsp + 0x28], eax
call qword [sym.imp.advapi32.dll_RegSetValueExW]
add rsp, 0x38
ret
call qword [sym.imp.advapi32.dll_RegDeleteValueW]
xor edx, edx
cmp eax, 2
cmove eax, edx
add rsp, 0x38
ret
mov eax, 2
jmp 0x140005c2c
Function at 0x140005c70
Capabilities:
Delete registry value
Set registry value

Disassembly:
sub rsp, 0x38
test r8, r8
mov r10, rcx
je 0x140005cdd
cmp word [r8], 0
mov rcx, r8
mov eax, 2
je 0x140005cbd
nop dword [rax + rax]
mov rax, rcx
nop dword [rax + rax]
add rax, 2
cmp word [rax], 0
jne 0x140005c98
sub rax, rcx
sar rax, 1
add eax, 1
cdqe
lea rcx, [rcx + rax*2]
cmp word [rcx], 0
jne 0x140005c90
sub rcx, r8
lea eax, [rcx + 2]
mov qword [rsp + 0x20], r8
mov r9d, 7
xor r8d, r8d
mov rcx, r10
mov dword [rsp + 0x28], eax
call qword [sym.imp.advapi32.dll_RegSetValueExW]
add rsp, 0x38
ret
call qword [sym.imp.advapi32.dll_RegDeleteValueW]
xor edx, edx
cmp eax, 2
cmove eax, edx
add rsp, 0x38
ret
Function at 0x140007190
Capabilities:
Delete registry key

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x20
mov rbx, qword [rcx + 0x10]
lea r13, [rbx + 0x30]
mov r12, rcx
mov rcx, r13
call qword [sym.imp.kernel32.dll_EnterCriticalSection]
lock sub dword [r12 + 0x18], 1
jne 0x1400071c2
mov eax, dword [r12 + 0xc0]
test eax, eax
jne 0x1400071d8
mov rcx, r13
add rsp, 0x20
pop rbx
pop r12
pop r13
jmp qword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov rdx, qword [r12 + 0x20]
mov rcx, qword [rbx]
call qword [sym.imp.advapi32.dll_RegDeleteTreeW]
mov rdx, qword [r12]
mov rcx, r12
mov rax, qword [r12 + 8]
mov qword [rdx + 8], rax
mov rdx, qword [r12]
mov qword [rax], rdx
mov qword [r12 + 8], 0
mov qword [r12], 0
call fcn.1400070c0
jmp 0x1400071c2
Function at 0x140007c20
Capabilities:
Terminate process

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rdi, qword [rcx + 0x10]
lea r12, [rdi + 0x30]
mov rsi, rcx
add rdi, 0x20
mov rcx, r12
call qword [sym.imp.kernel32.dll_EnterCriticalSection]
xor edx, edx
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.kernel32.dll_TerminateProcess]
mov rbx, qword [rdi]
cmp rdi, rbx
jne 0x140007c68
jmp 0x140007c97
mov rbx, qword [rbx]
cmp rbx, rdi
je 0x140007c97
cmp qword [rbx + 0xb0], rsi
jne 0x140007c60
mov dword [rbx + 0x2c], 1
mov rcx, rsi
mov qword [rbx + 0xb0], 0
sub dword [rsi + 0x1c], 1
call fcn.140007020
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x140007c68
mov rcx, r12
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.kernel32.dll_LeaveCriticalSection]
Function at 0x1400093a0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rsi, qword [sym.imp.advapi32.dll_RegQueryValueExW]
mov qword [r9], 0
mov r15, rcx
mov r14, rdx
mov r13d, r8d
lea rbp, [rsp + 0x4c]
xor r8d, r8d
mov rbx, r9
mov qword [rsp + 0x20], 0
lea rdi, [rsp + 0x48]
mov r9, rbp
mov qword [rsp + 0x28], rdi
call rsi
test eax, eax
mov r12d, eax
je 0x140009428
cmp eax, 2
je 0x1400094e0
xor r13d, r13d
test byte [0x14001a080], 2
jne 0x140009448
mov rcx, r13
call qword [sym.imp.ucrtbase.dll_free]
mov eax, r12d
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov eax, dword [rsp + 0x4c]
cmp eax, 1
je 0x140009480
cmp eax, 2
jne 0x14000943b
test r13d, r13d
jne 0x140009480
mov r12d, 0x70c
jmp 0x1400093fa
mov rcx, r14
call fcn.140009110
mov dword [rsp + 0x20], r12d
lea r9, str.Error__ld_while_reading_value__s_n
mov ecx, 1
mov qword [rsp + 0x28], rax
lea r8, [0x14001c940]
lea rdx, [0x14001a080]
call fcn.140009050
jmp 0x140009406
mov ecx, dword [rsp + 0x48]
mov rax, qword [sym.imp.ucrtbase.dll_malloc]
add rcx, 2
mov qword [rsp + 0x38], rax
call rax
xor r8d, r8d
mov qword [rsp + 0x28], rdi
mov r9, rbp
mov r13, rax
mov qword [rsp + 0x20], rax
mov rdx, r14
mov rcx, r15
call rsi
test eax, eax
mov r12d, eax
jne 0x1400093fd
mov eax, dword [rsp + 0x48]
xor edx, edx
shr eax, 1
cmp dword [rsp + 0x4c], 2
mov word [r13 + rax*2], dx
je 0x1400094f0
mov qword [rbx], r13
jmp 0x14000940f
xor r12d, r12d
jmp 0x14000940f
xor r8d, r8d
xor edx, edx
mov rdi, qword [sym.imp.kernel32.dll_ExpandEnvironmentStringsW]
mov rcx, r13
call rdi
test eax, eax
mov esi, eax
mov dword [rsp + 0x48], eax
jne 0x140009520
mov rax, qword gs:[0x30]
mov r12d, dword [rax + 0x68]
jmp 0x1400093fd
mov ecx, eax
mov rax, qword [rsp + 0x38]
add rcx, rcx
call rax
mov r8d, esi
mov rcx, r13
mov rbp, rax
mov rdx, rax
call rdi
mov rcx, r13
call qword [sym.imp.ucrtbase.dll_free]
mov qword [rbx], rbp
jmp 0x14000940f
Function at 0x140009550
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rdi, qword [sym.imp.advapi32.dll_RegQueryValueExW]
mov qword [r9], 0
mov r14, rcx
mov r13, rdx
mov esi, r8d
lea r15, [rsp + 0x4c]
xor r8d, r8d
mov rbx, r9
mov qword [rsp + 0x20], 0
lea rbp, [rsp + 0x48]
mov r9, r15
mov qword [rsp + 0x28], rbp
call rdi
test eax, eax
mov r12d, eax
je 0x140009610
xor esi, esi
cmp eax, 2
je 0x140009698
test byte [0x14001a080], 2
jne 0x1400095d8
mov rcx, rsi
call qword [sym.imp.ucrtbase.dll_free]
mov eax, r12d
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, r13
call fcn.140009110
mov dword [rsp + 0x20], r12d
lea r9, str.Error__ld_while_reading_value__s_n
mov ecx, 1
mov qword [rsp + 0x28], rax
lea r8, str.load_reg_multisz
lea rdx, [0x14001a080]
call fcn.140009050
jmp 0x1400095b5
mov eax, dword [rsp + 0x4c]
cmp eax, 7
je 0x140009638
test esi, esi
je 0x140009622
cmp eax, 1
je 0x140009638
xor esi, esi
test byte [0x14001a080], 2
mov r12d, 0x70c
je 0x1400095b5
jmp 0x1400095d8
mov ecx, dword [rsp + 0x48]
add rcx, 4
call qword [sym.imp.ucrtbase.dll_malloc]
xor r8d, r8d
mov qword [rsp + 0x28], rbp
mov r9, r15
mov rsi, rax
mov qword [rsp + 0x20], rax
mov rdx, r13
mov rcx, r14
mov qword [rsp + 0x38], rax
call rdi
test eax, eax
mov r12d, eax
jne 0x1400095ac
mov eax, dword [rsp + 0x48]
xor edx, edx
xor ecx, ecx
mov r10, qword [rsp + 0x38]
shr eax, 1
mov word [r10 + rax*2], dx
mov word [r10 + rax*2 + 2], cx
mov qword [rbx], r10
jmp 0x1400095be
mov edx, 2
mov ecx, 1
xor r12d, r12d
call qword [sym.imp.ucrtbase.dll_calloc]
mov qword [rbx], rax
jmp 0x1400095be

Function at 0x1400096c0
Capabilities:
Query or enumerate registry value

Disassembly:
push r13
push r12
sub rsp, 0x48
lea rax, [rsp + 0x38]
mov dword [r8], 0
mov r13, rdx
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x3c]
xor r8d, r8d
mov dword [rsp + 0x38], 4
mov qword [rsp + 0x28], rax
call qword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
mov r12d, eax
je 0x140009760
cmp eax, 2
je 0x140009788
test byte [0x14001a080], 2
jne 0x140009720
mov eax, r12d
add rsp, 0x48
pop r12
pop r13
ret
mov rcx, r13
call fcn.140009110
mov dword [rsp + 0x20], r12d
lea r9, str.Error__ld_while_reading_value__s_n
mov ecx, 1
mov qword [rsp + 0x28], rax
lea r8, str.load_reg_dword
lea rdx, [0x14001a080]
call fcn.140009050
mov eax, r12d
add rsp, 0x48
pop r12
pop r13
ret
mov eax, dword [rsp + 0x3c]
sub eax, 3
cmp eax, 1
ja 0x140009773
cmp dword [rsp + 0x38], 4
je 0x140009710
test byte [0x14001a080], 2
mov r12d, 0x70c
je 0x140009710
jmp 0x140009720
xor r12d, r12d
mov eax, r12d
add rsp, 0x48
pop r12
pop r13
ret
Function at 0x140018c00
Capabilities:
Terminate process

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x20
mov ecx, 1
call sub.ucrtbase.dll__configure_narrow_argv
call sub.ucrtbase.dll__initialize_narrow_environment
call 0x140018c70
mov r12d, dword [rax]
call sub.ucrtbase.dll___p___argv
mov r13, qword [rax]
call sub.ucrtbase.dll__get_initial_narrow_environment
xor ecx, ecx
mov rbx, rax
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov rax, qword [rax + 0x10]
mov edx, dword [rax + 0x3c]
cmp word [rax + rdx + 0x5c], 2
sete cl
add ecx, 1
call sub.ucrtbase.dll__set_app_type
mov ecx, r12d
mov r8, rbx
mov rdx, r13
call fcn.140018ff0
mov ecx, eax
call sub.ucrtbase.dll_exit
nop
nop
nop
nop
jmp qword [sym.imp.ucrtbase.dll___p___argc]