joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000dd54
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14000dbe7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000dbe7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000dbe7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000dbe7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000dbe7
cmp dword [rcx + 0x84], 0xe
jbe 0x14000dbe7
cmp dword [rcx + 0xf8], 0
je 0x14000dbe7
mov ecx, ebx
call fcn.14000dc88
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14000da78
cmp dword [rbp + 0x20], 0
je 0x14000dc34
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000dc3c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000db80
Function at 0x140001000
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rax, qword [0x140004668]
mov rsi, rdx
mov rbx, rcx
test rax, rax
jne 0x14000105c
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x140001055
lea rdx, str.LoadLibraryA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140004668], rax
jmp 0x14000105c
mov rax, qword [0x140004668]
mov rcx, rbx
mov qword [rsp + 0x40], r12
call rax
xor r15d, r15d
mov r10, rax
movzx r8d, r15w
movsxd rcx, dword [rax + 0x3c]
mov edx, dword [rcx + rax + 0x88]
add rdx, rax
mov ebp, dword [rdx + 0x1c]
mov edi, dword [rdx + 0x20]
add rbp, rax
mov r14d, dword [rdx + 0x24]
add rdi, rax
movzx ebx, word [rdx + 0x14]
add r14, rax
cmp r15w, bx
jge 0x14000113a
movabs r12, 0x2000000001
nop dword [rax]
movsx r11, r8w
mov rax, r15
mov edx, r15d
mov r9d, dword [rdi + r11*4]
add r9, r10
movzx ecx, byte [r9]
test cl, cl
je 0x140001113
nop dword [rax]
movsx rcx, cl
lea edx, [rdx + 1]
add rax, rcx
mov rcx, rax
shl rcx, 8
xor rcx, rax
shl rcx, 0xb
xor rax, rcx
mov rcx, rax
shr rcx, 4
xor rcx, rax
shr rcx, 0xb
add rax, rcx
imul rax, r12
mov rcx, rax
shr rcx, 0xd
xor rax, rcx
movzx ecx, byte [rdx + r9]
test cl, cl
jne 0x1400010d0
mov rcx, rax
shl rcx, 5
xor rax, rcx
mov rcx, rax
shr rcx, 0xd
add rcx, rax
cmp rcx, rsi
je 0x14000115a
inc r8w
cmp r8w, bx
jl 0x1400010b0
xor eax, eax
mov r12, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
movzx eax, word [r14 + r11*2]
mov eax, dword [rbp + rax*4]
add rax, r10
jmp 0x14000113c
Function at 0x1400026b8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002702
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002702
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002702
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002702
cmp dword [rcx + 0x84], 0xe
jbe 0x140002702
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002704
xor al, al
add rsp, 0x28
ret
Function at 0x214f036b0
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 fcn.214f0b310
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.214f0b310
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x214f040b2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x214f232a8]
test eax, eax
je 0x214f0414a
lea rax, [0x214f23280]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x214f232b0]
mov qword [rbp - 8], rax
jmp 0x214f0412e
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 0x214f04122
cmp qword [rbp - 0x10], 0
je 0x214f04122
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 0x214f040e8
lea rax, [0x214f23280]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x214f0414b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x214f04250
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 0x214f04278
mov eax, 0
jmp 0x214f042c6
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 0x214f042a1
mov eax, 0
jmp 0x214f042c6
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 0x214f042c1
mov eax, 0
jmp 0x214f042c6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x214f042cc
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 0x214f0434a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x214f04341
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 0x214f04341
mov rax, qword [rbp - 8]
jmp 0x214f0435f
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 0x214f04314
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll___p__environ]
mov rcx, qword [rax]
mov qword [0x1400040f8], rcx
lea rcx, str._JAVA_LAUNCHER_DEBUG
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140001071
lea rcx, str.Windows_original_main_args:_n
call fcn.140001158
xor ebx, ebx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argc]
cmp dword [rax], ebx
jle 0x140001071
xor edi, edi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argv]
mov edx, ebx
lea rcx, str.wwwd_args__d____s_n
mov r8, qword [rax]
mov r8, qword [rdi + r8]
call fcn.140001158
inc ebx
lea rdi, [rdi + 8]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argc]
cmp ebx, dword [rax]
jl 0x140001046
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rcx, rax
call sub.jli.dll_JLI_CmdToArgs
call sub.jli.dll_JLI_GetStdArgc
movsxd rdi, eax
lea ecx, [rdi + 1]
movsxd rcx, ecx
shl rcx, 3
call sub.jli.dll_JLI_MemAlloc
mov rbx, rax
call sub.jli.dll_JLI_GetStdArgs
xor r9d, r9d
test edi, edi
jle 0x1400010bd
xor edx, edx
mov r9d, edi
mov rcx, qword [rax]
lea rax, [rax + 0x10]
mov qword [rbx + rdx*8], rcx
inc rdx
cmp rdx, rdi
jl 0x1400010aa
mov rcx, qword [str.java]
movsxd rax, r9d
and qword [rbx + rax*8], 0
test rcx, rcx
jne 0x1400010d4
mov rcx, qword [rbx]
mov rax, qword [section..data]
test rax, rax
jne 0x1400010e3
mov rax, qword [rbx]
and dword [rsp + 0x68], 0
lea r9, str._J_ms8m
mov byte [rsp + 0x60], 1
mov r8d, 3
mov byte [rsp + 0x58], 0
mov rdx, rbx
mov byte [rsp + 0x50], 1
mov qword [rsp + 0x48], rcx
mov ecx, edi
mov qword [rsp + 0x40], rax
lea rax, [0x14000235c]
mov qword [rsp + 0x38], rax
lea rax, [0x140002360]
mov qword [rsp + 0x30], rax
lea rax, str._lib_jconsole.jar
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r8d
call sub.jli.dll_JLI_Launch
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret

Function at 0x140001938
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001982
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001982
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001982
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001982
cmp dword [rcx + 0x84], 0xe
jbe 0x140001982
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001984
xor al, al
add rsp, 0x28
ret
Function at 0x14000110a
Capabilities:
Execute anti-debugging instructions

Disassembly:
xor eax, eax
cpuid
mov eax, 1
cpuid
movabs r9, 0xb2d05e00
cpuid
rdtsc
shl rdx, 0x20
or rax, rdx
mov rcx, rax
fldpi
frndint
rdtsc
shl rdx, 0x20
or rax, rdx
sub rax, rcx
cmp rax, r9
jb 0x14000112d
push rbp
mov rbp, rsp
sub rsp, 8
mov r10, 0xa
mov rcx, 0xffffffff9f345678
dec rcx
xor r9, r9
mov rax, rcx
jne 0x140001158
xor rax, rax
mov rax, rbx
add rax, rdx
nop
nop
nop
dec r10
xor r11, r11
jne 0x140001151
xor rax, rax
mov rax, 0xa
dec rax
nop
nop
add rsp, 8
pop rbp
ret

Function at 0x140004810
Capabilities:
Check os version

Disassembly:
sub rsp, 0xe8
mov rax, qword [0x1400243d8]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov r8d, 0x94
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.14000f9e0
mov dword [rsp + 0x30], 0x94
mov dword [0x14002a370], 1
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1400048d8
cmp dword [rsp + 0x40], 2
jne 0x1400048d8
cmp dword [rsp + 0x34], 5
jne 0x14000487d
cmp dword [rsp + 0x38], 0
jne 0x14000487d
mov dword [0x14002a370], 2
jmp 0x1400048d8
cmp dword [rsp + 0x34], 5
jne 0x140004897
cmp dword [rsp + 0x38], 1
jne 0x140004897
mov dword [0x14002a370], 3
jmp 0x1400048d8
cmp dword [rsp + 0x34], 5
jne 0x1400048b1
cmp dword [rsp + 0x38], 2
jne 0x1400048b1
mov dword [0x14002a370], 4
jmp 0x1400048d8
cmp dword [rsp + 0x34], 6
jb 0x1400048d8
cmp dword [rsp + 0x3c], 0x1b58
jae 0x1400048ce
mov dword [0x14002a370], 5
jmp 0x1400048d8
mov dword [0x14002a370], 6
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.14000e050
add rsp, 0xe8
ret

Function at 0x1400055f0
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
call fcn.14000a7c0
test eax, eax
je 0x1400057b8
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x14002a310], rax
cmp qword [0x14002a310], 0
jne 0x140005640
lea r8, str.loading_DLL_advapi32.dll_failed_n
lea rdx, [0x14002615c]
lea rcx, [0x1400278b0]
call fcn.1400040c0
xor eax, eax
jmp 0x1400057bd
lea rdx, str.OpenSCManagerA
mov rcx, qword [0x14002a310]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14002a328], rax
lea rdx, str.OpenServiceA
add al, byte [rax]
mov eax, 1
add rsp, 0x28
ret
Function at 0x1400099c0
Capabilities:
Get token membership

Disassembly:
sub rsp, 0x98
mov rax, qword [0x1400243d8]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov byte [rsp + 0x78], 0
mov byte [rsp + 0x79], 0
mov byte [rsp + 0x7a], 0
mov byte [rsp + 0x7b], 0
mov byte [rsp + 0x7c], 0
mov byte [rsp + 0x7d], 5
cmp dword [0x14002a370], 0
jne 0x140009a05
call fcn.140004810
xor eax, eax
test eax, eax
jne 0x1400099f7
cmp dword [0x14002a370], 3
jg 0x140009a1e
mov eax, 1
jmp 0x140009aa9
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0x220
mov r8d, 0x20
mov dl, 2
lea rcx, [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
je 0x140009aa5
lea r8, [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x140009a9a
mov dword [rsp + 0x68], 0
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14000e050
add rsp, 0x98
ret

Function at 0x140009ad0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
sub rsp, 0x68
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0xffffffffffffffff
jne 0x140009af1
jmp 0x140009b7d
mov r8d, 0x12c
mov edx, 0x2724
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x140009b13
jmp 0x140009b7d
mov rdx, qword [rsp + 0x38]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x48], eax
mov rdx, qword [rsp + 0x38]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x140009b40
jmp 0x140009b7d
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x140009b5a
jmp 0x140009b7d
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, dword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_WriteFile]
add rsp, 0x68
ret

Function at 0x140009b90
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x68
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140009bb5
mov eax, 0xffffffff
jmp 0x140009c0a
lea rdx, str.GetNativeSystemInfo
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140009bdf
lea rcx, [rsp + 0x30]
call qword [rsp + 0x20]
jmp 0x140009bea
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [rsp + 0x30]
cmp eax, 9
je 0x140009bfe
movzx eax, word [rsp + 0x30]
cmp eax, 6
jne 0x140009c05
mov eax, 0x40
jmp 0x140009c0a
mov eax, 0x20
add rsp, 0x68
ret
Function at 0x140009c10
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x68
mov rax, qword [0x1400243d8]
xor rax, rsp
mov qword [rsp + 0x58], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 0x20
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140009c58
lea r8, [rsp + 0x50]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x140009c68
lea rcx, str.SetPrivilege_Error_n
call fcn.14000f7d4
xor eax, eax
jmp 0x140009cc2
mov dword [rsp + 0x40], 1
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x44], rax
mov dword [rsp + 0x4c], 2
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x40]
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x140009cbd
lea rcx, str.AdjustTokenPrivilege_Errro_n
call fcn.14000f7d4
xor eax, eax
jmp 0x140009cc2
mov eax, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000e050
add rsp, 0x68
ret
Function at 0x14000b740
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], 1
xor r9d, r9d
mov r8d, 1
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x14000b7d2
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x14000b7c7
mov r8, qword [rsp + 0x60]
lea rdx, str.removed__s_from_device_registry.._n
lea rcx, str.usb_registry_remove_device_regvalue
call fcn.140004160
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x14000b7d4
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add rsp, 0x48
ret

Function at 0x14000c4e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x40], 0
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x48], 0
movsxd rax, dword [rsp + 0x78]
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0x70]
call fcn.14000f9e0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14000c5c7
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x4c]
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14000c5c7
cmp dword [rsp + 0x4c], 1
jne 0x14000c5bf
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
movsx eax, byte [rax]
test eax, eax
je 0x14000c5bf
mov rax, qword [rsp + 0x30]
movsx eax, byte [rax]
cmp eax, 0x2c
jne 0x14000c5b0
mov rax, qword [rsp + 0x30]
mov byte [rax], 0
mov rax, qword [rsp + 0x30]
inc rax
mov qword [rsp + 0x30], rax
jmp 0x14000c58f
mov dword [rsp + 0x48], 1
cmp qword [rsp + 0x40], 0
je 0x14000c5da
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x48]
add rsp, 0x58
ret
Function at 0x14000c5f0
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x40], 0
call fcn.14000a7c0
test eax, eax
jne 0x14000c668
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
movsx eax, byte [rax]
test eax, eax
je 0x14000c668
mov rax, qword [rsp + 0x30]
movsx eax, byte [rax + 1]
test eax, eax
je 0x14000c668
mov rax, qword [rsp + 0x30]
movsx eax, byte [rax]
test eax, eax
jne 0x14000c659
mov rax, qword [rsp + 0x30]
mov byte [rax], 0x2c
mov rax, qword [rsp + 0x30]
inc rax
mov qword [rsp + 0x30], rax
jmp 0x14000c62c
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14000c733
cmp dword [rsp + 0x78], 2
jle 0x14000c717
call fcn.14000a7c0
test eax, eax
je 0x14000c6de
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 7
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x14000c6dc
mov dword [rsp + 0x40], 1
jmp 0x14000c715
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x14000c715
mov dword [rsp + 0x40], 1
jmp 0x14000c733
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x14000c733
mov dword [rsp + 0x40], 1
cmp qword [rsp + 0x38], 0
je 0x14000c746
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret
Function at 0x14000da10
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x3d8
mov rax, qword [0x1400243d8]
xor rax, rsp
mov qword [rsp + 0x3c8], rax
mov qword [rsp + 0x40], 0
call fcn.14000a7c0
test eax, eax
je 0x14000da4e
lea rax, str.SYSTEMCurrentControlSetControlClass_
mov qword [rsp + 0x50], rax
jmp 0x14000da5a
lea rax, str.SYSTEMCurrentControlSetServicesClass_
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14000dc74
mov dword [rsp + 0x3b0], 0
mov dword [rsp + 0x3b4], 0x104
mov r8d, 0x104
xor edx, edx
lea rcx, [rsp + 0x2a0]
call fcn.14000f9e0
lea rax, [rsp + 0x3b8]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x3b4]
lea r8, [rsp + 0x2a0]
mov edx, dword [rsp + 0x3b0]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x14000dc69
lea rcx, [rsp + 0x2a0]
call fcn.14000f170
mov rcx, qword [rsp + 0x50]
call fcn.14000e120
mov qword [rsp + 0x3c0], rax
lea rcx, [rsp + 0x2a0]
call fcn.14000e120
mov rcx, qword [rsp + 0x3c0]
add rcx, rax
mov rax, rcx
cmp rax, 0x104
jae 0x14000dc34
mov r8d, 0x104
xor edx, edx
lea rcx, [rsp + 0x180]
call fcn.14000f9e0
lea r9, [rsp + 0x2a0]
mov r8, qword [rsp + 0x50]
lea rdx, str._s_s
lea rcx, [rsp + 0x60]
call fcn.14000eaa8
lea rax, [rsp + 0x170]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14000dc34
mov dword [rsp + 0x3b4], 0x104
lea rax, [rsp + 0x3b4]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x180]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x290]
xor r8d, r8d
lea rdx, str.Class
mov rcx, qword [rsp + 0x170]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x170]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0x28], 1
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x2a0]
lea r8, [rsp + 0x180]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x3e0]
call fcn.14000dca0
mov r8d, 0x104
xor edx, edx
lea rcx, [rsp + 0x2a0]
call fcn.14000f9e0
mov dword [rsp + 0x3b4], 0x104
mov eax, dword [rsp + 0x3b0]
inc eax
mov dword [rsp + 0x3b0], eax
jmp 0x14000dab2
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov rcx, qword [rsp + 0x3c8]
xor rcx, rsp
call fcn.14000e050
add rsp, 0x3d8
ret