joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000c1f8
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x50
mov r15d, ecx
and qword [rax - 0x40], 0
and qword [rax - 0x38], 0
and qword [rax - 0x30], 0
xor ebx, ebx
mov qword [rsp + 0x90], rbx
mov r9d, 0x20019
lea r8, str.SOFTWAREMicrosoftWbemCIMOM
lea rcx, [rax - 0x40]
call fcn.14000c438
test eax, eax
jne 0x14000c40e
and qword [rsp + 0x98], rbx
and qword [rsp + 0x30], rbx
and dword [rsp + 0x88], ebx
lea r9, [rsp + 0x88]
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.14000c4ec
test eax, eax
jne 0x14000c40e
mov ecx, dword [rsp + 0x88]
add rcx, rcx
lea r13d, [rbx + 2]
mov eax, r13d
mul rcx
lea rsi, [rbx - 1]
cmovo rax, rsi
mov rcx, rax
call fcn.140001284
mov rdi, rax
mov qword [rsp + 0x98], rax
test rax, rax
je 0x14000c404
lea r9, [rsp + 0x88]
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.14000c4ec
test eax, eax
jne 0x14000c3ec
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
mov r14d, eax
test eax, eax
je 0x14000c3ec
mov eax, r13d
mul r14
cmovo rax, rsi
mov rcx, rax
call fcn.140001284
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14000c3ec
mov r8d, r14d
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
mov r14d, eax
test eax, eax
je 0x14000c3d7
test r15d, r15d
je 0x14000c38b
lea rcx, str.Performance_
call qword [sym.imp.msvcrt.dll_wcslen]
nop dword [rax + rax]
lea r15d, [rax + 1]
add r15d, r14d
mov eax, r13d
mul r15
lea rcx, [rbx - 1]
cmovo rax, rcx
mov rcx, rax
call fcn.140001284
mov rbx, rax
mov qword [rsp + 0x90], rax
test rax, rax
je 0x14000c3d7
mov edx, r14d
mov r8, rsi
mov rcx, rax
call fcn.140005370
lea r8, str.Performance_
mov edx, r15d
jmp 0x14000c3cf
add r14d, r13d
mov rax, r13
mul r14
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140001284
mov rbx, rax
mov qword [rsp + 0x90], rax
test rax, rax
je 0x14000c3d7
mov r8, rsi
mov edx, r14d
mov rcx, rax
call fcn.140005370
lea r8, [0x14001fcd8]
mov edx, r14d
mov rcx, rbx
call fcn.140005324
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
and qword [rsp + 0x30], 0
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
and qword [rsp + 0x98], 0
jmp 0x14000c40e
lea rcx, [rsp + 0x38]
call fcn.14000bdcc
mov rax, rbx
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret

Function at 0x14000c494
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x38
mov rcx, qword [rcx]
lea r9, [r11 + 8]
and dword [rsp + 0x40], 0
mov rax, r8
lea r8, [r11 + 0x20]
mov dword [rsp + 0x58], 4
mov qword [r11 - 0x10], r8
xor r8d, r8d
mov qword [r11 - 0x18], rdx
mov rdx, rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
cmp dword [rsp + 0x40], 4
mov ecx, 0xd
cmovne eax, ecx
add rsp, 0x38
ret
Function at 0x14000c4ec
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], r8
push rdi
sub rsp, 0x30
mov rcx, qword [rcx]
mov rdi, r9
mov qword [rax - 0x10], r9
mov rbx, rdx
mov qword [rax - 0x18], rdx
lea r9, [rax + 0x18]
xor esi, esi
lea rdx, str.Working_Directory
xor r8d, r8d
mov dword [rax + 0x18], esi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ecx, dword [rsp + 0x50]
mov edx, eax
sub ecx, 1
je 0x14000c570
sub ecx, 1
je 0x14000c570
cmp ecx, 5
jne 0x14000c58e
test byte [rdi], 1
jne 0x14000c58e
mov eax, dword [rdi]
and eax, 0xfffffffe
cmp eax, 4
jb 0x14000c58e
test rbx, rbx
je 0x14000c56c
mov eax, dword [rdi]
shr rax, 1
cmp word [rbx + rax*2 - 2], si
jne 0x14000c58e
cmp word [rbx + rax*2 - 4], si
jne 0x14000c58e
mov eax, edx
jmp 0x14000c593
test byte [rdi], 1
jne 0x14000c58e
test rbx, rbx
je 0x14000c56c
mov ecx, dword [rdi]
mov eax, 0xd
shr rcx, 1
cmp word [rbx + rcx*2 - 2], si
cmove eax, edx
jmp 0x14000c593
mov eax, 0xd
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x14000c5ac
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov dword [rax + 0x18], r8d
push rbx
sub rsp, 0x50
mov rbx, rdx
and qword [rax - 0x28], 0
and qword [rax - 0x20], 0
and qword [rax - 0x18], 0
mov r9d, 0x20006
lea r8, str.SOFTWAREMicrosoftWBEMPROVIDERSPerformance
lea rcx, [rax - 0x28]
call fcn.14000c438
test eax, eax
je 0x14000c5f5
cmp eax, 5
je 0x14000c5f5
lea r8, [rsp + 0x30]
xor edx, edx
call fcn.14000c704
mov r9d, 4
mov dword [rsp + 0x28], r9d
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14000c630
movzx ebx, ax
or ebx, 0x80070000
lea rcx, [rsp + 0x30]
call fcn.14000bdcc
mov eax, ebx
add rsp, 0x50
pop rbx
ret

