joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400262e4
Capabilities:
Enumerate process modules

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x3a8]
sub rsp, 0x4a0
mov rax, qword [0x14012a418]
xor rax, rsp
mov qword [rbp + 0x390], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
mov ecx, 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
xor edx, edx
lea rcx, [rsp + 0x54]
mov r8d, 0x434
mov rdi, rax
call fcn.14006ec00
mov dword [rsp + 0x50], 0x438
call fcn.140020b4c
lea rdx, [rsp + 0x50]
mov qword [0x14012d760], rax
mov rcx, rdi
call sub.KERNEL32.dll_Module32FirstW
jmp 0x14002646c
xor edx, edx
lea rcx, [rbp + 0x180]
lea r8d, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
xorps xmm0, xmm0
mov rsi, rax
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
test rax, rax
je 0x140026456
mov rcx, qword [rsp + 0x68]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp rax, 0x30
jne 0x140026456
cmp dword [rsp + 0x40], 0x1000
jne 0x140026456
call fcn.140020cf8
lea rcx, [0x1400fc28c]
mov rbx, rax
call fcn.140020e34
mov r8, rax
lea rdx, str.type
mov rcx, rbx
call fcn.140021230
mov rcx, qword [rsp + 0x68]
call fcn.14001fde8
mov r8, rax
lea rdx, str.image_addr
mov rcx, rbx
call fcn.140021230
mov ecx, dword [rsp + 0x70]
call fcn.140020b40
mov r8, rax
lea rdx, str.image_size
mov rcx, rbx
call fcn.140021230
lea rcx, [rbp + 0x180]
call fcn.1400200c8
mov r8, rax
lea rdx, str.code_file
mov rcx, rbx
call fcn.140021230
mov rcx, qword [rsp + 0x68]
mov rdx, rbx
call fcn.140026130
mov rcx, qword [0x14012d760]
mov rdx, rbx
call fcn.1400203b0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rdx, [rsp + 0x50]
mov rcx, rdi
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x140026360
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x14012d760]
call fcn.1400204cc
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.14006b990
lea r11, [rsp + 0x4a0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

Function at 0x140028dd0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rdi, rdx
cmp byte [0x14012d810], bl
mov rsi, rcx
jne 0x140028e2a
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x140028e1a
lea rdx, str.SystemFunction036
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14012d808], rax
jmp 0x140028e21
mov rax, qword [0x14012d808]
mov byte [0x14012d810], 1
jmp 0x140028e31
mov rax, qword [0x14012d808]
test rax, rax
je 0x140028e46
mov edx, edi
mov rcx, rsi
call rax
test al, al
sete bl
mov eax, ebx
jmp 0x140028e4b
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14002a594
Capabilities:
Read file on windows

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 r15, r9
mov r12, r8
mov r14, rdx
mov rdi, rcx
call fcn.1400a33d4
xor edx, edx
mov rcx, r12
and dword [rax], 0
lea r8d, [rdx + 2]
call fcn.1400a90c0
call fcn.1400a33d4
mov rcx, r12
mov ebx, dword [rax]
call fcn.1400cb560
movsxd rsi, eax
call fcn.1400a33d4
xor r8d, r8d
xor edx, edx
mov rcx, r12
or ebx, dword [rax]
call fcn.1400a90c0
call fcn.1400a33d4
or ebx, dword [rax]
jne 0x14002a67d
test esi, esi
js 0x14002a67d
jne 0x14002a60d
lea edx, [rbx + 3]
jmp 0x14002a682
test r15, r15
je 0x14002a61e
cmp rsi, r15
jbe 0x14002a61e
mov edx, 6
jmp 0x14002a682
mov rcx, rsi
call fcn.1400a6c3c
mov qword [r14], rax
test rax, rax
jne 0x14002a633
lea edx, [rax + 7]
jmp 0x14002a682
xor ebx, ebx
test esi, esi
jle 0x14002a65e
mov eax, esi
movsxd rcx, ebx
add rcx, qword [r14]
sub eax, ebx
movsxd r8, eax
mov r9, r12
mov edx, 1
call fcn.1400a8ac4
test rax, rax
je 0x14002a666
add ebx, eax
cmp ebx, esi
jl 0x14002a639
mov qword [r14 + 8], rsi
mov al, 1
jmp 0x14002a68c
mov edx, 2
mov rcx, rdi
call fcn.14002da68
mov rcx, qword [r14]
call fcn.1400a6c28
jmp 0x14002a68a
mov edx, 2
mov rcx, rdi
call fcn.14002da68
xor al, al
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140031d88
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
xor esi, esi
mov r14, rdx
mov eax, esi
mov rdi, rcx
lock xadd dword [rcx + 0x74], eax
test eax, eax
jne 0x140031dc1
lea rdx, str.trying_to_shut_down_non_running_thread
lea ecx, [rsi + 1]
call fcn.140021dd8
jmp 0x140031f14
lea rdx, str.shutting_down_background_worker_thread
or ecx, 0xffffffff
call fcn.140021dd8
mov r9, rdi
lea rdx, [0x140032214]
xor r8d, r8d
mov rcx, rdi
call fcn.140031fa0
cmp qword [0x14012d820], rsi
jne 0x140031e0c
lea rcx, [0x14012d820]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
cmp qword [0x14012d820], rsi
jne 0x140031e0c
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
jmp 0x140031e29
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
imul rax, qword [rsp + 0x40], 0x3e8
cqo
idiv qword [0x14012d820]
lea rcx, [rdi + 0x20]
xor r9d, r9d
lea rbx, [rcx + 8]
mov rbp, rax
mov r8, rbx
lea rdx, [0x1400321fc]
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, rdi
call fcn.140031c6c
test al, al
jne 0x140031efb
cmp qword [0x14012d820], rsi
jne 0x140031e87
lea rcx, [0x14012d820]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
cmp qword [0x14012d820], rsi
jne 0x140031e87
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
jmp 0x140031ea4
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
imul rax, qword [rsp + 0x50], 0x3e8
cqo
idiv qword [0x14012d820]
cmp rax, rbp
jbe 0x140031eb1
sub rax, rbp
cmp rax, r14
ja 0x140031ed6
lea rbx, [rdi + 0x28]
mov r8d, 0xfa
mov rdx, rbx
lea rcx, [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_SleepConditionVariableCS]
mov rcx, rdi
call fcn.140031c6c
test al, al
jne 0x140031eff
jmp 0x140031e60
xchg dword [rdi + 0x74], esi
lea rcx, [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rdx, str.background_thread_failed_to_shut_down_cleanly_within_timeout
mov ecx, 1
call fcn.140021dd8
mov eax, 1
jmp 0x140031f16
lea rbx, [rdi + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rdi]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x140031f2c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
lea rdx, str.starting_background_worker_thread
or ecx, 0xffffffff
call fcn.140021dd8
mov eax, 1
mov rcx, rbx
xchg dword [rbx + 0x74], eax
call fcn.140031c64
xor edi, edi
lea r8, [0x14003221c]
mov qword [rsp + 0x28], rdi
mov r9, rbx
xor edx, edx
mov dword [rsp + 0x20], edi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
jne 0x140031f92
xchg dword [rbx + 0x74], edi
mov rcx, rbx
call fcn.140031948
mov eax, 1
jmp 0x140031f94
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140032684
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor edx, edx
mov rsi, rcx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test eax, eax
jne 0x1400326a7
xor eax, eax
jmp 0x1400326d3
mov rcx, rdi
call fcn.140021858
mov r9, rax
mov r8d, edi
xor edx, edx
mov rcx, rsi
mov rbx, rax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x1400326d0
mov rcx, rbx
call fcn.140021850
jmp 0x1400326a3
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140033178
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0x98]
test rcx, rcx
je 0x14003319c
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rdi + 0xb0]
test rcx, rcx
je 0x1400331ae
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [rdi + 0xc0], 0
je 0x1400332a6
lea rcx, [0x14012d870]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test byte [rdi + 0xc0], 1
je 0x1400331de
mov rcx, qword [rdi + 0xc8]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
test byte [rdi + 0xc0], 2
je 0x1400331f3
mov rcx, qword [rdi + 0xd0]
call fcn.14007d66c
test byte [rdi + 0xc0], 4
je 0x140033208
mov rcx, qword [rdi + 0xd8]
call fcn.14006f2a8
mov rcx, qword [0x14012d860]
mov rax, qword [rcx + 8]
add rax, 0xfffffffffffffff8
cmp qword [rax], rdi
jne 0x140033229
mov qword [rcx + 8], rax
mov rsi, qword [0x14012d860]
jmp 0x14003327b
mov ecx, 2
call fcn.1400a856c
mov rcx, rax
lea rdx, str.warning:_removing_Breakpad_handler_out_of_order_n
call fcn.140003820
mov rsi, qword [0x14012d860]
mov rbx, qword [rsi]
jmp 0x140033275
cmp qword [rbx], rdi
jne 0x140033271
mov rdx, qword [rsi + 8]
lea rcx, [rbx + 8]
mov r8, rbx
call fcn.140032a68
add qword [rsi + 8], 0xfffffffffffffff8
mov rsi, qword [0x14012d860]
jmp 0x140033275
add rbx, 8
cmp rbx, qword [rsi + 8]
jne 0x14003324e
mov rax, qword [rsi + 8]
cmp qword [rsi], rax
jne 0x140033299
mov edx, 1
mov rcx, rsi
call fcn.1400333a0
and qword [0x14012d860], 0
lea rcx, [0x14012d870]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp qword [rdi + 0x18], 0
jne 0x1400332fb
mov rcx, qword [rdi + 0xe0]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rdi + 0xe0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rdi + 0xe0], 0
lea rcx, [rdi + 0xf0]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rcx, qword [rdi + 0x118]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi + 0x120]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
lock xadd dword [0x14012d86c], eax
cmp eax, 1
jne 0x140033318
lea rcx, [0x14012d870]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rcx, qword [rdi + 0x148]
mov esi, 0x20
mov rax, qword [rcx + 8]
and qword [rax], 0
mov rcx, qword [rcx]
test rcx, rcx
je 0x140033347
mov rbx, qword [rcx]
mov rdx, rsi
call fcn.14006b874
mov rcx, rbx
test rbx, rbx
jne 0x140033334
mov rcx, qword [rdi + 0x148]
mov rdx, rsi
call fcn.14006b874
lea rcx, [rdi + 0x60]
call fcn.140002874
lea rcx, [rdi + 0x40]
call fcn.140002874
lea rcx, [rdi + 0x20]
call fcn.140002874
mov rbx, qword [rdi + 0x18]
test rbx, rbx
je 0x14003338f
mov rcx, rbx
call fcn.140034820
mov edx, 0x370
mov rcx, rbx
call fcn.14006b874
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140034a84
Capabilities:
Read pipe
Write file on windows
Write pipe

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x38]
sub rsp, 0x130
mov ebx, dword [rcx + 0x38]
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
movups xmm0, xmmword [rdi + 0x28]
mov dword [rbp - 0x6c], eax
lea r9, [rsp + 0x40]
lea rax, [rdi + 0x5c]
mov dword [rbp - 0x68], ebx
xor ebx, ebx
mov qword [rbp - 0x60], rax
lea rax, [rdi + 0x60]
mov qword [rsp + 0x30], rbx
mov qword [rbp - 0x58], rax
lea rdx, [rbp - 0x70]
lea rax, [rdi + 0x68]
mov dword [rbp - 0x70], 1
mov qword [rbp - 0x50], rax
lea r8d, [rbx + 0x50]
lea rax, [rbp + 0x40]
mov qword [rbp - 0x38], rbx
movdqu xmmword [rbp - 0x48], xmm0
mov qword [rsp + 0x28], rax
mov rcx, rsi
xorps xmm0, xmm0
mov dword [rsp + 0x20], 0x50
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x30], xmm0
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x48], ebx
movdqa xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rbx
movups xmmword [rsp + 0x68], xmm1
mov qword [rsp + 0x78], rbx
movdqa xmmword [rbp - 0x80], xmm0
mov dword [rbp + 0x40], ebx
call qword [sym.imp.KERNEL32.dll_TransactNamedPipe]
test eax, eax
je 0x140034bbd
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140034d50
test al, al
je 0x140034bbd
xorps xmm0, xmm0
mov qword [rbp - 0x1c], rbx
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x10], xmm0
lea r9, [rbp + 0x40]
movdqa xmmword [rbp + 0x20], xmm0
lea r8d, [rbx + 0x50]
mov qword [rbp], rbx
lea rdx, [rbp - 0x20]
mov qword [rbp + 0x18], rbx
mov rcx, rsi
mov dword [rbp - 0x20], 3
movups xmmword [rbp + 8], xmm1
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140034bbd
mov rcx, qword [rsp + 0x78]
mov al, 1
mov qword [rdi + 0x40], rcx
mov rcx, qword [rbp - 0x80]
mov qword [rdi + 0x48], rcx
mov rcx, qword [rbp - 0x78]
mov qword [rdi + 0x50], rcx
mov ecx, dword [rsp + 0x44]
mov dword [rdi + 0x58], ecx
jmp 0x140034bbf
xor al, al
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x140035a18
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140035a9c
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400fd2f0]
cmp byte [rcx + rax], 0
je 0x140035a9c
dec r8
sub rdx, 1
jne 0x140035a82
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1400606ec
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x140048ce2
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x140048cc5
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x140048cb0

Function at 0x140060700
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x140048d1a
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x140048cfd
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x140048ce8

Function at 0x14006cf68
Capabilities:
Parse pe header

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

Function at 0x14007e440
Capabilities:
Encode data using xor

Disassembly:
mov rax, rcx
neg rcx
test rax, 7
je 0x14007e45d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x14007e4b8
test al, 7
jne 0x14007e450
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x14007e471
mov rdx, qword [rax - 8]
test dl, dl
je 0x14007e4e2
test dh, dh
je 0x14007e4dc
shr rdx, 0x10
test dl, dl
je 0x14007e4d6
test dh, dh
je 0x14007e4d0
shr rdx, 0x10
test dl, dl
je 0x14007e4ca
test dh, dh
je 0x14007e4c4
shr edx, 0x10
test dl, dl
je 0x14007e4be
test dh, dh
jne 0x14007e471
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret
Function at 0x1400ac66c
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x14012a418]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x140101558]
mov rbp, rcx
call fcn.1400dd810
xor edi, edi
test rax, rax
je 0x1400ac752
mov ebx, edi
call fcn.1400a33d4
mov r14d, dword [rax]
call fcn.1400a33d4
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.1400b2da0
mov rsi, rax
test rax, rax
je 0x1400ac6e3
call fcn.1400a33d4
mov dword [rax], r14d
jmp 0x1400ac70d
call fcn.1400a33d4
cmp dword [rax], 0x22
jne 0x1400ac74a
call fcn.1400a33d4
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.1400b2da0
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x1400ac74a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x1400ac711
cmp rax, 3
je 0x1400ac72c
mov rcx, rsi
call fcn.1400ac5b4
test al, al
je 0x1400ac73d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1400ac73d
mov dil, 1
mov rcx, rbx
call fcn.1400a6c28
mov al, dil
jmp 0x1400ac754
mov rcx, rbx
call fcn.1400a6c28
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14006b990
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x1400addac
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 0x1400adde3
call fcn.1400a33d4
mov dword [rax], 0x16
call fcn.14007d5d4
xor eax, eax
jmp 0x1400ade71
mov rdx, r9
mov rcx, r8
call fcn.1400adbfc
mov rbx, rax
test rax, rax
je 0x1400ade6e
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400ad9fc]
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 0x1400ade5b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400a3348
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400ade42
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400ade51
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1400d5cb4
jmp 0x1400ade6e
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400ade6b
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 0x1400cb154
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.14006be50
sub rsp, rax
mov rax, qword [0x14012a418]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400d5cf0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400cb1a3
mov rax, rbp
jmp 0x1400cb2ab
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 + 0x12f190]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400dd5c4
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x12f190]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400cb2a7
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 0x1400cb2a7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400dd5c4
test rax, rax
js 0x1400cb2a7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400cb2a7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400cb299
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400cb299
cmp byte [rcx], 0xd
jne 0x1400cb27f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400cb28e
cmp byte [rcx + 1], 0xa
jne 0x1400cb28e
inc rcx
jmp 0x1400cb28e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x12aa00]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400cb261
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400cb2ab
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14006b990
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 0x1400cbb40
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 0x1400cb937
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400cb937
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400cb937
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400cb937
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400cb937
cmp dword [rcx + 0x84], 0xe
jbe 0x1400cb937
cmp dword [rcx + 0xf8], 0
je 0x1400cb937
mov ecx, ebx
call fcn.1400cba48
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.1400cb6a4
nop
cmp dword [rbp + 0x20], 0
je 0x1400cb985
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400cb990
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400cb8c8