joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002d2c0
Capabilities:
Query or enumerate registry key

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
push rsi
sub rsp, 0x60
mov rsi, rcx
lea rax, [r11 + 0x20]
xor ecx, ecx
mov rbx, r8
mov qword [r11 - 0x10], rcx
mov ebp, edx
mov qword [r11 - 0x18], rcx
xor r9d, r9d
mov qword [r11 - 0x20], rcx
xor r8d, r8d
mov qword [r11 - 0x28], rcx
xor edx, edx
mov qword [r11 - 0x30], rcx
mov qword [r11 - 0x38], rcx
mov qword [r11 - 0x40], rax
mov qword [r11 - 0x48], rcx
mov dword [r11 + 0x20], ecx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x14002d36f
mov eax, dword [rsp + 0x88]
mov rcx, qword [rbx]
inc eax
mov qword [rsp + 0x70], rdi
mov dword [rsp + 0x88], eax
lea rdi, [rax*2 + 2]
mov rdx, rdi
call fcn.140059dcc
mov qword [rbx], rax
test rax, rax
je 0x14002d354
mov r8, rdi
xor edx, edx
mov rcx, rax
call fcn.14004e310
mov r9d, dword [rsp + 0x88]
mov edx, ebp
mov r8, qword [rbx]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov rdi, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x60
pop rsi
ret

Function at 0x14002d390
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbp
push rsi
push r14
push r15
sub rsp, 0x70
mov rbp, rcx
lea rax, [r11 - 0x24]
xor ecx, ecx
mov r14, r9
mov qword [r11 - 0x30], rcx
mov rsi, r8
mov qword [r11 - 0x38], rcx
mov r15d, edx
mov qword [r11 - 0x40], rax
xor r9d, r9d
lea rax, [r11 - 0x28]
mov dword [rsp + 0x60], ecx
mov qword [r11 - 0x48], rax
xor r8d, r8d
mov qword [r11 - 0x50], rcx
xor edx, edx
mov qword [r11 - 0x58], rcx
mov qword [r11 - 0x60], rcx
mov qword [r11 - 0x68], rcx
mov dword [rsp + 0x64], ecx
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x14002d4b5
mov eax, dword [rsp + 0x60]
mov rcx, qword [rsi]
inc eax
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0x98], rdi
mov dword [rsp + 0x60], eax
lea rbx, [rax*2 + 2]
mov rdx, rbx
call fcn.140059dcc
mov qword [rsi], rax
test rax, rax
je 0x14002d439
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.14004e310
mov edi, dword [rsp + 0x64]
mov rbx, qword [rsp + 0xb8]
inc edi
and rdi, 0xfffffffffffffffe
mov rcx, qword [rbx]
lea rdx, [rdi + 2]
call fcn.140059dcc
mov qword [rbx], rax
test rax, rax
je 0x14002d46d
lea r8, [rdi + 2]
xor edx, edx
mov rcx, rax
call fcn.14004e310
mov rax, qword [rbx]
lea rcx, [rsp + 0x64]
mov r8, qword [rsi]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x38], rcx
mov edx, r15d
mov qword [rsp + 0x30], rax
mov rcx, rbp
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov rdi, qword [rsp + 0x98]
mov rbx, qword [rsp + 0x90]
mov rbp, qword [rsp + 0xa0]
add rsp, 0x70
pop r15
pop r14
pop rsi
ret
Function at 0x14002d4d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
push r14
push r15
sub rsp, 0x40
mov r14, rcx
lea rax, [rsp + 0x30]
xor ecx, ecx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x30], ecx
mov r15, r9
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov rcx, r14
mov rsi, r8
mov rbp, rdx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14002d57b
mov qword [rsp + 0x60], rbx
mov rbx, qword [rsp + 0x80]
mov qword [rsp + 0x68], rdi
mov edi, dword [rsp + 0x30]
inc edi
mov rcx, qword [rbx]
and rdi, 0xfffffffffffffffe
lea rdx, [rdi + 2]
call fcn.140059dcc
mov qword [rbx], rax
test rax, rax
je 0x14002d54d
lea r8, [rdi + 2]
xor edx, edx
mov rcx, rax
call fcn.14004e310
lea rax, [rsp + 0x30]
mov r9, r15
mov qword [rsp + 0x28], rax
mov r8, rsi
mov rax, qword [rbx]
mov rdx, rbp
mov rcx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rdi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rsi
ret

Function at 0x14002d590
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x20
mov rbx, r8
mov dword [rsp + 0x48], 0
xor r8d, r8d
lea r9, [rsp + 0x48]
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
jne 0x14002d60f
mov eax, dword [rsp + 0x48]
mov rcx, qword [rbx]
inc eax
mov qword [rsp + 0x30], rdi
movsxd rdi, eax
and rdi, 0xfffffffffffffffe
lea rdx, [rdi + 2]
call fcn.140059dcc
mov qword [rbx], rax
test rax, rax
je 0x14002d5f6
lea r8, [rdi + 2]
xor edx, edx
mov rcx, rax
call fcn.14004e310
mov r8, qword [rbx]
lea r9, [rsp + 0x48]
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
Function at 0x14002f8e0
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x78
mov rax, qword [0x1400a3758]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor ebx, ebx
mov dword [rsp + 0x20], 0xf0000000
mov rsi, r9
mov qword [rsp + 0x40], rbx
mov r14d, r8d
mov qword [rsp + 0x38], rbx
mov rbp, rdx
mov r15d, ecx
lea r9d, [rbx + 0x18]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov edi, eax
test eax, eax
jne 0x14002f95c
lea r9d, [rbx + 1]
mov dword [rsp + 0x20], 0xf0000000
xor r8d, r8d
lea rcx, [rsp + 0x40]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov edi, eax
test eax, eax
je 0x14002fa58
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, r15d
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x14002fa4b
mov rcx, qword [rsp + 0x38]
xor r9d, r9d
mov r8d, r14d
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x14002fa40
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x30]
xorps xmm0, xmm0
mov dword [rsp + 0x30], 0x20
lea r8, [rsp + 0x48]
mov dword [rsp + 0x20], ebx
mov edx, 2
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm0
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x14002fa40
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsi]
lea eax, [rax*2 + 1]
lea rdi, [rax*2 + 2]
mov rdx, rdi
call fcn.140059dcc
mov qword [rsi], rax
test rax, rax
je 0x14002fa08
mov r8, rdi
xor edx, edx
mov rcx, rax
call fcn.14004e310
cmp dword [rsp + 0x30], ebx
jbe 0x14002fa3b
nop
mov eax, ebx
lea ecx, [rbx + rbx]
lea r8, str._02X
mov edx, 4
movzx r9d, byte [rsp + rax + 0x48]
mov rax, qword [rsi]
lea rcx, [rax + rcx*2]
call fcn.140005c50
inc ebx
cmp ebx, dword [rsp + 0x30]
jb 0x14002fa10
mov edi, 1
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x40]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test edi, edi
setne al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14004bd30
add rsp, 0x78
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14003f730
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x1400a3758]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rcx
mov qword [rsp + 0x38], rcx
xor esi, esi
mov word [rsp + 0x40], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x42]
call fcn.14004e310
mov rcx, qword [0x1400a5b88]
test rcx, rcx
jne 0x14003f79c
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rsi + 0x1c]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
jmp 0x14003f804
add rcx, 0x418
lea rdx, [rsp + 0x40]
sub rdx, rcx
nop dword [rax + rax]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x14003f7b0
lea rcx, [rsp + 0x40]
sub rcx, 2
nop dword [rax]
lea rcx, [rcx + 2]
cmp word [rcx], si
jne 0x14003f7d0
movups xmm0, xmmword [str.AppDataLocal]
movups xmmword [rcx], xmm0
movsd xmm0, qword [0x14008a220]
movsd qword [rcx + 0x10], xmm0
mov eax, dword [0x14008a228]
mov dword [rcx + 0x18], eax
movzx eax, word [0x14008a22c]
mov word [rcx + 0x1c], ax
lea rax, [rsp + 0x40]
sub rax, 2
nop dword [rax]
lea rax, [rax + 2]
cmp word [rax], si
jne 0x14003f810
movaps xmm0, xmmword [str.MicrosoftWindows_SidebarSettings.ini]
movups xmmword [rax], xmm0
movaps xmm1, xmmword [0x14008a240]
movups xmmword [rax + 0x10], xmm1
movaps xmm0, xmmword [0x14008a250]
movups xmmword [rax + 0x20], xmm0
movaps xmm1, xmmword [0x14008a260]
movups xmmword [rax + 0x30], xmm1
movaps xmm0, xmmword [0x14008a270]
movups xmmword [rax + 0x40], xmm0
mov ecx, 0x18
call fcn.14004bd50
mov rbx, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x14003f886
mov qword [rax + 8], rsi
mov dword [rax + 0x10], 1
lea rcx, [rsp + 0x40]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
je 0x14003f8c4
jmp 0x14003f889
mov rbx, rsi
mov qword [rdi], rbx
test rbx, rbx
je 0x14003f8b9
mov rax, rdi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14004bd30
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov ecx, 0x8007000e
call fcn.14004dd40
nop
mov ecx, 0x8007000e
call fcn.14004dd40
int3
Function at 0x14004bb20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14004bb98
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x14004bb98
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x14004bb85
nop
cmp rbx, rcx
jae 0x14004bb98
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x14004bb70
cmp rbx, rcx
jae 0x14004bb98
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
jmp 0x14004bb9a
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14004ca78
Capabilities:
Parse pe header

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

Function at 0x14005af64
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 0x14005adcf
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14005adcf
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14005adcf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14005adcf
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14005adcf
cmp dword [rcx + 0x84], 0xe
jbe 0x14005adcf
cmp dword [rcx + 0xf8], 0
je 0x14005adcf
mov ecx, ebx
call fcn.14005ae80
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.14005ac5c
nop
cmp dword [rbp + 0x20], 0
je 0x14005ae1d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14005ae28
int3
xor r8d, r8d
xor edx, edx
jmp 0x14005ad60
Function at 0x140064160
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x140064197
call fcn.14005a36c
mov dword [rax], 0x16
call fcn.14005a158
xor eax, eax
jmp 0x140064225
mov rdx, r9
mov rcx, r8
call fcn.1400640fc
mov rbx, rax
test rax, rax
je 0x140064222
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140064028]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14006420f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14005a2e0
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400641f6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140064205
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140065e00
jmp 0x140064222
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14006421f
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140069960
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14004c450
sub rsp, rax
mov rax, qword [0x1400a3758]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14005b384
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400699af
mov rax, rbp
jmp 0x140069ab7
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0xa7340]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14006ea90
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xa7340]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140069ab3
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140069ab3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14006ea90
test rax, rax
js 0x140069ab3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140069ab3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140069aa5
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140069aa5
cmp byte [rcx], 0xd
jne 0x140069a8b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140069a9a
cmp byte [rcx + 1], 0xa
jne 0x140069a9a
inc rcx
jmp 0x140069a9a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xa40c0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140069a6d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140069ab7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14004bd30
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x14006a3dc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14006a3f2
mov al, 1
jmp 0x14006a452
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14006a403
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14006a450
mov ecx, dword [rcx + 0x18]
nop
call fcn.14005b858
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14006a450
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14006a450
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14006a450
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14006a452
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14006bb18
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 0x14006bb9f
mov rsi, rbx
cmp word [rax], bp
je 0x14006bb5e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14006bb48
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14006bb44
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140065e3c
mov rdi, rax
test rax, rax
je 0x14006bb8c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14004fcc0
mov rbp, rdi
xor ecx, ecx
call fcn.140065e00
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 0x14006eb78
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1400a7340]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14006ebcf
cmp word [rdx], r13w
jne 0x14006ebcf
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14006ebd4
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14006ecf9
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14006ed1a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14006ec0d
mov rdx, r9
mov word [rbx], cx
jmp 0x14006ec34
cmp r9, r8
jae 0x14006ec44
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14006ebee
jmp 0x14006ecf9
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14006ecee
cmp dword [rsp + 0x80], esi
je 0x14006ecee
lea r8, [0x1400a7340]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14006ecc6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14006ec96
mov word [rbx], r13w
jmp 0x14006ecf6
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14006eca3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14006ecf6
cmp word [rsp + 0x70], r13w
jne 0x14006ecd3
cmp rbx, r14
je 0x14006ec90
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14006ea98
cmp word [rsp + 0x70], r13w
je 0x14006ecf9
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400a7340]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14006ecf3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14006ecf9
Function at 0x140071a50
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14006ea98
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14006ea98
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140071ba0
cmp rax, 0xffffffffffffffff
je 0x140071ba0
xor edi, edi
test rbp, rbp
jle 0x140071b4b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140067aa8
mov rbx, rax
test rax, rax
jne 0x140071ad8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140071b41
mov edx, 0x8000
mov ecx, r14d
call fcn.14005ba5c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.140068fe0
cmp eax, 0xffffffff
je 0x140071b21
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140071ae8
mov edx, r15d
mov ecx, r14d
call fcn.14005ba5c
jmp 0x140071b41
cmp byte [rsi + 0x38], dil
je 0x140071b38
cmp dword [rsi + 0x34], 5
jne 0x140071b38
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140071b41
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140065e00
jmp 0x140071bb4
jns 0x140071bb4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14006ea98
cmp rax, 0xffffffffffffffff
jne 0x140071b6c
cmp byte [rsi + 0x30], dil
je 0x140071bb4
mov edi, dword [rsi + 0x2c]
jmp 0x140071bb4
mov ecx, r14d
call fcn.14005b858
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140071bb4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140071bb4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140071bad
mov eax, dword [rsi + 0x2c]
jmp 0x140071bb2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14006ea98
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140004140
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
mov rax, qword gs:[0x30]
mov rbp, qword [rcx + 0x88]
mov r12, r8
mov r9, qword [rax + 0x60]
lea rax, [0x1400c6a00]
mov esi, edx
sub rbp, qword [r9 + 0x10]
mov rdi, rcx
xor edx, edx
mov r8d, 0x4478
add rcx, 0x818
mov qword [rsp + 0x60], 0
add rbp, rax
call sym.VBoxNetNAT.exe_nocrt_memset
mov rcx, qword [rdi]
lea r11, [rsp + 0x60]
lea r8, [rdi + 0x818]
mov r9d, 0x4478
mov rdx, rbp
mov qword [rsp + 0x20], r11
call qword [0x1400c4250]
test eax, eax
jns 0x1400041e3
mov dword [rsp + 0x28], eax
lea r9, str.NtReadVirtualMemory___p___failed_reading_child_process_status:__x_n
lea rdx, str.supR3HardNtChildProcessRequest
mov r8d, eax
mov rcx, rdi
mov qword [rsp + 0x20], rbp
call fcn.140003f40
int3
mov edx, dword [rdi + 0x830]
cmp edx, esi
je 0x140004307
mov r9d, dword [rdi + 0x838]
mov r8d, dword [rdi + 0x834]
lea rbx, [rdi + 0x88c]
lea rbp, [rdi + 0x83c]
lea rcx, str.supR3HardenedWinCheckChild:_enmRequest_d_rc_d_enmWhat_d__s:__s_n
mov qword [rsp + 0x28], rbx
mov byte [rdi + 0x4c8b], 0
mov byte [rdi + 0x88b], 0
mov qword [rsp + 0x20], rbp
call fcn.14000a700
mov r11d, dword [rdi + 0x830]
cmp r11d, 2
je 0x140004269
mov qword [rsp + 0x30], r12
lea r9, str.Unexpected_child_request__d._Was_expecting__d___s_._n
lea rdx, str.supR3HardenedWinCheckChild
mov r8d, 0xfffffffe
mov rcx, rdi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], r11d
call fcn.140003f40
int3
mov rcx, qword [rdi + 0x18]
xor edx, edx
call qword [0x1400c42a0]
test eax, eax
jns 0x140004297
lea r9, str.NtSetEvent_failed:__x_n
lea rdx, str.supR3HardNtChildProcessRequest
mov r8d, eax
mov rcx, rdi
mov dword [rsp + 0x20], eax
call fcn.140003f40
int3
mov rcx, qword [rdi]
lea r8, [rsp + 0x78]
xor edx, edx
mov qword [rsp + 0x78], 0xfffffffffd050f80
call fcn.14000c94f
test eax, eax
je 0x1400042cf
lea rcx, str.supR3HardNtChildProcessRequest:_Child_is_taking_too_long_to_quit__rcWait_x___killing_it..._n
mov edx, eax
call fcn.14000a700
mov rcx, qword [rdi]
mov edx, 0x40010004
call qword [0x1400c4320]
mov edx, dword [rdi + 0x838]
mov r8d, dword [rdi + 0x834]
mov qword [rsp + 0x20], rbx
lea r9, [0x14007bf3c]
test edx, edx
jne 0x1400042fe
lea rcx, str.supR3HardenedWinCheckChild
mov edx, 5
call fcn.14000b660
int3
mov rcx, rbp
call fcn.14000b660
int3
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret