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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400a3da0]
mov dword [rax], 1
mov rax, qword [0x1400a3db0]
mov dword [rax], 1
mov rax, qword [0x1400a3dc0]
mov dword [rax], 1
mov rax, qword [0x1400a3d30]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014d8
mov eax, 0
jmp 0x140001585
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 0x140001504
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000152a
cmp eax, 0x20b
je 0x140001551
jmp 0x140001580
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000153d
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001585
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000156c
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001585
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x1400057a0
Capabilities:
Query environment variable

Disassembly:
push r13
mov eax, 0x10078
push r12
call fcn.14008d460
sub rsp, rax
xor eax, eax
mov r8d, 0x28
mov rdx, rcx
lea r12, [rsp + 0x20]
xor ecx, ecx
mov word [rsp + 0x70], ax
mov word [rsp + 0x20], cx
lea r13, [rsp + 0x70]
mov rcx, r12
call fcn.14002b140
mov rdx, r13
mov r8d, 0x10000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x140005801
mov rcx, r13
call sub.msvcrt.dll__wcsdup
add rsp, 0x10078
pop r12
pop r13
ret

Function at 0x140005810
Capabilities:
Set environment variable

Disassembly:
push r13
push r12
sub rsp, 0x78
xor eax, eax
mov r8d, 0x28
lea r13, [rsp + 0x20]
mov r12, rdx
mov rdx, rcx
mov word [rsp + 0x20], ax
mov rcx, r13
call fcn.14002b140
mov rdx, r12
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x78
pop r12
pop r13
ret
Function at 0x1400058e0
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
sub rsp, 0x78
mov r15, rcx
mov r14, rdx
call fcn.140023d60
lea rdx, str.environ
mov rcx, rax
call qword [sym.imp.python310.dll_PyObject_GetAttrString]
mov rcx, r15
mov r12, rax
call qword [sym.imp.python310.dll_PyUnicode_FromString]
mov r13, rax
test r14, r14
je 0x140005994
mov rdx, r14
mov rcx, r15
call fcn.140005810
mov rcx, r14
mov rdx, 0xffffffffffffffff
call sub.python310.dll_PyUnicode_FromWideChar
mov rdx, r13
mov rcx, r12
mov r14, rax
mov r8, rax
call qword [sym.imp.python310.dll_PyObject_SetItem]
test eax, eax
jne 0x1400059d3
sub qword [r14], 1
jne 0x14000595d
mov rcx, r14
call fcn.140005850
sub qword [r13], 1
jne 0x14000596c
mov rcx, r13
call fcn.140005850
sub qword [r12], 1
jne 0x140005987
mov rcx, r12
add rsp, 0x78
pop r12
pop r13
pop r14
pop r15
jmp fcn.140005850
add rsp, 0x78
pop r12
pop r13
pop r14
pop r15
ret
lea r14, [rsp + 0x20]
mov r8d, 0x28
mov rdx, r15
mov word [rsp + 0x20], 0
mov rcx, r14
call fcn.14002b140
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, r13
mov rcx, r12
call qword [sym.imp.python310.dll_PyObject_DelItem]
test eax, eax
je 0x14000595d
call fcn.140005860
jmp 0x14000595d
mov ecx, 1
call qword [sym.imp.python310.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python310.dll_Py_Exit]
nop
nop word [rax + rax]
Function at 0x140084360
Capabilities:
Encode data using xor
Extract resource via kernel32 functions
Hash data with crc32

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp byte [0x1400b41a9], 0
mov r12, rcx
mov rdi, rdx
je 0x1400843e8
lea rdx, [0x1400a267a]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140084500
mov rsi, qword [0x1400b4068]
jmp 0x1400843a5
lea rsi, [rdx + rax + 4]
mov rdx, rsi
mov rcx, rdi
call sub.msvcrt.dll_strcmp
mov rcx, rsi
mov ebx, eax
call sub.msvcrt.dll_strlen
lea rdx, [rsi + rax + 1]
mov eax, dword [rdx]
test ebx, ebx
jne 0x1400843a0
movzx r8d, word [rdx + 4]
lea r9, [rdx + 6]
mov rcx, r12
mov rdx, r9
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp fcn.140071dd0
mov r8d, 0xa
mov edx, 3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [0x1400b4068], rax
mov rdx, rax
mov r9d, dword [rax]
lea rax, [rax + 4]
mov qword [0x1400b4068], rax
mov eax, dword [rdx + 4]
lea rcx, [rdx + 8]
mov qword [0x1400b4068], rcx
test eax, eax
je 0x1400844e8
sub eax, 1
lea r8, [rdx + rax + 9]
mov eax, 0xffffffff
nop word [rax + rax]
movzx edx, byte [rcx]
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
shr eax, 1
and edx, 1
add rcx, 1
neg edx
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor eax, edx
cmp r8, rcx
jne 0x140084450
not eax
cmp r9d, eax
jne 0x140084587
mov byte [0x1400b41a9], 1
jmp 0x140084378
cmp byte [0x1400b41a8], 0
jne 0x14008438f
mov rbx, qword [sym.imp.python310.dll_PyDict_New]
call rbx
mov qword [0x1400b4ac8], rax
call rbx
mov qword [0x1400b4ac0], rax
call rbx
mov qword [0x1400b4ab8], rax
call rbx
mov qword [0x1400b4ab0], rax
call rbx
mov qword [0x1400b4aa8], rax
call rbx
mov qword [0x1400b4aa0], rax
call rbx
mov qword [0x1400b4a98], rax
call rbx
mov byte [0x1400b41a8], 1
mov qword [0x1400b4a90], rax
mov rax, qword [sym.imp.python310.dll__PyRuntime]
mov rax, qword [rax + 0x1f0]
mov rax, qword [rax + 0x10]
add rax, 0xda0
mov qword [0x1400b4060], rax
jmp 0x14008438f
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x14008c160
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.140093e10
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.140093e10
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x14008ce12
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400b4f88]
test eax, eax
je 0x14008ceaa
lea rax, [0x1400b4f60]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400b4f90]
mov qword [rbp - 8], rax
jmp 0x14008ce8e
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 0x14008ce82
cmp qword [rbp - 0x10], 0
je 0x14008ce82
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 0x14008ce48
lea rax, [0x1400b4f60]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14008ceab
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14008cfb0
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 0x14008cfd8
mov eax, 0
jmp 0x14008d026
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 0x14008d001
mov eax, 0
jmp 0x14008d026
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 0x14008d021
mov eax, 0
jmp 0x14008d026
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14008d02c
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 0x14008d0aa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14008d0a1
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 0x14008d0a1
mov rax, qword [rbp - 8]
jmp 0x14008d0bf
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 0x14008d074
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x141483970
Capabilities:
Encode data using xor

Disassembly:
jmp 0x14148397a
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x1414839a3
pop rbp
sub rbp, 0x33
sub rbp, 0x1483970
sub rsp, 0x20
jmp 0x1414839c2
mov rax, 0x1483970
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0x7b08ad0
xor byte [rax], dl
inc rax
dec rcx
jne 0x1414839e1
jmp 0x1414839f8
cwde
pop rcx
cmp dword [rbx + 0x59], ebx
in al, dx
rcl al, 1
rcr byte [rax - 0x2e27eeaf], 1
rcl al, 1
cwde
sar dword [rcx], 1
cwde
invalid
Function at 0x140001070
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
push r15
mov rax, qword gs:[0x60]
mov r15d, edx
mov ebx, ecx
mov r8, qword [rax + 0x18]
mov r10, qword [r8 + 0x20]
mov r11, qword [r8 + 0x28]
cmp r10, r11
je 0x1400010f6
nop word [rax + rax]
mov rdx, qword [r10 + 0x50]
xor eax, eax
lea r8d, [rax + 0x35]
cmp word [rdx], ax
je 0x1400010e9
nop
inc eax
cmp word [rdx + rax*2], 0
jne 0x1400010c0
test eax, eax
je 0x1400010e9
mov r9d, eax
movzx eax, word [rdx]
lea rdx, [rdx + 2]
mov ecx, r8d
add r8d, eax
ror ecx, 0xf
add r8d, ecx
sub r9, 1
jne 0x1400010d0
cmp r8d, ebx
je 0x140001111
mov r10, qword [r10]
cmp r10, r11
jne 0x1400010b0
xor eax, eax
mov rbx, qword [rsp + 0x18]
mov rbp, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
pop r15
pop r14
ret
mov rsi, qword [r10 + 0x20]
xor r10d, r10d
movsxd rax, dword [rsi + 0x3c]
mov ecx, dword [rax + rsi + 0x88]
add rcx, rsi
mov r14d, dword [rcx + 0x1c]
mov r11d, dword [rcx + 0x20]
add r14, rsi
mov ebx, dword [rcx + 0x24]
add r11, rsi
mov ebp, dword [rcx + 0x18]
add rbx, rsi
test ebp, ebp
je 0x1400010f6
movzx eax, word [rbx]
xor ecx, ecx
mov edx, dword [r11]
add rdx, rsi
mov edi, dword [r14 + rax*4]
lea r8d, [rcx + 0x35]
add rdi, rsi
cmp byte [rdx], cl
je 0x140001189
nop dword [rax + rax]
inc ecx
cmp byte [rcx + rdx], 0
jne 0x140001160
test ecx, ecx
je 0x140001189
mov r9d, ecx
nop
movsx eax, byte [rdx]
lea rdx, [rdx + 1]
mov ecx, r8d
add r8d, eax
ror ecx, 0xf
add r8d, ecx
sub r9, 1
jne 0x140001170
cmp r8d, r15d
je 0x1400011a3
inc r10d
add r11, 4
add rbx, 2
cmp r10d, ebp
jb 0x140001141
jmp 0x1400010f6
mov rax, rdi
jmp 0x1400010f8

Function at 0x140001f40
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001f8a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001f8a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001f8a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001f8a
cmp dword [rcx + 0x84], 0xe
jbe 0x140001f8a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001f8c
xor al, al
add rsp, 0x28
ret
Function at 0x140001032
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 0x1400010dc
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 0x14000110e
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 0x14000113b
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