joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000118b
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
jmp 0x140003010
push rdi
sub rsp, 0x70
mov rdi, rsp
mov ecx, 0x1c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0xffffffffffffffff
jne 0x140003042
jmp 0x1400030ce
mov r8d, 0x12c
mov edx, 0x2724
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x140003064
jmp 0x1400030ce
mov rdx, qword [rsp + 0x68]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x38], eax
mov rdx, qword [rsp + 0x68]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x140003091
jmp 0x1400030ce
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x1400030ab
jmp 0x1400030ce
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsp
lea rdx, [0x1400973b0]
call fcn.1400105f0
add rsp, 0x70
pop rdi
ret

Function at 0x1400011ae
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x14000a6f0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x90
mov rdi, rsp
mov ecx, 0x24
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xa0]
mov qword [rsp + 0x38], 0
mov eax, dword [rsp + 0xb8]
mov dword [rsp + 0x74], eax
mov dword [rsp + 0x84], 0
movsxd rax, dword [rsp + 0xb8]
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0xb0]
call fcn.140010980
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, qword [rsp + 0xa0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14000a823
lea rax, [rsp + 0x74]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x54]
xor r8d, r8d
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14000a823
cmp dword [rsp + 0x54], 1
jne 0x14000a818
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
movsx eax, byte [rax]
test eax, eax
je 0x14000a818
mov rax, qword [rsp + 0x88]
movsx eax, byte [rax]
cmp eax, 0x2c
jne 0x14000a803
mov rax, qword [rsp + 0x88]
mov byte [rax], 0
mov rax, qword [rsp + 0x88]
inc rax
mov qword [rsp + 0x88], rax
jmp 0x14000a7d9
mov dword [rsp + 0x84], 1
cmp qword [rsp + 0x38], 0
je 0x14000a836
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x84]
mov edi, eax
mov rcx, rsp
lea rdx, [0x140098688]
call fcn.1400105f0
mov eax, edi
add rsp, 0x90
pop rdi
ret
Function at 0x1400022f0
Capabilities:
Check os version

Disassembly:
jmp 0x1400022f0
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xe18
mov rdi, rsp
mov ecx, 0x386
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xe30]
mov rax, qword [0x1400b9920]
xor rax, rsp
mov qword [rsp + 0xe08], rax
lea rax, [rsp + 0x28]
lea rcx, [0x1400b6530]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x38
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x80]
lea rcx, str._added_by_libusb_to_break_this_files_digital_signature
mov rdi, rax
mov rsi, rcx
mov ecx, 0x70
rep movsb byte [rdi], byte [rsi]
mov dword [rsp + 0xd34], 0
mov dword [rsp + 0xd50], 0x94
lea rcx, [rsp + 0xd50]
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x14000238e
mov eax, 0xffffffff
jmp 0x14000256f
cmp dword [rsp + 0xd54], 5
jne 0x14000247d
cmp dword [rsp + 0xd58], 1
jb 0x14000247d
lea rdx, [0x1400b613c]
mov rcx, qword [rsp + 0xe30]
call fcn.1400156c0
mov qword [rsp + 0xdf8], rax
cmp qword [rsp + 0xdf8], 0
jne 0x1400023db
mov eax, 0xffffffff
jmp 0x14000256f
mov r8, qword [rsp + 0xdf8]
mov edx, 0x400
lea rcx, [rsp + 0x530]
call fcn.140016800
test rax, rax
je 0x140002423
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x530]
call fcn.140011f40
test rax, rax
je 0x140002421
mov dword [rsp + 0xd34], 1
jmp 0x140002423
jmp 0x1400023db
mov rcx, qword [rsp + 0xdf8]
call fcn.140014e00
cmp dword [rsp + 0xd34], 0
jne 0x140002478
lea rdx, [0x1400b6154]
mov rcx, qword [rsp + 0xe30]
call fcn.1400156c0
mov qword [rsp + 0xdf8], rax
mov rdx, qword [rsp + 0xdf8]
lea rcx, [rsp + 0x80]
call fcn.140016b00
mov rcx, qword [rsp + 0xdf8]
call fcn.140014e00
jmp 0x14000256d
lea rdx, [0x1400b6184]
mov rcx, qword [rsp + 0xe30]
call fcn.1400156c0
mov qword [rsp + 0xdf8], rax
cmp qword [rsp + 0xdf8], 0
jne 0x1400024ae
mov eax, 0xffffffff
jmp 0x14000256f
mov r8, qword [rsp + 0xdf8]
mov edx, 0x400
lea rcx, [rsp + 0x110]
call fcn.140014f00
test rax, rax
je 0x1400024f3
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x110]
call fcn.1400118a0
test rax, rax
je 0x1400024f1
mov dword [rsp + 0xd34], 1
jmp 0x1400024f3
jmp 0x1400024ae
mov rcx, qword [rsp + 0xdf8]
call fcn.140014e00
cmp dword [rsp + 0xd34], 0
jne 0x14000256d
lea rdx, [0x1400b619c]
mov rcx, qword [rsp + 0xe30]
call fcn.1400156c0
mov qword [rsp + 0xdf8], rax
mov rdx, qword [rsp + 0xdf8]
lea rcx, [0x1400b61bc]
call fcn.1400157e0
mov rdx, qword [rsp + 0xdf8]
lea rcx, [rsp + 0x28]
call fcn.1400157e0
mov rdx, qword [rsp + 0xdf8]
lea rcx, [0x1400b61d4]
call fcn.1400157e0
mov rcx, qword [rsp + 0xdf8]
call fcn.140014e00
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1400971b0]
call fcn.1400105f0
mov rax, rdi
mov rcx, qword [rsp + 0xe08]
xor rcx, rsp
call fcn.140010950
add rsp, 0xe18
pop rdi
pop rsi
ret
Function at 0x140003010
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
jmp 0x140003010
push rdi
sub rsp, 0x70
mov rdi, rsp
mov ecx, 0x1c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0xffffffffffffffff
jne 0x140003042
jmp 0x1400030ce
mov r8d, 0x12c
mov edx, 0x2724
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x140003064
jmp 0x1400030ce
mov rdx, qword [rsp + 0x68]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x38], eax
mov rdx, qword [rsp + 0x68]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x140003091
jmp 0x1400030ce
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x1400030ab
jmp 0x1400030ce
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsp
lea rdx, [0x1400973b0]
call fcn.1400105f0
add rsp, 0x70
pop rdi
ret
Function at 0x1400030f0
Capabilities:
Link many functions at runtime

Disassembly:
push rdi
sub rsp, 0x20
mov rdi, rsp
mov ecx, 8
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
call fcn.14000119a
test eax, eax
je 0x1400032c9
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x1400bb9b0], rax
cmp qword [0x1400bb9b0], 0
jne 0x140003151
lea r8, str.loading_DLL_advapi32.dll_failed_n
lea rdx, [0x1400b66d4]
lea rcx, [0x1400b7aa8]
call fcn.140001118
xor eax, eax
jmp 0x1400032ce
lea rdx, str.OpenSCManagerA
mov rcx, qword [0x1400bb9b0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400bb9c8], rax
lea rdx, str.OpenServiceA
mov rcx, qword [0x1400bb9b0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400bb9d0], rax
lea rdx, str.ChangeServiceConfigA
mov rcx, qword [0x1400bb9b0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400bb9d8], rax
lea rdx, str.CloseServiceHandle
mov rcx, qword [0x1400bb9b0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400bb9e0], rax
lea rdx, str.CreateServiceA
mov rcx, qword [0x1400bb9b0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400bb9e8], rax
lea rdx, str.DeleteService
mov rcx, qword [0x1400bb9b0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400bb9f0], rax
lea rdx, str.StartServiceA
mov rcx, qword [0x1400bb9b0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400bb9f8], rax
lea rdx, str.QueryServiceStatus
mov rcx, qword [0x1400bb9b0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400bba00], rax
lea rdx, str.ControlService
mov rcx, qword [0x1400bb9b0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400bba08], rax
cmp qword [0x1400bb9c8], 0
je 0x14000329e
cmp qword [0x1400bb9d0], 0
je 0x14000329e
cmp qword [0x1400bb9d8], 0
je 0x14000329e
cmp qword [0x1400bb9e0], 0
je 0x14000329e
cmp qword [0x1400bb9e8], 0
je 0x14000329e
cmp qword [0x1400bb9f0], 0
je 0x14000329e
cmp qword [0x1400bb9f8], 0
je 0x14000329e
cmp qword [0x1400bba00], 0
je 0x14000329e
cmp qword [0x1400bba08], 0
jne 0x1400032c9
mov rcx, qword [0x1400bb9b0]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea r8, str.loading_exported_functions_of_advapi32.dll_failed
lea rdx, [0x1400b6724]
lea rcx, str.usb_service_load_dll
call fcn.140001118
xor eax, eax
jmp 0x1400032ce
mov eax, 1
add rsp, 0x20
pop rdi
ret
Function at 0x140003a40
Capabilities:
Get token membership

Disassembly:
push rdi
sub rsp, 0xd0
mov rdi, rsp
mov ecx, 0x34
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1400b9920]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov byte [rsp + 0x84], 0
mov byte [rsp + 0x85], 0
mov byte [rsp + 0x86], 0
mov byte [rsp + 0x87], 0
mov byte [rsp + 0x88], 0
mov byte [rsp + 0x89], 5
cmp dword [0x1400bb98c], 0
jne 0x140003aa8
call fcn.140004c60
xor eax, eax
test eax, eax
jne 0x140003a9a
cmp dword [0x1400bb98c], 3
jg 0x140003ac1
mov eax, 1
jmp 0x140003b58
lea rax, [rsp + 0xa8]
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 + 0x84]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x64], 0
je 0x140003b54
lea r8, [rsp + 0x64]
mov rdx, qword [rsp + 0xa8]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x140003b46
mov dword [rsp + 0x64], 0
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rsp + 0x64]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x140097560]
call fcn.1400105f0
mov rax, rdi
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140010950
add rsp, 0xd0
pop rdi
ret

Function at 0x140004c60
Capabilities:
Check os version

Disassembly:
push rdi
sub rsp, 0xf0
mov rdi, rsp
mov ecx, 0x3c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1400b9920]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov r8d, 0x94
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.140010980
mov dword [rsp + 0x30], 0x94
mov dword [0x1400bb98c], 1
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x140004d39
cmp dword [rsp + 0x40], 2
jne 0x140004d39
cmp dword [rsp + 0x34], 5
jne 0x140004cde
cmp dword [rsp + 0x38], 0
jne 0x140004cde
mov dword [0x1400bb98c], 2
jmp 0x140004d39
cmp dword [rsp + 0x34], 5
jne 0x140004cf8
cmp dword [rsp + 0x38], 1
jne 0x140004cf8
mov dword [0x1400bb98c], 3
jmp 0x140004d39
cmp dword [rsp + 0x34], 5
jne 0x140004d12
cmp dword [rsp + 0x38], 2
jne 0x140004d12
mov dword [0x1400bb98c], 4
jmp 0x140004d39
cmp dword [rsp + 0x34], 6
jb 0x140004d39
cmp dword [rsp + 0x3c], 0x1b58
jae 0x140004d2f
mov dword [0x1400bb98c], 5
jmp 0x140004d39
mov dword [0x1400bb98c], 6
mov rcx, rsp
lea rdx, [0x140097770]
call fcn.1400105f0
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140010950
add rsp, 0xf0
pop rdi
ret

Function at 0x140009da0
Capabilities:
Accept command line arguments

Disassembly:
jmp 0x140009da0
push rdi
sub rsp, 0x20
mov rdi, rsp
mov ecx, 8
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov r9d, 1
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.1400010b9
add rsp, 0x20
pop rdi
ret
Function at 0x14000a6f0
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x14000a6f0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x90
mov rdi, rsp
mov ecx, 0x24
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xa0]
mov qword [rsp + 0x38], 0
mov eax, dword [rsp + 0xb8]
mov dword [rsp + 0x74], eax
mov dword [rsp + 0x84], 0
movsxd rax, dword [rsp + 0xb8]
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0xb0]
call fcn.140010980
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, qword [rsp + 0xa0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14000a823
lea rax, [rsp + 0x74]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x54]
xor r8d, r8d
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14000a823
cmp dword [rsp + 0x54], 1
jne 0x14000a818
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
movsx eax, byte [rax]
test eax, eax
je 0x14000a818
mov rax, qword [rsp + 0x88]
movsx eax, byte [rax]
cmp eax, 0x2c
jne 0x14000a803
mov rax, qword [rsp + 0x88]
mov byte [rax], 0
mov rax, qword [rsp + 0x88]
inc rax
mov qword [rsp + 0x88], rax
jmp 0x14000a7d9
mov dword [rsp + 0x84], 1
cmp qword [rsp + 0x38], 0
je 0x14000a836
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x84]
mov edi, eax
mov rcx, rsp
lea rdx, [0x140098688]
call fcn.1400105f0
mov eax, edi
add rsp, 0x90
pop rdi
ret
Function at 0x14000a860
Capabilities:
Delete registry value
Set registry value