Function at 0x14000c64c
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x50
mov edi, r9d
mov rsi, r8
and qword [rax - 0x28], 0
and qword [rax - 0x20], 0
and qword [rax - 0x18], 0
mov r9d, 0x20006
lea r8, str.SOFTWAREMicrosoftWBEMPROVIDERSPerformance
lea rcx, [rax - 0x28]
call fcn.14000c438
mov ebx, eax
test eax, eax
je 0x14000c6a8
cmp eax, 5
je 0x14000c6d4
lea r8, [rsp + 0x30]
mov rdx, qword [rsp + 0x80]
call fcn.14000c704
test eax, eax
js 0x14000c6d4
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rsi
mov r9d, 3
xor r8d, r8d
lea rdx, str.Performance_Data
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov ebx, eax
test ebx, ebx
jle 0x14000c6e1
movzx ebx, bx
or ebx, 0x80070000
lea rcx, [rsp + 0x30]
call fcn.14000bdcc
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x14000dab4
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x450
mov rax, qword [0x14002bed8]
xor rax, rsp
mov qword [rsp + 0x440], rax
cmp qword [rcx + 0x50], 0
mov rdi, rcx
mov ebx, 1
jne 0x14000dc22
xor edx, edx
lea rcx, [rsp + 0x230]
mov r8d, 0x20a
call sub.msvcrt.dll_memset
mov ebp, 0x105
lea rcx, [rsp + 0x230]
mov edx, ebp
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemDirectoryW]
nop dword [rax + rax]
mov r11d, eax
cmp eax, ebp
jb 0x14000db2c
mov ebx, 0x8000ffff
jmp 0x14000dc22
lea r8, [rsp + 0x230]
mov rdx, rbp
lea rcx, [rsp + 0x20]
call fcn.140005370
mov ebx, eax
test eax, eax
js 0x14000dc22
cmp word [rsp + r11*2 + 0x20], 0x5c
je 0x14000db72
lea r8, [0x14001fcd8]
mov rdx, rbp
lea rcx, [rsp + 0x20]
call fcn.140005324
mov ebx, eax
test eax, eax
js 0x14000dc22
lea r8, str.PSAPI.DLL
mov rdx, rbp
lea rcx, [rsp + 0x20]
call fcn.140005324
mov ebx, eax
test eax, eax
js 0x14000dc22
xor r8d, r8d
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadLibraryExW]
nop dword [rax + rax]
mov qword [rdi + 0x50], rax
test rax, rax
jne 0x14000dbb6
mov ebx, 0x80070485
jmp 0x14000dc22
lea rdx, str.EnumProcesses
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
nop dword [rax + rax]
mov rcx, qword [rdi + 0x50]
lea rdx, str.EnumProcessModules
mov qword [rdi + 0x58], rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
nop dword [rax + rax]
mov rcx, qword [rdi + 0x50]
lea rdx, str.GetModuleBaseNameW
mov qword [rdi + 0x60], rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
nop dword [rax + rax]
cmp qword [rdi + 0x58], 0
mov qword [rdi + 0x68], rax
je 0x14000dc1d
cmp qword [rdi + 0x60], 0
je 0x14000dc1d
test rax, rax
je 0x14000dc1d
xor ebx, ebx
jmp 0x14000dc22
mov ebx, 0x8007007f
cmp qword [rdi + 0x78], 0
jne 0x14000dc48
xor edx, edx
lea rcx, str.loadperf.dll
mov r8d, 0x800
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadLibraryExW]
nop dword [rax + rax]
mov qword [rdi + 0x78], rax
mov eax, ebx
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.140002010
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14000ff2c
Capabilities:
Create directory

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r14, rdx
mov r13, rcx
mov ebx, 0x8007000e
and qword [rsp + 0x90], 0
test rdx, rdx
je 0x1400100ef
mov ecx, 1
call fcn.14000c1f8
mov rsi, rax
mov qword [rsp + 0x98], rax
test rax, rax
je 0x1400100f4
mov rcx, rax
call qword [sym.imp.msvcrt.dll_wcslen]
nop dword [rax + rax]
mov r15, rax
mov rcx, r14
call qword [sym.imp.msvcrt.dll_wcslen]
nop dword [rax + rax]
lea r12d, [rax + 1]
add r12d, r15d
mov eax, 2
mul r12
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140001284
mov rdi, rax
mov qword [rsp + 0x90], rax
test rax, rax
je 0x14000fffd
lea edx, [r15 + 1]
mov r8, rsi
mov rcx, rax
call fcn.140005370
mov ebx, eax
test eax, eax
js 0x14000fffd
mov r8, r14
mov edx, r12d
mov rcx, rdi
call fcn.140005324
mov ebx, eax
test eax, eax
mov r14d, 1
cmovns ebx, r14d
jmp 0x140010003
mov r14d, 1
mov rcx, rdi
test ebx, ebx
js 0x1400100cd
xor edx, edx
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x140010058
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0xb7
je 0x140010058
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140010051
movzx ebx, ax
or ebx, 0x80070000
mov rcx, rdi
test ebx, ebx
js 0x1400100cd
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov r8d, r14d
mov edx, 0x40000000
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
nop dword [rax + rax]
mov qword [r13 + 0x68], rax
cmp rax, 0xffffffffffffffff
jne 0x1400100b2
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x1400100ad
movzx ebx, ax
or ebx, 0x80070000
mov rcx, rdi
jmp 0x1400100cd
xor ebx, ebx
jmp 0x1400100ad
test rcx, rcx
je 0x1400100de
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
jmp 0x1400100f4
mov ebx, 0x80070057
mov eax, ebx
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x140010110
Capabilities:
Delete file

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r14, rdx
mov ebx, 0x8007000e
and qword [rsp + 0x68], 0
add rcx, 0x60
call fcn.140006c70
test r14, r14
je 0x140010244
mov r13d, 1
mov ecx, r13d
call fcn.14000c1f8
mov rsi, rax
mov qword [rsp + 0x70], rax
test rax, rax
je 0x140010249
mov rcx, rax
call qword [sym.imp.msvcrt.dll_wcslen]
nop dword [rax + rax]
mov r15, rax
mov rcx, r14
call qword [sym.imp.msvcrt.dll_wcslen]
nop dword [rax + rax]
lea r12d, [rax + 1]
add r12d, r15d
lea eax, [r13 + 1]
mul r12
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140001284
mov rdi, rax
mov qword [rsp + 0x68], rax
test rax, rax
je 0x1400101d9
lea edx, [r15 + 1]
mov r8, rsi
mov rcx, rax
call fcn.140005370
mov ebx, eax
test eax, eax
js 0x1400101d9
mov r8, r14
mov edx, r12d
mov rcx, rdi
call fcn.140005324
mov ebx, eax
test eax, eax
cmovns ebx, r13d
test ebx, ebx
js 0x14001021f
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
nop dword [rax + rax]
test eax, eax
jne 0x14001020d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14001021f
movzx ebx, ax
or ebx, 0x80070000
jmp 0x14001021f
xor ebx, ebx
jmp 0x14001021f
test rdi, rdi
je 0x140010233
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
jmp 0x140010249
mov ebx, 0x80070057
mov eax, ebx
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x140010264
Capabilities:
Delete file
Move file

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r12, r8
mov r15, rdx
mov rdi, rcx
mov ebx, 0x8007000e
and qword [rsp + 0x88], 0
and qword [rsp + 0x78], 0
mov rcx, qword [rcx + 0x68]
test rcx, rcx
je 0x1400102ab
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
and qword [rdi + 0x68], 0
test r15, r15
je 0x1400104a4
test r12, r12
je 0x1400104a4
mov ecx, 1
call fcn.14000c1f8
mov r14, rax
mov qword [rsp + 0x20], rax
test rax, rax
je 0x1400104a9
mov rcx, rax
call qword [sym.imp.msvcrt.dll_wcslen]
nop dword [rax + rax]
mov rdi, rax
mov rcx, r15
call qword [sym.imp.msvcrt.dll_wcslen]
nop dword [rax + rax]
lea r13d, [rax + 1]
add r13d, edi
mov eax, 2
mul r13
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140001284
mov rsi, rax
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x28], rax
test rax, rax
je 0x140010362
lea edx, [rdi + 1]
mov r8, r14
mov rcx, rax
call fcn.140005370
mov ebx, eax
test eax, eax
js 0x140010362
mov r8, r15
mov edx, r13d
mov rcx, rsi
call fcn.140005324
mov ebx, eax
test eax, eax
mov r13d, 1
cmovns ebx, r13d
jmp 0x140010368
mov r13d, 1
mov rcx, rsi
test ebx, ebx
js 0x140010482
mov rcx, r14
call qword [sym.imp.msvcrt.dll_wcslen]
nop dword [rax + rax]
mov rbx, rax
mov rcx, r12
call qword [sym.imp.msvcrt.dll_wcslen]
nop dword [rax + rax]
lea r15d, [rax + 1]
add r15d, ebx
mov eax, 2
mul r15
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140001284
mov rdi, rax
mov qword [rsp + 0x78], rax
test rax, rax
je 0x1400103f0
lea edx, [rbx + 1]
mov r8, r14
mov rcx, rax
call fcn.140005370
mov ebx, eax
test eax, eax
js 0x1400103f5
mov r8, r12
mov edx, r15d
mov rcx, rdi
call fcn.140005324
mov ebx, eax
test eax, eax
js 0x1400103f5
mov ebx, r13d
jmp 0x1400103f5
mov ebx, 0x8007000e
test ebx, ebx
js 0x140010455
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
nop dword [rax + rax]
mov r8d, r13d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_file_l2_1_0.dll_MoveFileExW]
nop dword [rax + rax]
test eax, eax
jne 0x14001043e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140010455
movzx ebx, ax
or ebx, 0x80070000
jmp 0x140010455
xor ebx, ebx
jmp 0x140010455
mov rcx, rsi
test rdi, rdi
je 0x140010482
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
mov rcx, rsi
jmp 0x140010482
test rcx, rcx
je 0x140010493
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
mov rcx, r14
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
jmp 0x1400104a9
mov ebx, 0x80070057
mov eax, ebx
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400106a4
Capabilities:
Write file on windows

Disassembly:
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x20], rbx
mov qword [rbp + 0x28], rsi
mov qword [rbp + 0x30], rdi
mov qword [rbp + 0x38], r14
mov rax, qword [0x14002bed8]
xor rax, rbp
mov qword [rbp + 8], rax
mov rbx, rdx
mov r14, rcx
mov rax, qword [rcx + 0x68]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x1400107d4
test rdx, rdx
je 0x1400107d4
and dword [rbp], 0
mov rcx, rdx
call qword [sym.imp.msvcrt.dll_wcslen]
nop dword [rax + rax]
mov rsi, rax
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_wcslen]
nop dword [rax + rax]
lea ecx, [rax + rax]
lea r8d, [rcx + 2]
movsxd rdx, ecx
add rdx, 2
lea rax, [rdx + 0xf]
cmp rax, rdx
ja 0x140010733
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.14001af70
sub rsp, rax
lea rdi, [rsp + 0x40]
test rdi, rdi
je 0x140010783
mov byte [rdi], 0
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], r8d
mov qword [rsp + 0x20], rdi
or r9d, 0xffffffff
mov r8, rbx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_string_l1_1_0.dll_WideCharToMultiByte]
nop dword [rax + rax]
neg eax
sbb rdx, rdx
and rdx, rdi
jmp 0x140010785
xor edx, edx
and qword [rsp + 0x20], 0
lea r9, [rbp]
mov r8d, esi
mov rcx, qword [r14 + 0x68]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
jne 0x1400107c0
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x1400107cd
movzx eax, ax
or eax, 0x80070000
jmp 0x1400107cd
xor eax, eax
mov ecx, 0x80004005
cmp esi, dword [rbp]
cmovne eax, ecx
jmp 0x1400107d9
mov eax, 0x80070057
mov rcx, qword [rbp + 8]
xor rcx, rbp
call fcn.140002010
mov rbx, qword [rbp + 0x20]
mov rsi, qword [rbp + 0x28]
mov rdi, qword [rbp + 0x30]
mov r14, qword [rbp + 0x38]
lea rsp, [rbp + 0x10]
pop rbp
ret

