joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000a040
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r13, rcx
movabs rax, 0xfffffffffffffff
bsr rcx, rax
mov ebx, 1
mov eax, ebx
shl rax, cl
cmp rdx, rax
ja 0x18000a280
lea rax, [rdx - 1]
or rax, rbx
bsr rcx, rax
inc ecx
shl rbx, cl
mov rbp, qword [r13 + 8]
lea r12, [r13 + 0x18]
lea rdx, [rbx + rbx]
mov r8, rbp
mov rcx, r12
call fcn.180006f40
lea rax, [rbx - 1]
mov qword [r13 + 0x30], rax
mov qword [r13 + 0x38], rbx
mov qword [rsp + 0x68], r13
mov rdi, qword [r13 + 8]
mov rdi, qword [rdi]
mov rsi, rdi
cmp rdi, rbp
je 0x18000a262
movabs rax, 0xcbf29ce484222325
movabs r10, 0x100000001b3
nop dword [rax]
mov rsi, qword [rsi]
mov r15, qword [rdi + 0x20]
lea r8, [rdi + 0x10]
mov r9, qword [rdi + 0x28]
cmp r9, 0x10
jb 0x18000a0f9
mov r8, qword [rdi + 0x10]
mov rdx, rax
xor ecx, ecx
test r15, r15
je 0x18000a124
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx + r8]
xor rdx, rax
imul rdx, r10
inc rcx
cmp rcx, r15
jb 0x18000a110
mov r13, qword [r13 + 0x30]
and r13, rdx
shl r13, 4
add r13, qword [r12]
mov r12, qword [r13]
cmp r12, rbp
jne 0x18000a149
mov qword [r13], rdi
mov qword [r13 + 8], rdi
jmp 0x18000a243
mov rbx, qword [r13 + 8]
lea rdx, [rbx + 0x10]
mov rax, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x18000a15f
mov rdx, qword [rdx]
lea rcx, [rdi + 0x10]
cmp r9, 0x10
jb 0x18000a16d
mov rcx, qword [rdi + 0x10]
cmp r15, rax
jne 0x18000a1b4
mov r8, r15
call fcn.180018e30
test eax, eax
jne 0x18000a1b0
mov rax, qword [rbx]
cmp rax, rdi
je 0x18000a1a7
mov r8, qword [rdi + 8]
mov qword [r8], rsi
mov rdx, qword [rsi + 8]
mov qword [rdx], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rdi
mov qword [rax + 8], rdx
mov qword [rsi + 8], r8
mov qword [rdi + 8], rcx
mov qword [r13 + 8], rdi
jmp 0x18000a239
mov r9, qword [rdi + 0x28]
cmp r12, rbx
je 0x18000a214
mov rbx, qword [rbx + 8]
lea rdx, [rbx + 0x10]
mov rax, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x18000a1cf
mov rdx, qword [rdx]
lea rcx, [rdi + 0x10]
cmp r9, 0x10
jb 0x18000a1dd
mov rcx, qword [rdi + 0x10]
cmp r15, rax
jne 0x18000a1b4
mov r8, r15
call fcn.180018e30
test eax, eax
jne 0x18000a1b0
mov rax, qword [rbx]
mov r8, qword [rdi + 8]
mov qword [r8], rsi
mov rdx, qword [rsi + 8]
mov qword [rdx], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rdi
mov qword [rax + 8], rdx
mov qword [rsi + 8], r8
mov qword [rdi + 8], rcx
jmp 0x18000a239
mov rdx, qword [rdi + 8]
mov qword [rdx], rsi
mov rcx, qword [rsi + 8]
mov qword [rcx], rbx
mov rax, qword [rbx + 8]
mov qword [rax], rdi
mov qword [rbx + 8], rcx
mov qword [rsi + 8], rdx
mov qword [rdi + 8], rax
mov qword [r13], rdi
movabs r10, 0x100000001b3
mov rdi, rsi
cmp rsi, rbp
mov r13, qword [rsp + 0x60]
lea r12, [r13 + 0x18]
movabs rax, 0xcbf29ce484222325
jne 0x18000a0e0
mov qword [rsp + 0x68], 0
mov rbx, qword [rsp + 0x70]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rcx, str.invalid_hash_bucket_count
call fcn.1800166a4
int3
Function at 0x18000bec0
Capabilities:
Hash data using fnv

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbx
push rdi
sub rsp, 0x38
mov rdi, qword [0x180061988]
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x1800055a0
mov qword [rax + 0x10], rbp
xor ebp, ebp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], r12
movabs r12, 0x100000001b3
mov qword [rax - 0x18], r13
movabs r13, 0xcbf29ce484222325
mov qword [rax - 0x20], r14
movabs r14, 0xb980061da992779d
mov qword [rax - 0x28], r15
movabs r15, 0x8de41e9902e85756
mov esi, dword [rbx + 0x10]
mov rcx, r14
call qword [sym.imp.ScriptHookRDR2.dll_void___cdecl_nativeInit_unsigned_long_long_unsigned___int64__]
mov qword [rsp + 0x50], rbp
mov dword [rsp + 0x50], esi
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ScriptHookRDR2.dll_void___cdecl_nativePush64_unsigned_long_long_unsigned___int64__]
call qword [sym.imp.ScriptHookRDR2.dll_unsigned_long_long_unsigned___int64_____ptr64___cdecl_nativeCall_void_]
cmp dword [rax], ebp
je 0x1800054b0
mov esi, dword [rbx + 0x10]
mov rcx, r15
call qword [sym.imp.ScriptHookRDR2.dll_void___cdecl_nativeInit_unsigned_long_long_unsigned___int64__]
mov qword [rsp + 0x50], rbp
mov dword [rsp + 0x50], esi
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ScriptHookRDR2.dll_void___cdecl_nativePush64_unsigned_long_long_unsigned___int64__]
call qword [sym.imp.ScriptHookRDR2.dll_unsigned_long_long_unsigned___int64_____ptr64___cdecl_nativeCall_void_]
cmp dword [rax], ebp
je 0x180005576
nop word [rax + rax]
movzx eax, byte [rbx + 0x11]
movzx r8d, byte [rbx + 0x10]
mov r9, qword [0x180061988]
xor r8, r13
imul r8, r12
xor r8, rax
movzx eax, byte [rbx + 0x12]
imul r8, r12
xor r8, rax
movzx eax, byte [rbx + 0x13]
imul r8, r12
xor r8, rax
imul r8, r12
and r8, qword [0x1800619b0]
shl r8, 4
add r8, qword [0x180061998]
mov r10, qword [r8 + 8]
mov rcx, r10
cmp r10, r9
je 0x180005520
mov eax, dword [rbx + 0x10]
mov rdx, qword [r8]
cmp eax, dword [r10 + 0x10]
je 0x180005523
nop
cmp rcx, rdx
je 0x180005520
mov rcx, qword [rcx + 8]
cmp eax, dword [rcx + 0x10]
jne 0x180005510
jmp 0x180005523
mov rcx, rbp
test rcx, rcx
je 0x180005576
mov rax, qword [r8]
cmp r10, rcx
jne 0x180005548
cmp rax, rcx
jne 0x18000553e
mov qword [r8], r9
mov qword [r8 + 8], r9
jmp 0x180005553
mov r9, qword [rcx + 8]
mov qword [r8 + 8], r9
jmp 0x180005553
cmp rax, rcx
jne 0x180005553
mov rax, qword [rcx]
mov qword [r8], rax
mov rdx, qword [rcx]
dec qword [0x180061990]
mov rax, qword [rcx + 8]
mov qword [rax], rdx
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
mov edx, 0xd0
call fcn.180015534
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x180005452
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
mov r13, qword [rsp + 0x30]
mov r12, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
add rsp, 0x38
pop rdi
pop rbx
ret
jmp 0x1800053f0
Function at 0x180015310
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbp, rcx
test edx, edx
je 0x1800153d5
cmp edx, 1
jne 0x1800153cb
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor esi, esi
mov edi, 1
mov ebx, esi
xor eax, eax
lock cmpxchg dword [0x180061960], edi
je 0x180015374
cmp rbx, 0x20
jae 0x18001535d
xor ecx, ecx
jmp 0x18001535f
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x180061960], edi
jne 0x180015353
cmp qword [0x180061968], rsi
jne 0x180015391
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [0x180061968], rax
mov ecx, esi
mov qword [rsp + 0x28], rsi
xchg dword [0x180061960], ecx
xor ecx, ecx
mov dword [rsp + 0x20], esi
xor r9d, r9d
lea r8, [0x1800055b0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea rdx, [0x1800065f0]
mov rcx, rbp
call qword [sym.imp.ScriptHookRDR2.dll_void___cdecl_scriptRegister_struct_HINSTANCE______ptr64__void____cdecl___void__]
jmp 0x1800154a7
mov eax, 1
jmp 0x1800154a9
call qword [sym.imp.ScriptHookRDR2.dll_void___cdecl_scriptUnregister_struct_HINSTANCE______ptr64_]
xor edx, edx
xor ecx, ecx
call fcn.180002730
call fcn.180002520
xor esi, esi
mov edi, 1
mov ebx, esi
xor eax, eax
lock cmpxchg dword [0x180061960], edi
je 0x180015421
nop
cmp rbx, 0x20
jae 0x18001540a
xor ecx, ecx
jmp 0x18001540c
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x180061960], edi
jne 0x180015400
cmp qword [0x180061968], rsi
je 0x1800154a1
xor ecx, ecx
call fcn.1800020d0
test eax, eax
jne 0x1800154a1
mov rcx, qword [0x180061a80]
mov qword [0x180061a80], rsi
test rcx, rcx
je 0x180015469
nop dword [rax + rax]
mov rbx, qword [rcx]
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, rbx
test rbx, rbx
jne 0x180015450
mov r8, qword [0x180061a70]
xor edx, edx
mov rcx, qword [0x180061968]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x180061968]
call qword [sym.imp.KERNEL32.dll_HeapDestroy]
mov qword [0x180061968], rsi
mov qword [0x180061a70], rsi
mov qword [0x180061a78], rsi
xchg dword [0x180061960], esi
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x180024ab0
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x180024ae0
xor eax, eax
jmp 0x180024ba3
mov rbp, rbx
cmp word [rax], si
je 0x180024b05
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180024aec
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180024ae8
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1800249d0
movsxd r14, eax
test eax, eax
jne 0x180024b43
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180024ad9
mov rcx, r14
call fcn.180022874
mov rdi, rax
test rax, rax
jne 0x180024b5c
xor ecx, ecx
call fcn.180022838
jmp 0x180024b38
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1800249d0
test eax, eax
jne 0x180024b8d
mov rcx, rdi
call fcn.180022838
jmp 0x180024b97
xor ecx, ecx
call fcn.180022838
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1800290d0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.180020444
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x180029171
cmp ebx, dword [rsp + 0x30]
je 0x18002916a
test esi, esi
je 0x18002916a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x180029145
sub r8w, 0x61
cmp r8w, 0x19
ja 0x180029152
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x18002912f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x180029156
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x180029173
mov eax, 1
jmp 0x180029173
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18002cf60
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18002cf88
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18002cf88
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x2fc4d1b30
Capabilities:
Write file on windows

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

Function at 0x2fc4d2532
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f5108]
test eax, eax
je 0x2fc4d25ca
lea rax, [0x2fc4f50e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f5110]
mov qword [rbp - 8], rax
jmp 0x2fc4d25ae
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 0x2fc4d25a2
cmp qword [rbp - 0x10], 0
je 0x2fc4d25a2
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 0x2fc4d2568
lea rax, [0x2fc4f50e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d25cb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d26d0
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 0x2fc4d26f8
mov eax, 0
jmp 0x2fc4d2746
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 0x2fc4d2721
mov eax, 0
jmp 0x2fc4d2746
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 0x2fc4d2741
mov eax, 0
jmp 0x2fc4d2746
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d274c
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 0x2fc4d27ca
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d27c1
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 0x2fc4d27c1
mov rax, qword [rbp - 8]
jmp 0x2fc4d27df
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 0x2fc4d2794
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1800119b0
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x70
mov qword [rax - 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1804ca010]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp qword [rcx + 0x20], 0
jne 0x1800119e5
xor al, al
jmp 0x180011bee
mov rax, qword [rcx + 0x30]
mov rdi, qword [rax + 0x50]
test rdi, rdi
je 0x1800119de
lea r10, [rcx + 0x10]
mov r11, r10
cmp qword [r10 + 0x18], 8
jb 0x180011a03
mov r11, qword [r10]
mov rax, qword [r10 + 0x10]
cmp rax, 4
jb 0x180011b47
add rax, 0xfffffffffffffffd
lea rbx, [r11 + rax*2]
mov rax, r11
lea rsi, [0x1803bed38]
nop dword [rax]
nop word [rax + rax]
mov rcx, rbx
sub rcx, rax
sar rcx, 1
je 0x180011b47
cmp word [rax], 0x5c
je 0x180011a4f
add rax, 2
sub rcx, 1
jmp 0x180011a39
test rax, rax
je 0x180011b47
mov r8d, 4
mov rdx, rsi
mov r9, rax
sub r9, rsi
nop word [rax + rax]
movzx ecx, word [rdx]
cmp word [r9 + rdx], cx
jne 0x180011b32
add rdx, 2
sub r8, 1
jne 0x180011a70
sub rax, r11
cmp rax, 2
jae 0x180011b47
mov rdx, r10
lea rcx, [rsp + 0x40]
call fcn.180004aa0
nop
lea rcx, [rsp + 0x40]
call fcn.180175be0
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_ILCreateFromPathW]
mov rbx, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x180011ae3
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.SHELL32.dll_SHOpenFolderAndSelectItems]
nop
test rbx, rbx
je 0x180011af2
mov rcx, rbx
call qword [sym.imp.SHELL32.dll_ILFree]
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x180011b40
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180011b3b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180011b3b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
add rax, 2
jmp 0x180011a30
call fcn.180385c70
xor ebx, ebx
jmp 0x180011bd9
mov r8, r10
lea rdx, str._select_
lea rcx, [rsp + 0x40]
call fcn.180011c80
nop
lea r9, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae r9, qword [rsp + 0x40]
mov dword [rsp + 0x28], 5
xor ebx, ebx
mov qword [rsp + 0x20], rbx
lea r8, str.explorer.exe
lea rdx, str.open
mov rcx, rdi
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x180011bd9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180011bd4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180011bd4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180385c70
movdqa xmm0, xmmword [0x1803e6740]
mov word [rsp + 0x40], bx
movdqu xmmword [rsp + 0x50], xmm0
mov al, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.180385c10
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x180015c00
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x1b8]
sub rsp, 0x2b0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x1804ca010]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
xor esi, esi
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x60], xmm0
movdqa xmm1, xmmword [0x1803e6740]
movdqu xmmword [rsp + 0x60], xmm1
mov word [rsp + 0x50], si
xor edx, edx
mov r8d, 0x20c
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll_memset
mov edx, 0x105
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
dec eax
cmp eax, 0x103
ja 0x180015caa
mov word [rbp + 0x19a], si
lea rax, [rbp - 0x70]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x180015c91
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x50]
call fcn.180004e70
mov edx, 0x10
lea rcx, [rsp + 0x50]
call fcn.18015a5e0
lea rdx, [rsp + 0x70]
call fcn.180015b40
nop
mov r9, rax
cmp qword [rax + 0x18], 8
jb 0x180015cd1
mov r9, qword [rax]
mov rdx, qword [rax + 0x10]
mov rcx, qword [rsp + 0x60]
mov r8, qword [rsp + 0x68]
mov rax, r8
sub rax, rcx
cmp rdx, rax
ja 0x180015d18
lea rdi, [rcx + rdx]
mov qword [rsp + 0x60], rdi
lea rbx, [rsp + 0x50]
cmp r8, 8
cmovae rbx, qword [rsp + 0x50]
lea r8, [rdx + rdx]
lea rcx, [rbx + rcx*2]
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi*2], si
jmp 0x180015d2b
mov qword [rsp + 0x20], rdx
xor r8d, r8d
lea rcx, [rsp + 0x50]
call fcn.180009e00
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x180015d6f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180015d6a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180015d6a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180385c70
movdqa xmm0, xmmword [0x1803e6740]
movdqu xmmword [rbp - 0x80], xmm0
mov word [rsp + 0x70], si
mov dword [rsp + 0x40], esi
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rdx, qword [rsp + 0x50]
mov dword [rsp + 0x38], 1
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [0x1803bf214]
xor ecx, ecx
call fcn.1801fe5d0
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x180015e08
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180015e03
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180015e03
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180385c70
movdqa xmm0, xmmword [0x1803e6740]
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], si
mov al, 1
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.180385c10
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x18001c530
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, qword [rcx + 0x10]
mov rsi, rdx
mov rbx, rcx
test rdi, rdi
je 0x18001c5e5
cmp qword [rdi], 0
mov rbx, qword [rcx]
je 0x18001c5b1
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18001c5d0
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18001c5d0
mov rdx, qword [rdi]
xor r9d, r9d
mov qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rdx
mov rcx, rbx
mov rdx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rdi + 8], 0
je 0x18001c5d0
mov rcx, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp byte [0x1804daf08], 0
jne 0x18001c630
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18001c620
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1804daf00], rax
mov byte [0x1804daf08], 1
jmp 0x18001c637
mov rax, qword [0x1804daf00]
mov byte [0x1804daf08], 1
jmp 0x18001c637
mov rax, qword [0x1804daf00]
mov rcx, qword [rbx]
mov rdx, rsi
test rax, rax
je 0x18001c5ba
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp rax
Function at 0x18001c760
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x280
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x2b0], rbx
mov rax, qword [0x1804ca010]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rsi, rdx
mov rdi, rcx
xor ebp, ebp
mov qword [rsp + 0x48], rbp
mov dword [rsp + 0x50], ebp
mov qword [rsp + 0x58], rbp
mov r9d, dword [rcx + 8]
or r9d, 0x2001f
mov r8, rdx
mov rdx, qword [rcx]
lea rcx, [rsp + 0x48]
call fcn.18001c660
mov ebx, eax
test eax, eax
jne 0x18001c887
mov dword [rsp + 0x40], 0x100
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x18001c861
nop word [rax + rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.18001c760
mov ebx, eax
test eax, eax
jne 0x18001c887
mov dword [rsp + 0x40], 0x100
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x18001c810
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x18001c876
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rbp
mov dword [rsp + 0x50], ebp
mov rdx, rsi
mov rcx, rdi
call fcn.18001c530
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x18001c89c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rbp
mov eax, ebx
mov dword [rsp + 0x50], ebp
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.180385c10
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret