joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002420
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rbx
sub rsp, 0x50
lea rax, [rsp + 0x78]
lea rdx, [0x140006020]
xor ebx, ebx
mov r9d, 0xf013f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x68], 4
mov dword [rsp + 0x60], ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
xor r9d, r9d
test eax, eax
jne 0x140002494
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x68]
lea rdx, str.LOCAL_Value
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1400024d4
lea ebx, [rax + 1]
jmp 0x140002509
lea rax, [rsp + 0x70]
lea rdx, [0x140006020]
xor r8d, r8d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x78]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x20106
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x140002509
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x60]
lea rdx, str.LOCAL_Value
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x60], 2
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140002519
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x50
pop rbx
ret

Function at 0x140002530
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x38
call fcn.140002420
test eax, eax
je 0x140002544
xor eax, eax
add rsp, 0x38
ret
lea rcx, [0x140006b70]
xor edx, edx
mov r8d, 0xfa0
call sub.MSVCR90.dll_memset
lea rdx, str._c_netsh_advfirewall_firewall_add_rule_name_BranchCache
lea rcx, [0x140006b70]
call qword [sym.imp.MSVCR90.dll__swprintf]
xor r11d, r11d
lea r9, [0x140006b70]
mov dword [rsp + 0x28], r11d
lea r8, [0x140004778]
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], r11
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
add rsp, 0x38
ret
Function at 0x1400025b0
Capabilities:
Create process on windows
Delete file
Get common file path
Set registry value

Disassembly:
push rbx
sub rsp, 0x490
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x480], rax
lea rcx, [rsp + 0x261]
xor ebx, ebx
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x260], bl
call sub.MSVCR90.dll_memset
lea rcx, [rsp + 0x41]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x40], bl
call sub.MSVCR90.dll_memset
lea rcx, [rsp + 0x260]
mov dword [rsp + 0x30], ebx
call fcn.140002290
test eax, eax
je 0x14000276f
call fcn.140002530
lea r11, [rsp + 0x38]
lea rdx, [0x140006020]
mov r9d, 0xf013f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400026d1
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x104
call sub.MSVCR90.dll_memset
lea r8, [rsp + 0x260]
lea rdx, str._c_netsh_advfirewall_firewall_set_rule_name_BranchCache
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCR90.dll_sprintf]
lea r9, [rsp + 0x40]
lea r8, [0x1400047f8]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea rdx, str.LOCAL_Value
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x30], 2
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, 1
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400026e1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x371]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x370], 0
call sub.MSVCR90.dll_memset
lea rcx, [rsp + 0x151]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x150], 0
call sub.MSVCR90.dll_memset
lea rdx, [rsp + 0x150]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
lea r9, str.ssdx64.exe
lea r8, [rsp + 0x150]
lea rdx, [0x14000480c]
lea rcx, [rsp + 0x370]
call qword [sym.imp.MSVCR90.dll_sprintf]
lea rcx, [rsp + 0x370]
call qword [sym.imp.MSVCR90.dll_remove]
lea rcx, str.c:windows_temp_rerx.exe
call qword [sym.imp.MSVCR90.dll_remove]
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.1400027b0
add rsp, 0x490
pop rbx
ret
Function at 0x140002b5b
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [section..data]
jne 0x1400027ca
rol rcx, 0x10
test cx, 0xffff
jne 0x1400027c6
repz ret
ror rcx, 0x10
jmp 0x140002ab4
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140006350]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x140006448]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140002b39
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140006350]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140002b5b
mov rax, qword [rsp + 0x88]
mov qword [0x140006448], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1400063e8], rax
mov rax, qword [0x140006448]
mov qword [0x1400062c0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1400063d0], rax
mov dword [0x1400062b0], 0xc0000409
mov dword [0x1400062b4], 1
mov rax, qword [section..data]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140006008]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140006348], eax
mov ecx, 1
call sub.MSVCR90.dll___crt_debugger_hook
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140004330]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140006348], 0
jne 0x140002be2
mov ecx, 1
call sub.MSVCR90.dll___crt_debugger_hook
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x1800034b0
Capabilities:
Get common file path

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x30
xor edi, edi
mov rbx, rcx
lea rcx, [rbp + 0x38]
mov qword [rbp + 0x38], rdi
mov qword [rbp - 8], rdi
mov qword [rbp + 0x30], rdi
mov qword [rbp + 0x28], rdi
mov qword [rbp + 0x20], rdi
call fcn.180007340
mov rdx, qword [rbp + 0x38]
lea rcx, [rbp + 0x30]
call fcn.180006420
lea r9, [rbp - 0x10]
lea rcx, [0x1800317c8]
xor r8d, r8d
xor edx, edx
mov qword [rbp - 0x10], rdi
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jne 0x180003513
mov rdx, qword [rbp - 0x10]
mov rcx, rbx
call fcn.180006110
lea rdx, str.BrightData_
mov rcx, rbx
call fcn.180006230
mov rcx, qword [rbp + 0x30]
or rdx, 0xffffffffffffffff
nop word [rax + rax]
inc rdx
cmp byte [rcx + rdx], dil
jne 0x180003530
lea r8, [rbp + 0x28]
call fcn.180007bc0
test eax, eax
jne 0x180003578
mov rdx, qword [rbp + 0x28]
lea r8d, [rax + 0x14]
lea rcx, [rbp + 0x20]
call fcn.180007f80
mov rcx, qword [rbp + 0x20]
call fcn.180006000
mov rdx, qword [rbp + 0x20]
lea rcx, [rbp - 8]
call fcn.180006310
mov rcx, rbx
mov rdx, qword [rax]
call fcn.180006230
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x18000358a
call fcn.180009de8
mov qword [rbp + 0x28], rdi
mov rcx, qword [rbp + 0x20]
test rcx, rcx
je 0x18000359c
call fcn.180009de8
mov qword [rbp + 0x20], rdi
mov rcx, qword [rbp + 0x30]
test rcx, rcx
je 0x1800035ae
call fcn.180009de8
mov qword [rbp + 0x30], rdi
lea rcx, [rbp - 8]
call fcn.1800060c0
lea rcx, [rbp + 0x38]
call fcn.1800060c0
mov rax, rbx
add rsp, 0x30
pop rdi
pop rbx
pop rbp
ret
Function at 0x1800037d0
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x290
mov rax, qword [0x18003f1b0]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor ebp, ebp
lea rcx, [rsp + 0x28]
mov ebx, ebp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
call fcn.180007340
lea rdx, str.luminati
lea rcx, [rsp + 0x28]
call fcn.180006230
cmp dword [section..data], ebx
je 0x18000383d
mov rcx, qword [rsp + 0x28]
call fcn.180006fb0
test eax, eax
jne 0x18000383d
lea rcx, [rsp + 0x28]
call fcn.1800034b0
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x20]
call fcn.180006110
lea rdx, [0x1800305d8]
lea rcx, [rsp + 0x20]
call fcn.180006230
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
mov rsi, rax
cmove rsi, rbp
test rsi, rsi
je 0x180003993
mov qword [rsp + 0x2a0], rdi
nop dword [rax]
lea rdx, [0x180030600]
lea rcx, [rsp + 0x5c]
call fcn.180006200
test rax, rax
jne 0x180003917
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x20]
call fcn.180006110
lea rdx, [0x1800305d4]
lea rcx, [rsp + 0x20]
call fcn.180006230
lea rdx, [rsp + 0x5c]
lea rcx, [rsp + 0x20]
call fcn.180006230
mov edx, 1
lea ecx, [rdx + 0x17]
call fcn.180009da4
mov rdx, qword [rsp + 0x20]
lea rcx, [rax + 0x10]
mov rdi, rax
call fcn.180006110
test rbx, rbx
je 0x18000390d
mov rcx, qword [rbx + 8]
mov qword [rdi + 8], rcx
mov qword [rbx + 8], rdi
mov rcx, qword [rdi + 8]
mov qword [rcx], rdi
jmp 0x180003914
mov qword [rdi + 8], rdi
mov rbx, rdi
mov qword [rdi], rbp
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x180003890
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
test rbx, rbx
je 0x18000398b
nop dword [rax + rax]
mov rcx, qword [rbx + 0x10]
call fcn.180009f28
mov rdi, rbx
mov rbx, qword [rbx]
mov rcx, qword [rdi]
test rcx, rcx
je 0x180003961
mov rax, qword [rdi + 8]
mov qword [rcx + 8], rax
jmp 0x18000396e
test rbx, rbx
je 0x18000396e
mov rax, qword [rdi + 8]
mov qword [rbx + 8], rax
lea rcx, [rdi + 0x10]
mov qword [rdi], rbp
mov qword [rdi + 8], rbp
call fcn.1800060c0
mov rcx, rdi
call fcn.180009de8
test rbx, rbx
jne 0x180003940
mov rdi, qword [rsp + 0x2a0]
lea rcx, [rsp + 0x20]
call fcn.1800060c0
lea rcx, [rsp + 0x28]
call fcn.1800060c0
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.18000a0d0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsp, r11
pop rsi
ret
Function at 0x180003a60
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rax, qword [0x180040e18]
test rax, rax
jne 0x180003bab
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
call fcn.180007340
lea rdx, [0x1800307f0]
lea rcx, [rsp + 0x40]
call fcn.180006230
mov rcx, qword [rsp + 0x40]
call fcn.180006f30
test eax, eax
je 0x180003b86
mov rcx, qword [rsp + 0x40]
lea rdx, [0x18003080c]
call fcn.180006e90
mov qword [rsp + 0x30], rax
test rax, rax
je 0x180003b86
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x20], rbx
lea r8d, [rdx + 2]
call fcn.180008ef8
mov rcx, qword [rsp + 0x30]
call fcn.180009280
mov rcx, qword [rsp + 0x30]
movsxd rbx, eax
call fcn.1800094f8
cmp ebx, 0x32
jg 0x180003b81
lea rcx, [rsp + 0x38]
mov edx, ebx
call fcn.180005e50
mov r9, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov r8, rbx
mov edx, 1
call fcn.180008d84
mov rax, qword [rsp + 0x38]
mov byte [rbx + rax], 0
mov rdx, qword [rsp + 0x38]
test rbx, rbx
jle 0x180003b75
mov r9, rdx
mov r8, rdx
movabs r10, 0x21ffffff80ffd
neg r9
nop dword [rax + rax]
movzx ecx, byte [r8]
lea eax, [rcx - 0x2e]
cmp al, 0x31
ja 0x180003b61
bt r10, rax
jb 0x180003b69
sub cl, 0x61
cmp cl, 0x19
ja 0x180003b81
inc r8
lea rax, [r9 + r8]
cmp rax, rbx
jl 0x180003b50
lea rcx, [0x180040e18]
call fcn.180006310
mov rbx, qword [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.180006f00
lea rcx, [rsp + 0x38]
call fcn.180005e90
lea rcx, [rsp + 0x40]
call fcn.1800060c0
mov rax, qword [0x180040e18]
add rsp, 0x28
ret

Function at 0x180003ea0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov r14, r8
lea r8, str.BINARY
movzx edx, dx
mov ebx, r9d
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
jne 0x180003ee5
imul eax, ebx, 0x64
inc eax
mov dword [0x18004086c], eax
xor eax, eax
jmp 0x180003f43
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x180003f06
imul eax, ebx, 0x64
add eax, 2
mov dword [0x18004086c], eax
xor eax, eax
jmp 0x180003f43
mov rcx, rax
mov qword [rsp + 0x30], rdi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
jne 0x180003f2c
imul eax, ebx, 0x64
add eax, 3
mov dword [0x18004086c], eax
xor eax, eax
jmp 0x180003f3e
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [r14], eax
mov rax, rdi
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x180004030
Capabilities:
Move file
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x40
imul edi, r9d, 0x64
mov rbx, r8
lea r8, [rbp + 0x38]
lea r9d, [rdi + 1]
or esi, 0xffffffff
mov qword [rbp - 0x10], 0
call fcn.180003ea0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0
mov r14, rax
test rax, rax
je 0x1800041bf
lea rcx, [rbp - 0x20]
call fcn.180007340
lea rdx, str.luminati
lea rcx, [rbp - 0x20]
call fcn.180006230
cmp dword [section..data], 0
je 0x1800040b8
mov rcx, qword [rbp - 0x20]
call fcn.180006fb0
test eax, eax
jne 0x1800040b8
lea rcx, [rbp - 0x20]
call fcn.1800034b0
lea rdx, [0x1800305fc]
lea rcx, [rbp - 0x20]
call fcn.180006230
lea rcx, [rbp - 0x20]
mov rdx, rbx
call fcn.180006230
mov rdx, qword [rbp - 0x20]
lea rcx, [rbp - 0x18]
call fcn.180006110
lea rdx, str..old
lea rcx, [rbp - 0x18]
call fcn.180006230
mov rcx, qword [rbp - 0x18]
call fcn.180009f28
mov rcx, qword [rbp - 0x20]
call fcn.180006f30
movsxd rbx, dword [rbp + 0x38]
test eax, eax
je 0x18000415d
mov rcx, qword [rbp - 0x20]
mov r8d, ebx
mov rdx, r14
call fcn.180003f60
test eax, eax
jne 0x1800041bd
mov rcx, qword [rbp - 0x20]
call fcn.180009f28
mov rcx, qword [rbp - 0x20]
call fcn.180006f30
test eax, eax
je 0x180004145
mov rdx, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x20]
call fcn.180009f30
mov rcx, qword [rbp - 0x20]
call fcn.180006f30
test eax, eax
je 0x18000415d
lea eax, [rdi + 2]
mov dword [0x18004086c], eax
jmp 0x1800041bf
mov rcx, qword [rbp - 0x20]
lea rdx, [0x180030928]
call fcn.180006e90
mov qword [rbp - 0x10], rax
test rax, rax
jne 0x18000419a
mov rcx, qword [rbp - 0x20]
lea rdx, [0x180030938]
call fcn.180006e90
mov qword [rbp - 0x10], rax
test rax, rax
jne 0x18000419a
lea eax, [rdi + 3]
mov dword [0x18004086c], eax
jmp 0x1800041bf
mov r9, rax
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.180009468
cmp rax, rbx
je 0x1800041bd
lea eax, [rdi + 4]
mov dword [0x18004086c], eax
jmp 0x1800041bf
xor esi, esi
lea rcx, [rbp - 0x20]
call fcn.1800060c0
lea rcx, [rbp - 0x18]
call fcn.1800060c0
lea rcx, [rbp - 0x10]
call fcn.180006f00
mov rbx, qword [rsp + 0x60]
mov eax, esi
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
Function at 0x180004e70
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, rcx
xor ebx, ebx
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rbx
call fcn.180006230
lea rdx, str.kbasnthasciateuhant98437uau
lea rcx, [rsp + 0x38]
call fcn.180006230
mov rcx, qword [rsp + 0x38]
call fcn.180009f28
xor ecx, ecx
call fcn.180009d68
mov rcx, qword [rsp + 0x38]
lea rdx, str.rbe
call fcn.180006e90
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x180004ef3
mov rcx, qword [rsp + 0x38]
lea rdx, str.wbe
call fcn.180006e90
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x180004ef3
call fcn.180009c44
imul ebx, dword [rax], 0x64
inc ebx
jmp 0x180004f24
xor ecx, ecx
call fcn.180009d68
mov r9, qword [rsp + 0x40]
mov edx, 1
lea rcx, [0x180030644]
mov r8d, edx
call fcn.180009468
cmp rax, 1
je 0x180004f24
call fcn.180009c44
imul ebx, dword [rax], 0x64
add ebx, 2
lea rcx, [rsp + 0x40]
call fcn.180006f00
mov rcx, qword [rsp + 0x38]
call fcn.180009f28
lea rcx, [rsp + 0x38]
call fcn.1800060c0
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x180006a00
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push rdi
push r14
push r15
sub rsp, 0x68
mov r14, rcx
mov rcx, qword [r8]
mov ebp, edx
mov edx, 2
mov rdi, r8
call fcn.18000c208
xor r15d, r15d
xor r9d, r9d
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x48], r15
mov qword [rdi], rax
mov qword [rsp + 0x40], r15
mov word [rax], r15w
mov qword [rsp + 0x38], r15
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xa8]
xor r8d, r8d
xor edx, edx
mov rcx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x180006a85
or eax, 0xffffffff
add rsp, 0x68
pop r15
pop r14
pop rdi
pop rbp
ret
cmp dword [rsp + 0xa8], ebp
jg 0x180006a9e
mov eax, 1
add rsp, 0x68
pop r15
pop r14
pop rdi
pop rbp
ret
mov qword [rsp + 0x90], rbx
mov ebx, dword [rsp + 0xa0]
xor ecx, ecx
inc ebx
mov qword [rsp + 0x60], rsi
lea eax, [rbx + 1]
mov dword [rsp + 0xa0], ebx
movsxd rdx, eax
add rdx, rdx
call fcn.18000c208
mov qword [rsp + 0x38], r15
movsxd rcx, ebx
mov word [rax], r15w
mov word [rax + rcx*2], r15w
mov qword [rsp + 0x30], r15
lea r9, [rsp + 0xa0]
mov rcx, r14
mov r8, rax
mov edx, ebp
mov qword [rsp + 0x28], r15
mov rsi, rax
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov rbx, qword [rsp + 0x90]
test eax, eax
je 0x180006b23
or eax, 0xffffffff
mov rsi, qword [rsp + 0x60]
add rsp, 0x68
pop r15
pop r14
pop rdi
pop rbp
ret
mov rcx, qword [rdi]
test rcx, rcx
je 0x180006b33
call fcn.180009de8
mov qword [rdi], r15
mov qword [rdi], rsi
mov rsi, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x68
pop r15
pop r14
pop rdi
pop rbp
ret
Function at 0x180006c80
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov r15, r8
xor ebx, ebx
lea r8, [0x180031eb4]
mov rsi, r9
or edi, 0xffffffff
mov ebp, ebx
mov dword [rsp + 0x60], ebx
call fcn.180006760
mov r14, rax
test rax, rax
je 0x180006d33
lea rax, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, r15
mov rcx, r14
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x180006d33
mov ecx, dword [rsp + 0x60]
add rcx, 2
call fcn.18000c150
lea r9, [rsp + 0x78]
xor r8d, r8d
mov rbx, rax
mov byte [rax], bpl
mov eax, dword [rsp + 0x60]
mov byte [rax + rbx], bpl
mov eax, dword [rsp + 0x60]
mov rdx, r15
inc eax
mov rcx, r14
mov byte [rax + rbx], bpl
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x180006d33
cmp dword [rsp + 0x78], 4
jne 0x180006d33
mov ebp, dword [rbx]
test rsi, rsi
je 0x180006d3a
mov dword [rsi], edi
mov rcx, rbx
call fcn.180009de8
mov rbx, qword [rsp + 0x68]
mov eax, ebp
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x180007010
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
push rbx
push rsi
sub rsp, 0xa8
mov rax, qword [0x18003f1b0]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov qword [r11 - 0x18], rdi
mov qword [r11 - 0x20], r12
mov qword [r11 - 0x28], r13
mov qword [r11 - 0x30], r14
or ebx, 0xffffffff
xor r13d, r13d
mov rdi, rcx
mov qword [r11 - 0x38], r15
mov r12d, r8d
mov r10d, r13d
mov r14, rdx
movsxd r15, r9d
lea rcx, [0x180031eb8]
nop dword [rax + rax]
movzx eax, word [r10 + rcx]
lea r10, [r10 + 2]
mov word [rsp + r10 + 0x56], ax
test ax, ax
jne 0x180007060
lea rcx, [rsp + 0x58]
mov qword [rsp + 0xd8], rbp
call fcn.180006de0
lea rdx, [rsp + 0x58]
mov rcx, rdi
call fcn.180008200
mov rsi, rax
test rax, rax
je 0x18000716c
mov rcx, rax
call fcn.18000cb9c
lea rdx, [rsp + 0x20]
mov ecx, eax
mov ebp, eax
call fcn.18000cbc4
test eax, eax
jne 0x18000716c
lea eax, [r12*2 - 2]
mov r8d, 2
mov ecx, ebp
movsxd rdi, eax
cmp qword [rsp + 0x38], rdi
cmovl rdi, qword [rsp + 0x38]
mov rax, rdi
cqo
sub rax, rdx
mov rdx, rdi
sar rax, 1
neg rdx
mov rbx, rax
call fcn.18000cf90
lea rcx, [rdi + 2]
call fcn.18000c150
mov r9, rsi
mov r8, rdi
mov rcx, rax
mov edx, 1
mov qword [r14], rax
call fcn.180008d84
mov rax, qword [r14]
movsxd r8, ebx
mov word [rax + r8*2], r13w
cmp ebx, r15d
jle 0x180007167
mov rcx, qword [r14]
mov rax, r15
mov rdx, rcx
test r15, r15
je 0x180007167
cmp word [rdx], 0xa
je 0x180007145
add rdx, 2
dec rax
jne 0x180007131
mov ebx, r13d
jmp 0x18000717c
test rdx, rdx
je 0x180007167
mov rax, rdx
sub rax, rcx
sar rax, 1
sub r8, rax
cmp r8, r15
jle 0x180007167
add r8, r8
add rdx, 2
call fcn.18000b1f0
mov ebx, r13d
jmp 0x18000717c
mov rcx, qword [r14]
test rcx, rcx
je 0x18000717c
call fcn.180009de8
mov qword [r14], r13
mov r15, qword [rsp + 0x80]
mov r14, qword [rsp + 0x88]
mov r13, qword [rsp + 0x90]
mov r12, qword [rsp + 0x98]
mov rdi, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0xd8]
test rsi, rsi
je 0x1800071b9
mov rcx, rsi
call fcn.18000cb34
mov eax, ebx
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.18000a0d0
add rsp, 0xa8
pop rsi
pop rbx
ret
mov r9d, 0x400
jmp 0x180007010
Function at 0x1800071e0
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
push rbx
push rsi
sub rsp, 0xa8
mov rax, qword [0x18003f1b0]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov qword [r11 - 0x18], rdi
mov qword [r11 - 0x20], r12
mov qword [r11 - 0x28], r13
mov qword [r11 - 0x30], r14
or ebx, 0xffffffff
xor r13d, r13d
mov rdi, rcx
mov qword [r11 - 0x38], r15
mov r12d, r8d
mov r10d, r13d
mov r14, rdx
movsxd r15, r9d
lea rcx, [0x180031eb8]
nop dword [rax + rax]
movzx eax, word [r10 + rcx]
lea r10, [r10 + 2]
mov word [rsp + r10 + 0x56], ax
test ax, ax
jne 0x180007060
lea rcx, [rsp + 0x58]
mov qword [rsp + 0xd8], rbp
call fcn.180006de0
lea rdx, [rsp + 0x58]
mov rcx, rdi
call fcn.180008200
mov rsi, rax
test rax, rax
je 0x18000716c
mov rcx, rax
call fcn.18000cb9c
lea rdx, [rsp + 0x20]
mov ecx, eax
mov ebp, eax
call fcn.18000cbc4
test eax, eax
jne 0x18000716c
lea eax, [r12*2 - 2]
mov r8d, 2
mov ecx, ebp
movsxd rdi, eax
cmp qword [rsp + 0x38], rdi
cmovl rdi, qword [rsp + 0x38]
mov rax, rdi
cqo
sub rax, rdx
mov rdx, rdi
sar rax, 1
neg rdx
mov rbx, rax
call fcn.18000cf90
lea rcx, [rdi + 2]
call fcn.18000c150
mov r9, rsi
mov r8, rdi
mov rcx, rax
mov edx, 1
mov qword [r14], rax
call fcn.180008d84
mov rax, qword [r14]
movsxd r8, ebx
mov word [rax + r8*2], r13w
cmp ebx, r15d
jle 0x180007167
mov rcx, qword [r14]
mov rax, r15
mov rdx, rcx
test r15, r15
je 0x180007167
cmp word [rdx], 0xa
je 0x180007145
add rdx, 2
dec rax
jne 0x180007131
mov ebx, r13d
jmp 0x18000717c
test rdx, rdx
je 0x180007167
mov rax, rdx
sub rax, rcx
sar rax, 1
sub r8, rax
cmp r8, r15
jle 0x180007167
add r8, r8
add rdx, 2
call fcn.18000b1f0
mov ebx, r13d
jmp 0x18000717c
mov rcx, qword [r14]
test rcx, rcx
je 0x18000717c
call fcn.180009de8
mov qword [r14], r13
mov r15, qword [rsp + 0x80]
mov r14, qword [rsp + 0x88]
mov r13, qword [rsp + 0x90]
mov r12, qword [rsp + 0x98]
mov rdi, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0xd8]
test rsi, rsi
je 0x1800071b9
mov rcx, rsi
call fcn.18000cb34
mov eax, ebx
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.18000a0d0
add rsp, 0xa8
pop rsi
pop rbx
ret
mov r9d, 0x400
jmp 0x180007010

Function at 0x1800072b0
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rax, rdx
mov r14, rcx
test rdx, rdx
jne 0x1800072d6
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
movsxd rdi, dword [rsp + 0x30]
lea edx, [rdi + 1]
mov rsi, rax
movsxd rcx, edx
mov edx, 1
shl rcx, 3
call fcn.180009da4
mov r8, rdi
mov rdx, rsi
mov rcx, rax
shl r8, 3
mov rbx, rax
call fcn.18000b1f0
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov qword [r14], rbx
mov rbx, qword [rsp + 0x38]
mov rax, r14
add rsp, 0x20
pop r14
ret