Function at 0x140010804
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rsi, rcx
mov rax, qword [rcx + 0x68]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x140010899
test rdx, rdx
je 0x140010899
and dword [rsp + 0x40], 0
mov rcx, rdx
call qword [sym.imp.msvcrt.dll_wcslen]
nop dword [rax + rax]
mov rbx, rax
add ebx, ebx
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, ebx
mov rdx, rdi
mov rcx, qword [rsi + 0x68]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
jne 0x140010883
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x140010891
movzx eax, ax
or eax, 0x80070000
jmp 0x140010891
xor eax, eax
mov ecx, 0x80004005
cmp ebx, dword [rsp + 0x40]
cmovne eax, ecx
jmp 0x14001089e
mov eax, 0x80070057
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140013398
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x14002bed8]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov edi, edx
xor edx, edx
mov r8d, 0x200
lea rcx, [rsp + 0x40]
call sub.msvcrt.dll_memset
mov r9d, 0x100
lea r8, [rsp + 0x40]
mov edx, 0x1001
mov ecx, edi
call qword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
nop dword [rax + rax]
and edi, 0x3ff
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.msvcrt.dll_wcslen]
nop dword [rax + rax]
lea esi, [rax + 7]
mov eax, 2
mul rsi
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140001284
mov rbx, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140013455
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, edi
lea r8, str._03x_s_r_n
mov edx, esi
mov rcx, rbx
call fcn.1400039cc
nop
jmp 0x14001345c
mov rax, rbx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140002010
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140018380
Capabilities:
Delete registry key