Disassembly:
jmp 0x14000a860
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov rdi, rsp
mov ecx, 0x14
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x44], 0
call fcn.14000119a
test eax, eax
jne 0x14000a8ed
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
movsx eax, byte [rax]
test eax, eax
je 0x14000a8ed
mov rax, qword [rsp + 0x48]
movsx eax, byte [rax + 1]
test eax, eax
je 0x14000a8ed
mov rax, qword [rsp + 0x48]
movsx eax, byte [rax]
test eax, eax
jne 0x14000a8de
mov rax, qword [rsp + 0x48]
mov byte [rax], 0x2c
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
jmp 0x14000a8b1
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 0x14000a9b8
cmp dword [rsp + 0x78], 2
jle 0x14000a99c
call fcn.14000119a
test eax, eax
je 0x14000a963
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 0x14000a961
mov dword [rsp + 0x44], 1
jmp 0x14000a99a
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 0x14000a99a
mov dword [rsp + 0x44], 1
jmp 0x14000a9b8
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x14000a9b8
mov dword [rsp + 0x44], 1
cmp qword [rsp + 0x38], 0
je 0x14000a9cb
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x44]
mov edi, eax
mov rcx, rsp
lea rdx, [0x1400987a0]
call fcn.1400105f0
mov eax, edi
add rsp, 0x50
pop rdi
ret
Function at 0x14000c7c0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
jmp 0x14000c7c0
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x4b0
mov rdi, rsp
mov ecx, 0x12c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x4c0]
mov rax, qword [0x1400b9920]
xor rax, rsp
mov qword [rsp + 0x4a8], rax
mov qword [rsp + 0x428], 0
call fcn.14000119a
test eax, eax
je 0x14000c819
lea rax, [0x1400b8468]
mov qword [rsp + 0x40], rax
jmp 0x14000c825
lea rax, str.SYSTEMCurrentControlSetServicesClass_
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14000ca42
mov dword [rsp + 0x454], 0
mov dword [rsp + 0x464], 0x104
mov r8d, 0x104
xor edx, edx
lea rcx, [rsp + 0xa0]
call fcn.140010980
lea rax, [rsp + 0x488]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x464]
lea r8, [rsp + 0xa0]
mov edx, dword [rsp + 0x454]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x14000ca37
lea rcx, [rsp + 0xa0]
call fcn.140011610
mov rcx, qword [rsp + 0x40]
call fcn.14000f290
mov qword [rsp + 0x4a0], rax
lea rcx, [rsp + 0xa0]
call fcn.14000f290
mov rcx, qword [rsp + 0x4a0]
add rcx, rax
mov rax, rcx
cmp rax, 0x104
jae 0x14000ca02
mov r8d, 0x104
xor edx, edx
lea rcx, [rsp + 0x1d0]
call fcn.140010980
lea r9, [rsp + 0xa0]
mov r8, qword [rsp + 0x40]
lea rdx, [0x1400b84bc]
lea rcx, [rsp + 0x300]
call fcn.140016530
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, [rsp + 0x300]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14000ca02
mov dword [rsp + 0x464], 0x104
lea rax, [rsp + 0x464]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x1d0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x444]
xor r8d, r8d
lea rdx, str.Class
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0x28], 1
lea rax, [rsp + 0x428]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xa0]
lea r8, [rsp + 0x1d0]
lea rdx, [rsp + 0x300]
mov rcx, qword [rsp + 0x4c0]
call fcn.140001186
mov r8d, 0x104
xor edx, edx
lea rcx, [rsp + 0xa0]
call fcn.140010980
mov dword [rsp + 0x464], 0x104
mov eax, dword [rsp + 0x454]
inc eax
mov dword [rsp + 0x454], eax
jmp 0x14000c87d
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov edi, eax
mov rcx, rsp
lea rdx, [0x140099078]
call fcn.1400105f0
mov eax, edi
mov rcx, qword [rsp + 0x4a8]
xor rcx, rsp
call fcn.140010950
add rsp, 0x4b0
pop rdi
ret
Function at 0x14000dba0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
mov rdi, rsp
mov ecx, 0x1c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x80]
mov dword [rsp + 0x54], 0x103
mov rax, qword [rsp + 0x80]
add rax, 0x314
lea rcx, [rsp + 0x54]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, [0x1400b84d0]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x14000dc2a
mov rax, qword [rsp + 0x80]
add rax, 0x314
mov r8d, 0x104
xor edx, edx
mov rcx, rax
call fcn.140010980
mov dword [rsp + 0x54], 0x103
mov rax, qword [rsp + 0x80]
add rax, 0x418
lea rcx, [rsp + 0x54]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, [0x1400b84e0]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x14000dc8e
mov rax, qword [rsp + 0x80]
add rax, 0x418
mov r8d, 0x104
xor edx, edx
mov rcx, rax
call fcn.140010980
mov eax, 1
mov edi, eax
mov rcx, rsp
lea rdx, [0x1400997e8]
call fcn.1400105f0
mov eax, edi
add rsp, 0x70
pop rdi
ret

Function at 0x14000dcc0
Capabilities:
Delete registry value

Disassembly:
jmp 0x14000dcc0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rdi, rsp
mov ecx, 0x10
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x50]
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 0x14000dd67
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x14000dd5c
mov r8, qword [rsp + 0x60]
lea rdx, str.removed__s_from_device_registry.._n
lea rcx, str.usb_registry_remove_device_regvalue
call fcn.140001069
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x14000dd69
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add rsp, 0x40
pop rdi
ret
Function at 0x140006870
Capabilities:
Log keystrokes via polling

Disassembly:
jmp 0x14000c0f0
sub rsp, 0x98
mov rax, qword [0x140059040]
xor rax, rsp
mov qword [rsp + 0x70], rax
cmp byte [0x14005cd5e], 1
jne 0x14000c34f
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, dword [0x14005cd84]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x14000c34f
mov eax, dword [0x14005cd70]
lea r8, [rsp + 0x48]
mov rcx, qword [0x14005cd90]
mov edx, 0x22199c
mov dword [rsp + 0x48], eax
mov rax, qword [0x14005cd88]
add rax, 0x15a4
mov qword [rsp + 0x80], r15
mov qword [rsp + 0x50], rax
xor r15d, r15d
mov qword [rsp + 0x38], r15
lea rax, [rsp + 0x68]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x20
lea r9d, [r15 + 0x20]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x60], 4
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp dword [rsp + 0x68], r15d
jle 0x14000c347
mov qword [rsp + 0xa0], rbx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0xa8], rbp
mov qword [rsp + 0xb0], rsi
mov qword [rsp + 0x90], rdi
mov qword [rsp + 0x88], r14
call fcn.140007600
mov rbx, qword [rsp + 0x40]
movabs rbp, 0x7ffffffffffe795e
movabs rdi, 0x7fffffffffffffff
cmp rbx, rbp
jg 0x14000c208
add rbx, 0x186a0
jmp 0x14000c20b
mov rbx, rdi
movabs rsi, 0x4e94914effff
movabs r14, 0x431bde82d7b634db
nop
lea rcx, [rsp + 0x40]
call fcn.140007600
mov rax, qword [rsp + 0x40]
cmp rbx, rax
je 0x14000c279
jl 0x14000c279
mov rcx, rbx
sub rcx, rax
cmp rcx, rsi
jg 0x14000c26d
mov rax, r14
imul rcx
sar rdx, 0x12
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul rax, rdx, 0xf4240
cmp rax, rcx
jge 0x14000c264
inc rdx
mov ecx, edx
call sub.KERNEL32.dll_Sleep
jmp 0x14000c220
mov ecx, 0x5265c00
call sub.KERNEL32.dll_Sleep
jmp 0x14000c220
xor edx, edx
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 2]
call qword [sym.imp.USER32.dll_mouse_event]
lea rcx, [rsp + 0x40]
call fcn.140007600
mov rax, qword [rsp + 0x40]
mov rbx, qword [rsp + 0xa0]
cmp rax, rbp
mov rbp, qword [rsp + 0xa8]
jg 0x14000c2c0
lea rdi, [rax + 0x186a0]
nop word [rax + rax]
lea rcx, [rsp + 0x40]
call fcn.140007600
mov rax, qword [rsp + 0x40]
cmp rdi, rax
je 0x14000c319
jl 0x14000c319
mov rcx, rdi
sub rcx, rax
cmp rcx, rsi
jg 0x14000c30d
mov rax, r14
imul rcx
sar rdx, 0x12
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul rax, rdx, 0xf4240
cmp rax, rcx
jge 0x14000c304
inc rdx
mov ecx, edx
call sub.KERNEL32.dll_Sleep
jmp 0x14000c2c0
mov ecx, 0x5265c00
call sub.KERNEL32.dll_Sleep
jmp 0x14000c2c0
xor edx, edx
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 4]
call qword [sym.imp.USER32.dll_mouse_event]
mov r14, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x90]
mov rsi, qword [rsp + 0xb0]
mov r15, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400470c0
add rsp, 0x98
ret