joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ca750
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x290
mov rax, qword [0x1401f22c8]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rbp, rcx
mov eax, 7
xor edi, edi
cmp byte [0x1401f37d0], dil
lea rcx, [rsp + 0x60]
mov ebx, 3
cmovne ebx, eax
call fcn.1401617b0
lea rcx, [rsp + 0x60]
mov rdx, rbp
call fcn.140168520
mov rcx, qword [rsp + 0x68]
mov r8d, ebx
mov qword [rsp + 0x30], rdi
mov ebx, 0x80000000
xor r9d, r9d
mov edx, ebx
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
lea rcx, [rsp + 0x60]
mov rsi, rax
call fcn.140001150
cmp rsi, 0xffffffffffffffff
jne 0x1400ca814
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1400ca904
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CreateFileW__:__d:_Failed_to_open_file__s_n
mov r8, rbp
mov edx, eax
call fcn.1400b1c70
jmp 0x1400ca904
lea rdx, [rsp + 0x44]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov r11d, eax
mov dword [rsp + 0x40], eax
jne 0x1400ca841
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400ca8fb
mov r11d, dword [rsp + 0x40]
mov rax, qword [rsp + 0x40]
test rax, rax
jne 0x1400ca86d
lea r8, [rsp + 0x48]
lea edx, [rax + 1]
xor ecx, ecx
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
js 0x1400ca8fb
mov rdi, qword [rsp + 0x48]
jmp 0x1400ca8fb
cmp rax, rbx
jge 0x1400ca8fb
mov edx, r11d
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
test rax, rax
mov rbx, rax
je 0x1400ca8fb
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x1400ca8f2
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x48]
mov rdx, rax
mov rcx, rsi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rbx
test eax, eax
je 0x1400ca8ec
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov r11d, dword [rsp + 0x48]
cmp r11, qword [rsp + 0x40]
jne 0x1400ca8f2
lea r8, [rsp + 0x50]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
js 0x1400ca8f2
mov rdi, qword [rsp + 0x50]
jmp 0x1400ca8fb
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rdi
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1401931f0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400cabc0
Capabilities:
Get disk information

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x468
mov rax, qword [0x1401f22c8]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov eax, dword [rsp + 0x4c0]
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
add eax, 0xffffffff
xor ebx, ebx
mov rdi, r9
mov r13d, r8d
mov r12, rdx
mov word [rsp + 0x22], 0x3a
movsxd rsi, eax
mov word [rsp + 0x24], 0x5c
mov word [rsp + 0x26], bx
xor ebp, ebp
call qword [fcn.1400c7c70]
test eax, eax
jne 0x1400cadbc
nop
nop
nop
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
mov r8d, 0x104
mov word [rsp + 0x24], 0
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x1400cadea
mov eax, eax
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x20]
lea rcx, str.QueryDosDevice__S__S_n
mov word [rsp + rax*2 + 0x30], 0
call fcn.1400b1c70
cmp word [rsp + 0x30], 0x5c
jne 0x1400cadea
cmp word [rsp + 0x32], 0x3f
jne 0x1400cadea
cmp word [rsp + 0x34], 0x3f
jne 0x1400cadea
cmp word [rsp + 0x36], 0x5c
jne 0x1400cadea
movzx eax, word [rsp + 0x38]
test ax, ax
je 0x1400cadea
cmp word [rsp + 0x3a], 0x3a
jne 0x1400cadea
add ebp, 1
cmp ebp, 0x100
jge 0x1400cadea
cmp word [rsp + 0x3c], 0x5c
mov word [rsp + 0x20], ax
mov word [rsp + 0x22], 0x3a
mov word [rsp + 0x24], 0x5c
mov word [rsp + 0x26], 0
jne 0x1400cada3
movzx eax, word [rsp + 0x3e]
xor edx, edx
xor ecx, ecx
test ax, ax
lea r8, [rsp + 0x3e]
je 0x1400cad2c
cmp rcx, 0x104
jge 0x1400cad1e
mov word [rsp + rcx*2 + 0x240], ax
add edx, 1
add rcx, 1
mov ax, word [r8 + 2]
add r8, 2
test ax, ax
jne 0x1400cad06
test ebx, ebx
je 0x1400cad75
cmp rcx, 0x104
jge 0x1400cad4a
mov word [rsp + rcx*2 + 0x240], WSAAsyncSelect
add edx, 1
add rcx, 1
mov r8, rdi
nop
cmp rcx, 0x104
jge 0x1400cad6c
movzx eax, word [r8]
add edx, 1
add rcx, 1
mov word [rsp + rcx*2 + 0x23e], ax
add r8, 2
sub ebx, 1
jne 0x1400cad50
xor ebx, ebx
xor ecx, ecx
test edx, edx
lea r8, [rsp + 0x240]
je 0x1400cada3
cmp rcx, rsi
jge 0x1400cad9a
movzx eax, word [r8]
add ebx, 1
add rcx, 1
mov word [rdi + rcx*2 - 2], ax
add r8, 2
sub edx, 1
jne 0x1400cad85
lea rcx, [rsp + 0x20]
mov r8d, r13d
mov rdx, r12
call qword [fcn.1400c7c70]
test eax, eax
je 0x1400cac30
movsxd rax, ebx
mov word [rdi + rax*2], 0
mov eax, 1
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.1401931f0
add rsp, 0x468
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
xor eax, eax
jmp 0x1400cadca

Function at 0x1400cae90
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x48
mov r9d, reloc.WS2_32.dll_recv
lea r8, [rsp + 0x20]
lea edx, [r9 + 0x48]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1400caebf
bt dword [rsp + 0x2c], 0x1b
jae 0x1400caebf
mov eax, 1
add rsp, 0x48
ret
xor eax, eax
add rsp, 0x48
ret
Function at 0x1400caed0
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push rbx
push rbp
push rdi
push r12
sub rsp, 0x48
mov rbp, rdx
mov r12, rcx
xor edx, edx
xor ecx, ecx
xor edi, edi
call qword [sym.imp.USER32.dll_GetKeyboardLayoutList]
test eax, eax
mov ebx, eax
je 0x1400cafc1
mov rcx, rbx
mov qword [rsp + 0x80], r14
shl rcx, 3
call fcn.1400be650
mov ecx, ebx
mov rdx, rax
mov r14, rax
call qword [sym.imp.USER32.dll_GetKeyboardLayoutList]
test eax, eax
je 0x1400cafb1
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], r13
mov qword [rsp + 0x40], r15
lea r15d, [rdi + 1]
mov ebx, edi
mov rsi, r14
mov r13d, eax
nop
nop
mov cx, word [rsi]
mov r9d, reloc.WS2_32.dll_recv
lea r8, [rsp + 0x20]
lea edx, [r9 + 0x48]
and ecx, 0x3ff
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1400caf83
bt dword [rsp + 0x2c], 0x1b
jae 0x1400caf83
test rbp, rbp
je 0x1400caf76
mov rax, qword [rsi]
mov qword [rbp], rax
or ebx, 2
cmp ebx, 3
jne 0x1400caf99
mov edi, r15d
jmp 0x1400caf99
test r12, r12
je 0x1400caf8f
mov rax, qword [rsi]
mov qword [r12], rax
or ebx, r15d
cmp ebx, 3
cmove edi, r15d
add rsi, 8
sub r13, r15
jne 0x1400caf40
mov r15, qword [rsp + 0x40]
mov r13, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x70]
mov rcx, r14
call fcn.1400be6d0
mov r14, qword [rsp + 0x80]
mov eax, edi
add rsp, 0x48
pop r12
pop rdi
pop rbp
pop rbx
ret

Function at 0x1400cb4d0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x30
test r8, r8
mov rbx, r8
mov rsi, rdx
mov rbp, rcx
je 0x1400cb538
mov r12d, 0xffffffff
xor r13d, r13d
nop
mov rdi, rbx
cmp rbx, r12
lea r9, [rsp + 0x58]
cmova rdi, r12
mov rdx, rsi
mov rcx, rbp
mov r8d, edi
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400cb556
mov eax, dword [rsp + 0x58]
cmp rax, rdi
jne 0x1400cb556
add rsi, rdi
sub rbx, rdi
jne 0x1400cb500
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r13
pop r12
pop rdi
ret
xor eax, eax
jmp 0x1400cb53d
Function at 0x1400ce9b0
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
lea ecx, [rbx + 0x10]
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 2
test ax, ax
cmovs ebx, ecx
mov ecx, setsockopt
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x1400ce9df
or ebx, 1
mov ecx, setsockopt
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x1400ce9f2
or ebx, 4
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x1400ced10
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x6b0
mov rax, qword [0x1401f22c8]
xor rax, rsp
mov qword [rsp + 0x6a0], rax
mov rsi, rcx
lea rcx, [rsp + 0x240]
xor edi, edi
call fcn.1401617b0
lea rcx, [rsp + 0x360]
call fcn.1401617b0
lea rcx, [rsp + 0x480]
call fcn.1401617b0
lea rcx, [rsp + 0x20]
call fcn.1401617b0
mov eax, dword [rsp + 0x24]
mov ebx, edi
cmp eax, 0x104
jge 0x1400ced8a
lea rcx, [rsp + 0x20]
mov edx, 0x104
call fcn.1401677d0
mov eax, dword [rsp + 0x24]
cmp eax, 0xffffffff
ja 0x1400cedd9
nop
mov rcx, qword [rsp + 0x28]
mov edx, eax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
mov edx, eax
je 0x1400cedd9
mov eax, dword [rsp + 0x24]
cmp edx, eax
jbe 0x1400cedc2
jle 0x1400cedbb
lea rcx, [rsp + 0x20]
call fcn.1401677d0
mov eax, dword [rsp + 0x24]
cmp eax, 0xffffffff
jbe 0x1400ced90
jmp 0x1400cedd9
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x360]
mov ebx, 1
call fcn.140162580
lea rcx, [rsp + 0x20]
call fcn.140001150
test ebx, ebx
je 0x1400cee25
mov rdx, qword [rsp + 0x368]
lea rcx, [rsp + 0x240]
mov r8, rsi
call fcn.140162d30
mov rdx, qword [rsp + 0x248]
lea rcx, [rsp + 0x480]
call fcn.140168520
mov rcx, qword [rsp + 0x488]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
lea rcx, [rsp + 0x480]
call fcn.140001150
lea rcx, [rsp + 0x360]
call fcn.140001150
lea rcx, [rsp + 0x240]
call fcn.140001150
mov rax, rdi
mov rcx, qword [rsp + 0x6a0]
xor rcx, rsp
call fcn.1401931f0
lea r11, [rsp + 0x6b0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400cf390
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x370
mov rax, qword [0x1401f22c8]
xor rax, rsp
mov qword [rsp + 0x360], rax
movzx r10d, byte [rdx]
mov rdi, rdx
mov rsi, rcx
test r10b, r10b
mov rbx, rcx
je 0x1400cf4ec
nop
nop
lea r9, str._systemroot_
mov r8, rdi
sub r9, rdi
nop
movzx eax, byte [r8]
cmp al, 0x80
jae 0x1400cf4d0
movzx ecx, al
mov rax, qword [0x1401f4950]
movzx edx, byte [rcx + rax]
movsx eax, byte [r9 + r8]
cmp eax, edx
jne 0x1400cf4d0
add r8, 1
cmp byte [r9 + r8], 0
jne 0x1400cf3e0
lea rcx, [rsp + 0x20]
mov rdi, r8
call fcn.1401617b0
lea rcx, [rsp + 0x140]
call fcn.1401617b0
mov edx, dword [rsp + 0x144]
mov rcx, qword [rsp + 0x148]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x1400cf47a
mov edx, dword [rsp + 0x144]
cmp eax, edx
jl 0x1400cf4bc
jle 0x1400cf468
lea rcx, [rsp + 0x140]
mov edx, eax
call fcn.1401677d0
mov edx, dword [rsp + 0x144]
mov rcx, qword [rsp + 0x148]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x1400cf445
lea rcx, [rsp + 0x20]
call fcn.140162780
lea rcx, [rsp + 0x140]
call fcn.140001150
test rsi, rsi
je 0x1400cf4a8
movsxd r8, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
mov rcx, rbx
call fcn.140193220
movsxd rax, dword [rsp + 0x20]
lea rcx, [rsp + 0x20]
add rbx, rax
call fcn.140001150
jmp 0x1400cf4e0
mov rdx, qword [rsp + 0x148]
lea rcx, [rsp + 0x20]
call fcn.140162580
jmp 0x1400cf484
test rsi, rsi
je 0x1400cf4d8
mov byte [rbx], r10b
add rdi, 1
add rbx, 1
mov r10b, byte [rdi]
test r10b, r10b
jne 0x1400cf3d0
test rsi, rsi
je 0x1400cf4f4
mov byte [rbx], 0
sub rbx, rsi
mov eax, ebx
mov rcx, qword [rsp + 0x360]
xor rcx, rsp
call fcn.1401931f0
lea r11, [rsp + 0x370]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400cf520
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x590
mov rax, qword [0x1401f22c8]
xor rax, rsp
mov qword [rsp + 0x580], rax
mov rdi, rcx
lea rcx, [rsp + 0x20]
mov rbx, rdx
call fcn.1401617b0
lea rcx, [rsp + 0x360]
call fcn.1401617b0
lea rcx, [rsp + 0x140]
call fcn.1401617b0
cmp byte [0x1401f37d0], 0
mov rdx, rbx
je 0x1400cf581
lea rcx, [rsp + 0x20]
call fcn.1401624e0
jmp 0x1400cf5ac
xor ecx, ecx
call fcn.1400cf390
mov dword [rsp + 0x20], eax
lea edx, [rax + 1]
cmp edx, dword [rsp + 0x24]
jle 0x1400cf59f
lea rcx, [rsp + 0x20]
call fcn.1401617c0
mov rcx, qword [rsp + 0x28]
mov rdx, rbx
call fcn.1400cf390
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x360]
call fcn.140167a80
mov r8d, dword [rsp + 0x144]
mov rdx, qword [rsp + 0x148]
mov rcx, qword [rsp + 0x368]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1400cf61e
cmp eax, dword [rsp + 0x144]
jle 0x1400cf670
lea rcx, [rsp + 0x140]
mov edx, eax
call fcn.1401677d0
mov r8d, dword [rsp + 0x144]
mov rdx, qword [rsp + 0x148]
mov rcx, qword [rsp + 0x368]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x1400cf5e0
mov rdx, qword [rsp + 0x28]
mov rcx, rdi
call fcn.1401624e0
lea rcx, [rsp + 0x140]
call fcn.140001150
lea rcx, [rsp + 0x360]
call fcn.140001150
lea rcx, [rsp + 0x20]
call fcn.140001150
mov rcx, qword [rsp + 0x580]
xor rcx, rsp
call fcn.1401931f0
mov rbx, qword [rsp + 0x5b0]
add rsp, 0x590
pop rdi
ret
mov rdx, qword [rsp + 0x148]
mov rcx, rdi
call fcn.140162580
jmp 0x1400cf62b
Function at 0x1400d0480
Capabilities:
Log keystrokes

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rcx
call qword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
jne 0x1400d04ae
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetLastActivePopup]
lea rcx, str.GetLastActivePopup__p_n
mov rdx, rax
mov rbx, rax
call fcn.1400b1c70
mov rcx, rbx
call qword [sym.imp.USER32.dll_OpenIcon]
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x1400d053a
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.SetForegroundWindow_failed__08x_n
mov edx, eax
call fcn.1400b1c70
cmp byte [0x1401f346a], 0
je 0x1400d053a
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rdi
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp edi, eax
mov esi, eax
je 0x1400d0530
mov r8d, 1
mov edx, eax
mov ecx, edi
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetForegroundWindow]
xor r8d, r8d
mov edx, esi
mov ecx, edi
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetActiveWindow]
test rax, rax
jne 0x1400d055c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.SetActiveWindow_failed__08x_n
mov edx, eax
call fcn.1400b1c70
mov edx, 0xffffffec
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowLongW]
mov dword [rsp + 0x30], 3
movzx ecx, al
shr ecx, 3
and ecx, 1
neg ecx
mov rcx, rbx
sbb rdx, rdx
xor eax, eax
xor r9d, r9d
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x1400d05ba
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.SetForegroundWindow2_failed__08x_n
mov edx, eax
call fcn.1400b1c70
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetFocus]
mov rcx, rbx
add rsp, 0x40
pop rbx
jmp qword [sym.imp.USER32.dll_BringWindowToTop]

Function at 0x1400d05e0
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
lea ecx, [rbx + 0x10]
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 4
test ax, ax
cmovs ebx, ecx
mov ecx, setsockopt
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x1400d060f
or ebx, 1
mov ecx, setsockopt
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x1400d0622
or ebx, 2
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x1400d0635
or ebx, 8
mov ecx, 0x5c
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x1400d0648
or ebx, 8
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x1400d0eb0
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x4b0
mov rax, qword [0x1401f22c8]
xor rax, rsp
mov qword [rsp + 0x4a0], rax
mov rdi, rcx
lea rcx, [rsp + 0x60]
mov r12, r9
mov rbp, r8
mov rbx, rdx
xor esi, esi
call fcn.1401617b0
lea rcx, [rsp + 0x60]
mov rdx, rbx
call fcn.140167a80
mov rdx, qword [rsp + 0x68]
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov rcx, rdi
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
lea rcx, [rsp + 0x60]
mov ebx, 1
cmove esi, ebx
call fcn.140001150
test esi, esi
je 0x1400d0fcb
lea rcx, [rsp + 0x60]
call fcn.1401617b0
lea rcx, [rsp + 0x280]
call fcn.1401617b0
lea rcx, [rsp + 0x60]
mov rdx, r12
call fcn.140167a80
test rbp, rbp
lea rcx, [rsp + 0x280]
je 0x1400d0f80
mov rdx, rbp
call fcn.140167a80
jmp 0x1400d0f85
call fcn.140161fc0
mov eax, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x288]
mov rcx, qword [rsp + 0x50]
lea eax, [rax + rax + 2]
mov r9d, ebx
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea rcx, [rsp + 0x280]
call fcn.140001150
lea rcx, [rsp + 0x60]
call fcn.140001150
mov rcx, qword [rsp + 0x4a0]
xor rcx, rsp
call fcn.1401931f0
add rsp, 0x4b0
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1400d0ff0
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x298
mov rax, qword [0x1401f22c8]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rdi, rcx
lea rcx, [rsp + 0x60]
mov rbp, r8
mov rbx, rdx
mov dword [rsp + 0x50], r9d
xor esi, esi
call fcn.1401617b0
lea rcx, [rsp + 0x60]
mov rdx, rbx
call fcn.140167a80
mov rdx, qword [rsp + 0x68]
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x58]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov rcx, rdi
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
mov ecx, 1
cmove esi, ecx
lea rcx, [rsp + 0x60]
call fcn.140001150
test esi, esi
je 0x1400d10d9
lea rcx, [rsp + 0x60]
call fcn.1401617b0
test rbp, rbp
lea rcx, [rsp + 0x60]
je 0x1400d109f
mov rdx, rbp
call fcn.140167a80
jmp 0x1400d10a4
call fcn.140161fc0
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea rcx, [rsp + 0x60]
call fcn.140001150
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1401931f0
add rsp, 0x298
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400d1100
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x490
mov rax, qword [0x1401f22c8]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rbp, rcx
lea rcx, [rsp + 0x260]
mov rbx, r8
mov r12, rdx
call fcn.1401617b0
lea rcx, [rsp + 0x260]
mov rdx, rbx
call fcn.140167a80
mov esi, 3
lea rdi, [0x1401b7348]
lea r13d, [rsi - 2]
nop
nop
mov ebx, dword [rdi]
lea rcx, [rsp + 0x40]
or ebx, 0x20006
call fcn.1401617b0
lea rcx, [rsp + 0x40]
mov rdx, r12
call fcn.140167a80
mov rdx, qword [rsp + 0x48]
lea r11, [rsp + 0x30]
mov r9d, ebx
xor r8d, r8d
mov rcx, rbp
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ebx, ebx
test eax, eax
lea rcx, [rsp + 0x40]
cmove ebx, r13d
call fcn.140001150
test ebx, ebx
je 0x1400d11d1
mov rdx, qword [rsp + 0x268]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rdi, 4
sub rsi, r13
jne 0x1400d1160
lea rcx, [rsp + 0x260]
call fcn.140001150
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.1401931f0
mov rbx, qword [rsp + 0x4d8]
add rsp, 0x490
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400d3e10
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push r12
sub rsp, 0x30
xor esi, esi
cmp r8d, 0x40
mov ebx, r8d
mov r12, rdx
mov rbp, rcx
jb 0x1400d3fc9
mov rcx, rbx
mov qword [rsp + 0x50], rdi
call fcn.1400be650
xor r8d, r8d
xor edx, edx
mov rcx, rbp
mov rdi, rax
call fcn.1400ca3d0
test eax, eax
je 0x1400d3f98
lea r9, [rsp + 0x60]
mov r8d, ebx
mov rdx, rdi
mov rcx, rbp
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400d3f67
cmp dword [rsp + 0x60], ebx
jne 0x1400d3f36
lea r10, [rdi + 3]
lea r9, str.ReFS
lea r8d, [rsi + 4]
mov rdx, r10
sub r9, r10
nop
nop
nop
movzx eax, byte [r9 + rdx]
movzx ecx, byte [rdx]
sub ecx, eax
jne 0x1400d3f04
add rdx, 1
sub r8d, 1
jne 0x1400d3ea0
mov rdx, qword [rdi + 0x38]
mov qword [r12], rdx
movzx ecx, byte [rdi + 0x28]
movzx eax, byte [rdi + 0x29]
mov r9d, dword [rdi + 0x24]
mov r8d, dword [rdi + 0x20]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
lea rcx, str.serial_number__I64x__sector_size__u__sectors_per_cluster__u__version__u._u_n
call fcn.1400b1c70
mov rcx, rdi
mov esi, 1
call fcn.1400be6d0
mov rdi, qword [rsp + 0x50]
mov eax, esi
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop r12
pop rsi
pop rbp
ret
lea rcx, str.bad_ReFS_signature:__t_n
mov r8d, 4
mov rdx, r10
call fcn.1400b1c70
mov rcx, rdi
call fcn.1400be6d0
mov rdi, qword [rsp + 0x50]
mov eax, esi
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop r12
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.failed_to_read_all_refs_boot_record__u_n
mov edx, eax
call fcn.1400b1c70
mov rcx, rdi
call fcn.1400be6d0
mov rdi, qword [rsp + 0x50]
mov eax, esi
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop r12
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.failed_to_read_refs_boot_record__u_n
mov edx, eax
call fcn.1400b1c70
mov rcx, rdi
call fcn.1400be6d0
mov rdi, qword [rsp + 0x50]
mov eax, esi
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop r12
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.failed_to_set_file_pointer_to_refs_boot_record__u_n
mov edx, eax
call fcn.1400b1c70
mov rcx, rdi
call fcn.1400be6d0
mov rdi, qword [rsp + 0x50]
mov eax, esi
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop r12
pop rsi
pop rbp
ret
lea rcx, str.bad_refs_sector_size__u_n
mov edx, ebx
call fcn.1400b1c70
mov rbx, qword [rsp + 0x58]
mov eax, esi
add rsp, 0x30
pop r12
pop rsi
pop rbp
ret
Function at 0x1400d8610
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
add rcx, 0xa8
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [rdi + 0x120]
lea rcx, [rdi + 0xa8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rbx, rbx
je 0x1400d8752
mov qword [rsp + 0x48], rbp
xor ebp, ebp
cmp dword [rbx + 0x10], ebp
je 0x1400d86c7
cmp dword [rdi + 0x70], ebp
je 0x1400d868a
mov rcx, qword [rdi]
lea rdx, [rdi + 8]
lea r8, [rsp + 0x40]
xor r9d, r9d
mov dword [rdi + 0x70], ebp
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x1400d871f
mov ecx, dword [rsp + 0x40]
add qword [rbx + 8], rcx
sub dword [rbx + 0x10], ecx
jmp 0x1400d86c2
mov rcx, qword [rdi]
mov dword [rdi + 0x18], ebp
mov dword [rdi + 0x1c], ebp
mov r8d, dword [rbx + 0x10]
mov rdx, qword [rbx + 8]
lea rax, [rdi + 8]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400d8762
mov edx, dword [rsp + 0x40]
add qword [rbx + 8], rdx
sub dword [rbx + 0x10], edx
cmp dword [rbx + 0x10], ebp
jne 0x1400d8658
lea rcx, [rdi + 0xa8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r11, qword [rbx]
lea rcx, [rdi + 0xa8]
mov qword [rdi + 0x120], r11
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, rbx
call fcn.1400be6d0
lea rcx, [rdi + 0xa8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [rdi + 0x120]
lea rcx, [rdi + 0xa8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rbx, rbx
jne 0x1400d8653
jmp 0x1400d874d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e4
je 0x1400d876f
mov rcx, qword [rdi + 0xa0]
xor r8d, r8d
lea edx, [r8 + 3]
call qword [rdi + 0x98]
mov rcx, qword [rdi + 0x80]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1400d872c
mov dword [rdi + 0x70], 1
jmp 0x1400d874d