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

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000bf12
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000bf12
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000bf12
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000bf12
cmp dword [rcx + 0x84], 0xe
jbe 0x14000bf12
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000bf14
xor al, al
add rsp, 0x28
ret

Function at 0x14000f6b0
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14000f51b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000f51b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000f51b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000f51b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000f51b
cmp dword [rcx + 0x84], 0xe
jbe 0x14000f51b
cmp dword [rcx + 0xf8], 0
je 0x14000f51b
mov ecx, ebx
call fcn.14000f5cc
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14000f3a8
nop
cmp dword [rbp + 0x20], 0
je 0x14000f569
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000f574
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000f4ac
Function at 0x140019098
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14001911f
mov rsi, rbx
cmp word [rax], bp
je 0x1400190de
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400190c8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400190c4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140016774
mov rdi, rax
test rax, rax
je 0x14001910c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000d490
mov rbp, rdi
xor ecx, ecx
call fcn.140015884
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001b28c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001b2a2
mov al, 1
jmp 0x14001b302
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001b2b3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001b300
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400193e0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001b300
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001b300
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001b300
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001b302
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14001f5c0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001f5e8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001f5e8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140017a40
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
cmp qword [rcx], rdx
je 0x140017ab4
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rcx, rsi
call fcn.140017ad0
lea rax, [rdi + 1]
cmp rax, 2
jb case.default.0x140017aad
mov qword [rsi], rdi
call fcn.140017670
mov rbx, rax
mov r15, qword [rsp + 0x58]
call sym.firefox.exe_GetHandleVerifier
mov rbp, qword [rax]
mov qword [rsp + 0x20], rbx
mov rcx, rax
mov rdx, rdi
mov r8, rsi
mov r9, r15
call qword [rbp + 8]
mov ecx, r14d
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
jns 0x1400a13f4
pop rbp
pop rax
cli
jnp 0x1400a13b2
clc
cld
cmpsd dword [rsi], dword [rdi]
mov edi, 0x931e7797
in al, 0xe0
invalid
loopne 0x1400a1396
jp 0x1400a1395
invalid
pop rsp
or al, byte [rdi]
add byte [rbp + 0xb2ebe2c], 0x6e
or ebp, dword [rsi - 0x58]
leave
adc dh, byte [rax]
scasd eax, dword [rdi]
pop rsi
add bh, byte [rax]
movsb byte [rdi], byte [rsi]
xlatb
mov edx, gs
invalid

Function at 0x140017b40
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x140
mov rax, qword [0x140054018]
xor rax, rsp
mov qword [rsp + 0x138], rax
test rdx, rdx
je 0x140017bd0
mov rsi, rdx
mov rdi, rcx
mov r13d, 0xffffffff
lea r14, str.z:_task_1579288126_build_src_security_sandbox_chromium_base_rand_util_win.cc
lea r15, str.success
lea r12, [rsp + 0x28]
jmp 0x140017b98
add rdi, rbx
sub rsi, rbx
je 0x140017bd0
cmp rsi, r13
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x140017b90
mov rcx, r12
mov rdx, r14
mov r8d, 0x20
mov r9, r15
call fcn.140013500
mov rcx, r12
call fcn.140013600
jmp 0x140017b90
mov rcx, qword [rsp + 0x138]
xor rcx, rsp
call fcn.140045f60
nop
add rsp, 0x140
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1800010bc
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov rcx, qword [str.KERNEL32.dll]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, dword [0x1800bdde4]
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, dword [0x1800bdde4]
mov rcx, rax
mov rbx, rax
call fcn.180001068
mov r8d, 0x104
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov r9, qword [str.backchat.docx]
xor r14d, r14d
mov edx, r14d
lea r12d, [r14 + 1]
cmp word [rbx], r14w
je 0x18000113d
add edx, r12d
cmp word [rbx + rdx*2], r14w
jne 0x180001133
lea ecx, [rdx - 1]
jmp 0x18000114d
mov eax, edx
mov edx, ecx
dec ecx
mov word [rbx + rax*2], r14w
cmp word [rbx + rcx*2], 0x5c
mov eax, ecx
jne 0x180001142
mov r8d, r14d
cmp byte [r9], r14b
je 0x18000117b
mov al, byte [r9]
Function at 0x180001170
Capabilities:
Get file size
Read file on windows

Disassembly:
add dword [rdi], ecx
mov esi, 0xc40345c8
movsx ecx, al
add r8d, r12d
mov eax, edx
add edx, r12d
mov word [rbx + rax*2], cx
mov eax, r8d
mov al, byte [r8 + r9]
test al, al
jne 0x180001161
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov r8d, r12d
mov edx, r12d
mov dword [rsp + 0x20], 3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x18000135d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [0x1800bddc4]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, dword [0x1800bddc4]
mov rcx, rax
mov rbx, rax
call fcn.180001068
lea r9, [rsp + 0xa8]
mov dword [rsp + 0xa8], r14d
mov r8d, edi
mov qword [rsp + 0x20], r14
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18000135d
mov eax, dword [0x1800bddd0]
mov r15d, dword [rsp + 0xa8]
add r15, rbx
add rbx, rax
lea rax, [rbx + 4]
mov edx, dword [rax]
add rax, 4
cmp dword [rbx], r14d
jbe 0x180001243
mov ecx, dword [rbx]
add dword [rax], edx
lea rax, [rax + 4]
sub rcx, r12
jne 0x180001238
mov eax, dword [0x1800bddf4]
mov rcx, rbp
add rbx, rax
lea rdx, [rbx + 1]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x18000135d
movsx rcx, byte [rbx]
add rbx, rcx
mov rcx, rbp
lea rdx, [rbx + 1]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
test rax, rax
je 0x18000135d
movsx rcx, byte [rbx]
add rbx, rcx
lea rcx, [rbx + 1]
call rdi
test rax, rax
je 0x18000135d
movsx rcx, byte [rbx]
lea r9, [rsp + 0xa0]
mov r8d, 0x40
mov r14d, dword [rbx + rcx + 4]
lea rdi, [rcx + 0xc]
add rdi, rbx
mov ebx, dword [rbx + rcx + 8]
movsxd rcx, dword [rax + 0x3c]
mov edx, ebx
lea r13, [rbx + rdi]
mov ebp, dword [rcx + rax + 0x2c]
and dword [rsp + 0xa0], 0
add rbp, rax
mov rcx, rbp
call r12
mov r8d, ebx
mov rdx, rdi
mov rcx, rbp
call sym.sqlite3.dll_sqlite3_column_count
mov r8d, dword [rsp + 0xa0]
lea r9, [rsp + 0xa0]
mov edx, ebx
mov rcx, rbp
call r12
mov rax, qword [str.adage.eps]
lea r9, [r14 + rbp]
xor r10d, r10d
mov r8d, r10d
cmp byte [rax], r10b
je 0x18000133e
mov edx, r10d
mov rax, qword [str.adage.eps]
inc r8d
movsx ecx, byte [rax + rdx]
mov word [r15 + rdx*2], cx
inc rdx
mov rax, qword [str.adage.eps]
cmp byte [rax + rdx], r10b
jne 0x18000131b
movsxd rax, r8d
lea rcx, [rsp + 0x40]
mov word [r15 + rax*2], r10w
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r13
mov byte [rsp + 0x50], 1
call r9
mov rbx, qword [rsp + 0xb0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x2fc569670
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 sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc56a072
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc58c108]
test eax, eax
je 0x2fc56a10a
lea rax, [0x2fc58c0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc58c110]
mov qword [rbp - 8], rax
jmp 0x2fc56a0ee
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 0x2fc56a0e2
cmp qword [rbp - 0x10], 0
je 0x2fc56a0e2
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 0x2fc56a0a8
lea rax, [0x2fc58c0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc56a10b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc56a210
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 0x2fc56a238
mov eax, 0
jmp 0x2fc56a286
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 0x2fc56a261
mov eax, 0
jmp 0x2fc56a286
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 0x2fc56a281
mov eax, 0
jmp 0x2fc56a286
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc56a28c
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 0x2fc56a30a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc56a301
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 0x2fc56a301
mov rax, qword [rbp - 8]
jmp 0x2fc56a31f
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 0x2fc56a2d4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140003820
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000386a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000386a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000386a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000386a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000386a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000386c
xor al, al
add rsp, 0x28
ret
Function at 0x1800119e0
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 [0x1804cd010]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp qword [rcx + 0x20], 0
jne 0x180011a15
xor al, al
jmp 0x180011c1e
mov rax, qword [rcx + 0x30]
mov rdi, qword [rax + 0x50]
test rdi, rdi
je 0x180011a0e
lea r10, [rcx + 0x10]
mov r11, r10
cmp qword [r10 + 0x18], 8
jb 0x180011a33
mov r11, qword [r10]
mov rax, qword [r10 + 0x10]
cmp rax, 4
jb 0x180011b77
add rax, 0xfffffffffffffffd
lea rbx, [r11 + rax*2]
mov rax, r11
lea rsi, [0x1803c0d38]
nop dword [rax]
nop word [rax + rax]
mov rcx, rbx
sub rcx, rax
sar rcx, 1
je 0x180011b77
cmp word [rax], 0x5c
je 0x180011a7f
add rax, 2
sub rcx, 1
jmp 0x180011a69
test rax, rax
je 0x180011b77
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 0x180011b62
add rdx, 2
sub r8, 1
jne 0x180011aa0
sub rax, r11
cmp rax, 2
jae 0x180011b77
mov rdx, r10
lea rcx, [rsp + 0x40]
call fcn.180004ad0
nop
lea rcx, [rsp + 0x40]
call fcn.1801761a0
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 0x180011b13
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.SHELL32.dll_SHOpenFolderAndSelectItems]
nop
test rbx, rbx
je 0x180011b22
mov rcx, rbx
call qword [sym.imp.SHELL32.dll_ILFree]
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x180011b70
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180011b6b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180011b6b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
add rax, 2
jmp 0x180011a60
call fcn.180388460
xor ebx, ebx
jmp 0x180011c09
mov r8, r10
lea rdx, str._select_
lea rcx, [rsp + 0x40]
call fcn.180011cb0
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 0x180011c09
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180011c04
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180011c04
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180388460
movdqa xmm0, xmmword [0x1803e8770]
mov word [rsp + 0x40], bx
movdqu xmmword [rsp + 0x50], xmm0
mov al, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.180388400
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x180015c30
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 [0x1804cd010]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
xor esi, esi
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x60], xmm0
movdqa xmm1, xmmword [0x1803e8770]
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 0x180015cda
mov word [rbp + 0x19a], si
lea rax, [rbp - 0x70]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x180015cc1
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x50]
call fcn.180004ea0
mov edx, 0x10
lea rcx, [rsp + 0x50]
call fcn.18015aba0
lea rdx, [rsp + 0x70]
call fcn.180015b70
nop
mov r9, rax
cmp qword [rax + 0x18], 8
jb 0x180015d01
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 0x180015d48
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 0x180015d5b
mov qword [rsp + 0x20], rdx
xor r8d, r8d
lea rcx, [rsp + 0x50]
call fcn.180009e30
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x180015d9f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180015d9a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180015d9a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180388460
movdqa xmm0, xmmword [0x1803e8770]
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, [0x1803c1214]
xor ecx, ecx
call fcn.1801feb90
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x180015e38
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180015e33
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180015e33
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180388460
movdqa xmm0, xmmword [0x1803e8770]
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], si
mov al, 1
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.180388400
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 0x18001c5c0
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 0x18001c675
cmp qword [rdi], 0
mov rbx, qword [rcx]
je 0x18001c641
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18001c660
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18001c660
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 0x18001c660
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 [0x1804ddf38], 0
jne 0x18001c6c0
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18001c6b0
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1804ddf30], rax
mov byte [0x1804ddf38], 1
jmp 0x18001c6c7
mov rax, qword [0x1804ddf30]
mov byte [0x1804ddf38], 1
jmp 0x18001c6c7
mov rax, qword [0x1804ddf30]
mov rcx, qword [rbx]
mov rdx, rsi
test rax, rax
je 0x18001c64a
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 0x18001c7f0
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 [0x1804cd010]
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.18001c6f0
mov ebx, eax
test eax, eax
jne 0x18001c917
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 0x18001c8f1
nop word [rax + rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.18001c7f0
mov ebx, eax
test eax, eax
jne 0x18001c917
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 0x18001c8a0
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x18001c906
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.18001c5c0
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x18001c92c
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.180388400
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret