joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001010
Capabilities:
Print debug messages

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rbx
push rdi
sub rsp, 0x848
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x830], rax
mov rbx, rcx
lea rdi, [r11 + 0x10]
call fcn.140001000
mov qword [rsp + 0x28], rdi
lea rdx, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x20], 0
mov r8d, 0x400
mov rcx, qword [rax]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vswprintf_s]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x830]
xor rcx, rsp
call fcn.1400035c0
add rsp, 0x848
pop rdi
pop rbx
ret

Function at 0x140001be0
Capabilities:
Print debug messages

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rbx
push rdi
sub rsp, 0x448
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x430], rax
mov rbx, rcx
lea rdi, [r11 + 0x10]
call fcn.140001000
mov qword [rsp + 0x28], rdi
lea rdx, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x20], 0
mov r8d, 0x400
mov rcx, qword [rax]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vsprintf_s]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.1400035c0
add rsp, 0x448
pop rdi
pop rbx
ret
Function at 0x140006330
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
xor r12d, r12d
mov r14, r8
mov r15, rdx
mov rbx, rcx
mov edi, r12d
test r8, r8
je 0x140006436
lea rsi, [rcx + 0x88]
nop word [rax + rax]
mov rax, qword [rbx + 0xa0]
lea rdx, [rdi + r15]
mov rcx, qword [rbx + 0x30]
mov r8d, r14d
mov qword [rsp + 0x30], rax
sub r8d, edi
mov rax, qword [rbx + 0x40]
xor r9d, r9d
mov qword [rsp + 0x38], rax
mov ebp, r12d
mov dword [rsp + 0x80], r12d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400063ca
mov rcx, qword [rbx + 0x30]
lea r8, [rsp + 0x80]
xor r9d, r9d
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
jmp 0x14000641a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x14000641a
xor r8d, r8d
lea rdx, [rsp + 0x30]
or r9d, 0xffffffff
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x14000640b
mov rcx, qword [rbx + 0x30]
lea r8, [rsp + 0x80]
xor r9d, r9d
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
jmp 0x14000641a
cmp eax, 1
jne 0x14000641a
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_CancelIo]
movsxd rax, dword [rsp + 0x80]
test eax, eax
je 0x14000644f
mov ebp, eax
jle 0x14000647f
add rdi, rax
cmp rdi, r14
jb 0x140006370
mov eax, edi
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
cmp byte [rbx + 0xa8], bpl
je 0x14000647f
or rdi, 0xffffffffffffffff
xchg qword [rbx + 0x30], rdi
cmp rdi, 0xffffffffffffffff
je 0x140006478
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [rbx + 0xa8], bpl
mov eax, ebp
jmp 0x140006438
Function at 0x140006590
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
xor r12d, r12d
mov r14, r8
mov r15, rdx
mov rbx, rcx
mov edi, r12d
test r8, r8
je 0x140006696
lea rsi, [rcx + 0x68]
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rbx + 0x80]
lea rdx, [rdi + r15]
mov rcx, qword [rbx + 0x30]
mov r8d, r14d
mov qword [rsp + 0x30], rax
sub r8d, edi
mov rax, qword [rbx + 0x40]
xor r9d, r9d
mov qword [rsp + 0x38], rax
mov ebp, r12d
mov dword [rsp + 0x80], r12d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000662a
mov rcx, qword [rbx + 0x30]
lea r8, [rsp + 0x80]
xor r9d, r9d
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
jmp 0x14000667a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x14000667a
xor r8d, r8d
lea rdx, [rsp + 0x30]
or r9d, 0xffffffff
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x14000666b
mov rcx, qword [rbx + 0x30]
lea r8, [rsp + 0x80]
xor r9d, r9d
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
jmp 0x14000667a
cmp eax, 1
jne 0x14000667a
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_CancelIo]
movsxd rax, dword [rsp + 0x80]
test eax, eax
je 0x1400066af
mov ebp, eax
jle 0x1400066df
add rdi, rax
cmp rdi, r14
jb 0x1400065d0
mov eax, edi
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
cmp byte [rbx + 0xa8], bpl
je 0x1400066df
or rdi, 0xffffffffffffffff
xchg qword [rbx + 0x30], rdi
cmp rdi, 0xffffffffffffffff
je 0x1400066d8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [rbx + 0xa8], bpl
mov eax, ebp
jmp 0x140006698
Function at 0x1400068a0
Capabilities:
Connect pipe
Create pipe

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x50
mov rax, qword [rcx + 0x60]
mov rbx, rcx
mov qword [rsp + 0x40], rax
mov rsi, rdx
mov rax, qword [rcx + 0x40]
add rcx, 0x10
mov qword [rsp + 0x48], rax
cmp qword [rcx + 0x18], 0x10
jb 0x1400068d0
mov rcx, qword [rcx]
xor eax, eax
mov r9d, 0xff
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov dword [rsp + 0x30], eax
mov edx, 0x40000003
mov eax, dword [rbx]
mov dword [rsp + 0x28], eax
mov eax, dword [rbx + 8]
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov qword [rbx + 0x30], rax
cmp rax, 0xffffffffffffffff
jne 0x140006913
xor eax, eax
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rsi
ret
lea rdx, [rbx + 0x48]
mov qword [rsp + 0x68], rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x140006993
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x140006993
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x140006977
xor r8d, r8d
lea rdx, [rsp + 0x40]
or r9d, 0xffffffff
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x140006977
mov rcx, qword [rbx + 0x30]
lea r8, [rsp + 0x60]
xor r9d, r9d
lea rdx, [rbx + 0x48]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x140006993
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x68]
xor eax, eax
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rsi
ret
mov ecx, 0xb0
call fcn.1400035e4
mov r9, qword [rbx + 8]
mov rcx, rax
mov r8, qword [rbx]
mov rdx, qword [rbx + 0x30]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x20], rsi
call fcn.140006a90
mov rdi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rsi
ret
Function at 0x1400087f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rdi
sub rsp, 0x20
mov eax, dword [rcx + 0xc]
mov rdi, rcx
dec eax
cmp eax, 1
ja 0x1400088de
cmp qword [rcx + 0x40], 0
mov qword [rsp + 0x30], rbx
je 0x140008850
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [rdi + 0x40]
or edx, 0xffffffff
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
lea rdx, [0x14000b888]
mov r8d, eax
lea rcx, str._s:_stop_ui_pipe_thread_cost__dms_n
call fcn.140001be0
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rdi + 0x48], 0
je 0x140008894
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [rdi + 0x48]
or edx, 0xffffffff
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
lea rdx, str.remote_opengl::stop
mov r8d, eax
lea rcx, str._s:_stop_linux_thread_cost__dms_n
call fcn.140001be0
mov rcx, qword [rdi + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi + 0x138]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rdi + 0x150]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rcx, qword [rdi + 0x178]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14003d864
Capabilities:
Parse pe header

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

Function at 0x140042dec
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140042be8
Function at 0x14004f3a4
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14004f3d4
xor eax, eax
jmp 0x14004f497
mov rbp, rbx
cmp word [rax], si
je 0x14004f3f9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14004f3e0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14004f3dc
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14004f2c4
movsxd r14, eax
test eax, eax
jne 0x14004f437
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14004f3cd
mov rcx, r14
call fcn.14004cb0c
mov rdi, rax
test rax, rax
jne 0x14004f450
xor ecx, ecx
call fcn.14004bde0
jmp 0x14004f42c
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14004f2c4
test eax, eax
jne 0x14004f481
mov rcx, rdi
call fcn.14004bde0
jmp 0x14004f48b
xor ecx, ecx
call fcn.14004bde0
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x14004f4b4
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 0x14004f53b
mov rsi, rbx
cmp word [rax], bp
je 0x14004f4fa
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14004f4e4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14004f4e0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14004cb0c
mov rdi, rax
test rax, rax
je 0x14004f528
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14003e6b0
mov rbp, rdi
xor ecx, ecx
call fcn.14004bde0
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 0x140053c18
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140053c2e
mov al, 1
jmp 0x140053c8e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140053c3f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140053c8c
mov ecx, dword [rcx + 0x18]
nop
call fcn.14004fedc
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140053c8c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140053c8c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140053c8c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140053c8e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400542b8
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140041938
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140054342
cmp byte [rbp - 0x21], r15b
je 0x14005433d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140054378
call fcn.14004c0e0
test eax, eax
jne 0x140054364
cmp byte [rbp - 0x21], r15b
je 0x14005435c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140054378
cmp byte [rbp - 0x21], r15b
je 0x140054375
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14004dfdc
test eax, eax
jne 0x140054418
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140041938
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400543b7
cmp byte [rbp - 0x21], r15b
je 0x1400543ec
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400543ec
call fcn.14004c0e0
test eax, eax
jne 0x1400543d8
cmp byte [rbp - 0x21], r15b
je 0x1400543d1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400543ec
cmp byte [rbp - 0x21], r15b
je 0x1400543e9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14004dfdc
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140054418
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14005441b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140054429
mov rcx, rdi
call fcn.14004bde0
cmp byte [rbp + 0x3f], r15b
je 0x140054438
mov rcx, qword [rbp + 0x27]
call fcn.14004bde0
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x100001000
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x10001d1d0]
jne 0x100006be4
rol rcx, 0x10
test cx, 0xffff
jne 0x100006be0
ret 0
ror rcx, 0x10
jmp 0x1000132bc
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x10001d3f0]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov r11, qword [0x10001d4e8]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.ntdll.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x100013341
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x10001d3f0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.ntdll.dll_RtlVirtualUnwind
jmp 0x100013363
mov rax, qword [rsp + 0x88]
mov qword [0x10001d4e8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x10001d488], rax
mov rax, qword [0x10001d4e8]
mov qword [0x10001d360], rax
mov rax, qword [rsp + 0x90]
mov qword [0x10001d470], rax
mov dword [0x10001d350], 0xc0000409
mov dword [0x10001d354], 1
mov rax, qword [0x10001d1d0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x10001d1d8]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x100016b50]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x100001524
Capabilities:
Delete file
Enumerate disk volumes
Get disk information
Read file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r12
sub rsp, 0x4a0
mov rax, qword [0x10001d1d0]
xor rax, rsp
mov qword [rsp + 0x490], rax
lea rcx, [r11 - 0x228]
mov edx, 0x105
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x10000167e
xor r12d, r12d
lea rcx, [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x100001655
lea r8, [rsp + 0x280]
lea rax, [rsp + 0x50]
mov edx, 0x118
sub r8, rax
lea rcx, [rsp + 0x50]
lea rax, [rdx + 0x7ffffee6]
cmp rax, r12
je 0x1000015c9
movzx eax, word [r8 + rcx]
cmp ax, r12w
je 0x1000015c9
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x1000015a5
cmp rdx, r12
je 0x100008eca
mov word [rcx], r12w
lea r8, str.bootex.log
lea rcx, [rsp + 0x50]
mov edx, 0x118
call fcn.1000016b4
xor r9d, r9d
mov qword [rsp + 0x30], r12
lea rcx, [rsp + 0x50]
lea r8d, [r9 + 1]
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x40], r12d
mov rdi, r12
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x100008ed3
mov ebx, r12d
cmp ebx, 1
je 0x100008f1a
cmp rdi, r12
jne 0x100008f54
cmp rbp, 0xffffffffffffffff
jne 0x100008f63
cmp ebx, r12d
jne 0x100008f72
lea rdx, [rsp + 0x280]
mov r8d, 0x105
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextVolumeW]
cmp eax, r12d
jne 0x100001574
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.100001000
lea r11, [rsp + 0x4a0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret
sub rcx, 2
jmp 0x1000015d2
mov edx, 0x8000
xor ecx, ecx
mov dword [rsp + 0x40], 0x8000
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
cmp rax, r12
je 0x10000162d
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov rdx, rax
mov rcx, rbp
add r8d, 0xfffffffe
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
jmp 0x100001630
mov eax, dword [rsp + 0x40]
lea ecx, [rbx + 3]
xor r9d, r9d
mov byte [rax + rdi], r12b
mov eax, dword [rsp + 0x40]
xor r8d, r8d
inc eax
mov edx, 0x400003e9
mov qword [rsp + 0x28], rdi
mov byte [rax + rdi], r12b
mov dword [rsp + 0x20], ebx
call fcn.10000ec6c
cmp eax, r12d
cmovne ebx, r12d
jmp 0x100001639
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
jmp 0x100001642
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x10000164c
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
jmp 0x100001655
Function at 0x100002b00
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
sub rsp, 0x38
and qword [rax + 0x20], 0
and dword [rax + 0x18], 0
and dword [rax + 8], 0
cmp dword [0x10001d988], 0
mov dword [rax + 0x10], 4
jne 0x100002b99
lea rax, [rax + 0x20]
lea rdx, str.SYSTEMCurrentControlSetControlWinInit
mov r9d, 1
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
test eax, eax
je 0x100008469
mov rcx, qword [0x10001d1e0]
lea rdx, [0x10001d1e0]
cmp rcx, rdx
je 0x100002b8b
test byte [rcx + 0x1c], 1
je 0x100002b8b
cmp byte [rcx + 0x19], 3
jb 0x100002b8b
mov rcx, qword [rcx + 0x10]
lea r8, [0x100015650]
mov edx, 0x66
mov r9d, eax
call fcn.100001e70
jmp 0x100002b8b
mov rcx, qword [rsp + 0x58]
test rcx, rcx
jne 0x100008501
mov eax, dword [0x10001d98c]
add rsp, 0x38
ret
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x48]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
lea rdx, str.Headless
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
test eax, eax
je 0x1000084e3
mov rcx, qword [0x10001d1e0]
lea rdx, [0x10001d1e0]
cmp rcx, rdx
je 0x100002b8b
test byte [rcx + 0x1c], 1
je 0x100002b8b
cmp byte [rcx + 0x19], 3
jb 0x100002b8b
mov rcx, qword [rcx + 0x10]
lea r8, [0x100015650]
mov edx, 0x67
mov r9d, eax
call fcn.100001e70
jmp 0x100002b8b
xor eax, eax
mov dword [0x10001d988], 1
cmp dword [rsp + 0x40], eax
setne al
mov dword [0x10001d98c], eax
jmp 0x100002b8b
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
nop
jmp 0x100002b99

Function at 0x100002bb0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x50
and dword [rax - 0x28], 0
and qword [rax - 0x18], 0
mov dword [rax - 0x24], 4
lea rax, [rax - 0x18]
mov rbx, r8
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionPoliciesSystem
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x100002c23
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x34]
lea r9, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
test eax, eax
je 0x100002c28
and dword [rsp + 0x30], 0
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x100002c38
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov eax, dword [rsp + 0x30]
add rsp, 0x50
pop rbx
ret
Function at 0x1000031dc
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x20
mov r12, rcx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [0x10001d210]
lea esi, [rax + 0x3c]
mov edx, 8
movsxd r8, esi
add r8, r8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x100008c3d
mov r8d, esi
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rbx, [0x10001d1e0]
jmp 0x10000323b
mov ebp, eax
test eax, eax
je 0x100008ce9
cmp ebp, esi
jg 0x100008c76
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r12
pop rdi
pop rsi
ret
mov rcx, qword [0x10001d1e0]
lea rbx, [0x10001d1e0]
cmp rcx, rbx
je 0x100008c6f
test byte [rcx + 0x1c], 1
je 0x100008c6f
cmp byte [rcx + 0x19], 2
jb 0x100008c6f
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0xa]
lea r8, [0x100018410]
call fcn.10000121c
xor eax, eax
jmp 0x100003250
mov rcx, qword [0x10001d1e0]
cmp rcx, rbx
je 0x100008ca3
test byte [rcx + 0x1c], 1
je 0x100008ca3
cmp byte [rcx + 0x19], 5
jb 0x100008ca3
mov rcx, qword [rcx + 0x10]
lea r8, [0x100018410]
mov edx, 0xc
call fcn.10000121c
lea rcx, [rsp + 0x48]
call fcn.1000031b0
mov rcx, qword [0x10001d210]
movsxd r8, ebp
add r8, r8
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, ebp
mov rdi, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x100008d27
mov r8d, ebp
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop
jmp 0x10000323b
mov rcx, qword [0x10001d1e0]
cmp rcx, rbx
je 0x100008d16
test byte [rcx + 0x1c], 1
je 0x100008d16
cmp byte [rcx + 0x19], 2
jb 0x100008d16
mov rcx, qword [rcx + 0x10]
lea r8, [0x100018410]
mov edx, 0xb
call fcn.10000121c
lea rcx, [rsp + 0x48]
call fcn.1000031b0
xor edi, edi
jmp 0x10000324d
mov rcx, qword [0x10001d1e0]
cmp rcx, rbx
je 0x10000324d
test byte [rcx + 0x1c], 1
je 0x10000324d
cmp byte [rcx + 0x19], 2
jb 0x10000324d
mov rcx, qword [rcx + 0x10]
lea r8, [0x100018410]
mov edx, 0xd
call fcn.10000121c
jmp 0x10000324d