Disassembly:
push rbx
sub rsp, 0x20
mov rax, rdx
mov rbx, rcx
test rdx, rdx
jne 0x140018395
lea rax, [rcx + 0x18]
xor edx, edx
mov rcx, rax
call sym.WmiApSrv.exe_public:_unsigned_short_int____ptr64___cdecl_CHString::GetBuffer_int____ptr64
mov rcx, qword [rbx + 8]
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteKeyExW]
Function at 0x1400183f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov esi, dword [rcx + 0x244]
mov r13, rdx
mov r14d, dword [rcx + 0x248]
add esi, 2
mov r12d, dword [rdx]
mov r15, rcx
add r14d, 2
mov dword [rbp + 0x48], esi
mov rcx, 0xffffffffffffffff
mov dword [rbp + 0x40], r14d
lea edx, [rsi + 2]
mov eax, 2
mul rdx
mov rbx, r9
mov rdi, r8
cmovo rax, rcx
mov rcx, rax
call fcn.140001284
mov qword [rdi], rax
test rax, rax
jne 0x14001846b
and dword [rbp + 0x50], eax
lea rdx, [0x1400261c8]
lea rcx, [rbp + 0x50]
call sub.msvcrt.dll__CxxThrowException
int3
mov edx, dword [rbp + 0x40]
mov rcx, 0xffffffffffffffff
add edx, 2
mov eax, 2
mul rdx
cmovo rax, rcx
mov rcx, rax
call fcn.140001284
mov qword [rbx], rax
test rax, rax
jne 0x1400184bc
mov rcx, qword [rdi]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
and qword [rdi], 0
lea rdx, [0x1400261c8]
and dword [rbp + 0x50], 0
lea rcx, [rbp + 0x50]
call sub.msvcrt.dll__CxxThrowException
int3
mov r8, qword [rdi]
lea rcx, [rbp + 0x40]
mov qword [rsp + 0x38], rcx
lea r9, [rbp + 0x48]
mov rcx, qword [r15 + 8]
mov edx, r12d
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumValueW]
nop dword [rax + rax]
mov dword [r13], r12d
xor r12d, r12d
mov rcx, qword [rdi]
mov r15d, eax
test eax, eax
je 0x140018527
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
mov qword [rdi], r12
mov rcx, qword [rbx]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
mov qword [rbx], r12
jmp 0x140018551
cmp dword [rbp + 0x48], esi
ja 0x140018536
mov eax, dword [rbp + 0x48]
mov word [rcx + rax*2], r12w
jmp 0x14001853b
mov word [rcx + rsi*2], r12w
mov rcx, qword [rbx]
cmp dword [rbp + 0x40], r14d
ja 0x14001854d
mov eax, dword [rbp + 0x40]
mov byte [rax + rcx], r12b
jmp 0x140018551
mov byte [r14 + rcx], r12b
mov rbx, qword [rsp + 0xa8]
mov eax, r15d
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret