joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14008a600
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x50
movapd xmmword [rsp + 0x40], xmm6
mov rsi, rcx
mov rax, qword [0x140196028]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x20]
call fcn.14008b480
mov qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryThreadCycleTime]
movsd xmm0, qword [0x1401b0598]
xorpd xmm6, xmm6
ucomisd xmm0, xmm6
jne 0x14008a65e
jnp 0x14008a6c4
ucomisd xmm0, xmm6
jne 0x14008a666
jnp 0x14008a6c0
movsd xmm1, qword [rsp + 0x28]
unpcklps xmm1, xmmword [0x1401710f0]
subpd xmm1, xmmword [0x140171100]
movapd xmm2, xmm1
unpckhpd xmm2, xmm1
addsd xmm2, xmm1
divsd xmm2, xmm0
mulsd xmm2, qword [0x140178340]
cvttsd2si rax, xmm2
mov qword [rsi], rax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400bd5c0
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor eax, eax
jmp 0x14008a698
mov rbx, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov edi, eax
call rbx
mov rcx, rax
mov edx, 2
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x1401b05a8]
mov ecx, dword [0x1401a57a8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14008a7d9
mov eax, dword [0x1401b05b8]
mov ecx, dword [0x1401a57a8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14008a813
rdtsc
mov rbx, rax
mov r14, rdx
xor r12d, r12d
lea r15, [rsp + 0x30]
mov qword [r15], r12
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r13, qword [r15]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov qword [r15], r12
lea rdi, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
sub r13, qword [0x1401b05b0]
cvtsi2sd xmm1, r13
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rdi]
divsd xmm1, xmm0
xorpd xmm0, xmm0
movsd xmm2, qword [0x140178338]
ucomisd xmm2, xmm1
ja 0x14008a65e
shl r14, 0x20
or rbx, r14
sub rbx, qword [0x1401b05a0]
movq xmm0, rbx
punpckldq xmm0, xmmword [0x1401710f0]
subpd xmm0, xmmword [0x140171100]
haddpd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [0x1401b0598], xmm0
jmp 0x14008a65e
lea rcx, [0x1401b05a8]
call fcn.1400bc1c0
cmp dword [0x1401b05a8], 0xffffffff
jne 0x14008a70d
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x1401b05a0], rdx
lea rcx, [0x1401b05a8]
call fcn.1400bc258
jmp 0x14008a70d
lea rcx, [0x1401b05b8]
call fcn.1400bc1c0
cmp dword [0x1401b05b8], 0xffffffff
jne 0x14008a732
lea rbx, [rsp + 0x30]
mov qword [rbx], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbx]
mov qword [0x1401b05b0], rax
lea rcx, [0x1401b05b8]
call fcn.1400bc258
jmp 0x14008a732
Function at 0x14008ae80
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x140196028]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x1401b05e0]
mov ecx, dword [0x1401a57a8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14008aee0
mov rsi, qword [0x1401b05d8]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400bd5c0
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x1401b05e0]
call fcn.1400bc1c0
cmp dword [0x1401b05e0], 0xffffffff
jne 0x14008aebc
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.1400bf710
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x34]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x30]
mov dword [rdi], 0
mov ecx, dword [rsi + 4]
mov edx, dword [rsi + 8]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x80
call fcn.1400bc06c
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x1401b0628]
mov ecx, dword [0x1401a57a8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14008afa0
lea r8, [0x1401b05f8]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.140040ae0
mov qword [0x1401b05d8], rsi
lea rcx, [0x1401b05e0]
call fcn.1400bc258
jmp 0x14008aebc
lea rcx, [0x1401b0628]
call fcn.1400bc1c0
cmp dword [0x1401b0628], 0xffffffff
jne 0x14008af71
xorps xmm0, xmm0
movups xmmword [0x1401b0618], xmm0
movups xmmword [0x1401b0608], xmm0
movups xmmword [0x1401b05f8], xmm0
lea rcx, [0x1401b05f8]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1401b0628]
call fcn.1400bc258
jmp 0x14008af71
Function at 0x14008aff0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x140196028]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x1401b05e0]
mov ecx, dword [0x1401a57a8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14008b051
mov rax, qword [0x1401b05d8]
mov esi, dword [rax]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400bd5c0
mov eax, esi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x1401b05e0]
call fcn.1400bc1c0
cmp dword [0x1401b05e0], 0xffffffff
jne 0x14008b02c
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.1400bf710
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x34]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x30]
mov dword [rdi], 0
mov ecx, dword [rsi + 4]
mov edx, dword [rsi + 8]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x80
call fcn.1400bc06c
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x1401b0628]
mov ecx, dword [0x1401a57a8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14008b111
lea r8, [0x1401b05f8]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.140040ae0
mov qword [0x1401b05d8], rsi
lea rcx, [0x1401b05e0]
call fcn.1400bc258
jmp 0x14008b02c
lea rcx, [0x1401b0628]
call fcn.1400bc1c0
cmp dword [0x1401b0628], 0xffffffff
jne 0x14008b0e2
xorps xmm0, xmm0
movups xmmword [0x1401b0618], xmm0
movups xmmword [0x1401b0608], xmm0
movups xmmword [0x1401b05f8], xmm0
lea rcx, [0x1401b05f8]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1401b0628]
call fcn.1400bc258
jmp 0x14008b0e2
Function at 0x1400940e0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rdi, rdx
movsxd rdx, dword [rdx + 8]
test rdx, rdx
je 0x140094218
mov rsi, rcx
mov rax, qword [rdi]
xor ecx, ecx
xor r8d, r8d
or r8, qword [rax + rcx*8]
inc rcx
cmp rdx, rcx
jne 0x140094102
test r8, r8
je 0x140094218
test edx, edx
jle 0x140094254
mov rax, qword [rdi]
test byte [rax], 1
je 0x140094254
cmp dword [rdi + 0x10], 0
jne 0x140094294
cmp edx, 0x401
jae 0x1400942b4
lea rbx, [rsi + 0x18]
cmp rbx, rdi
je 0x140094185
mov rcx, rbx
call fcn.14004c9d0
test eax, eax
je 0x140094274
movsxd r8, dword [rdi + 8]
test r8, r8
je 0x14009424d
shl r8, 3
mov rcx, qword [rbx]
mov rdx, qword [rdi]
call fcn.1400bf060
mov eax, dword [rdi + 8]
mov dword [rsi + 0x20], eax
mov eax, dword [rdi + 0x10]
mov dword [rsi + 0x28], eax
mov rdi, rbx
test rdi, rdi
je 0x140094274
mov eax, dword [rsi + 0x20]
lea ecx, [rax + 1]
test eax, eax
jle 0x14009423d
mov rdx, qword [rbx]
dec ecx
cmp qword [rdx + rax*8 - 8], 0
lea rax, [rax - 1]
je 0x140094194
mov dword [rsi + 0x20], ecx
mov rax, qword [rbx]
mov rax, qword [rax]
mov r9d, 1
mov edx, 0x40
xor ecx, ecx
movabs r8, 0x8000000000000000
mov r10d, r9d
and r10d, 1
neg r10
mov r11, rax
and r11, r10
mov rdi, r11
xor rdi, r9
shr rdi, 1
and r11, r9
add r11, rdi
and r10, r8
shr rcx, 1
or rcx, r10
mov r9, r11
dec rdx
jne 0x1400941cd
mov qword [rsi + 0x30], rcx
mov qword [rsi + 0x38], 0
mov esi, 1
mov eax, esi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov dword [rsp + 0x20], 0xaa
lea r9, str....._third_party_boringssl_srccrypto_fipsmodule_bnmontgomery.c
xor esi, esi
mov ecx, 3
xor edx, edx
mov r8d, 0x69
call fcn.140145720
jmp 0x14009420e
mov dword [rsi + 0x20], eax
test eax, eax
jne 0x1400941b0
jmp 0x1400942f4
xor eax, eax
jmp 0x140094179
mov dword [rsp + 0x20], 0xae
lea r9, str....._third_party_boringssl_srccrypto_fipsmodule_bnmontgomery.c
xor esi, esi
mov ecx, 3
xor edx, edx
mov r8d, 0x68
jmp 0x140094236
mov dword [rsp + 0x20], 0xbc
lea r9, str....._third_party_boringssl_srccrypto_fipsmodule_bnmontgomery.c
xor esi, esi
mov ecx, 3
xor edx, edx
mov r8d, 0x44
jmp 0x140094236
mov dword [rsp + 0x20], 0xb2
lea r9, str....._third_party_boringssl_srccrypto_fipsmodule_bnmontgomery.c
xor esi, esi
mov ecx, 3
xor edx, edx
mov r8d, 0x6d
jmp 0x140094236
mov r8d, 0x400
xor ecx, ecx
or rcx, qword [rax + r8*8]
inc r8
cmp rdx, r8
jne 0x1400942bc
test rcx, rcx
je 0x140094141
mov dword [rsp + 0x20], 0xb6
lea r9, str....._third_party_boringssl_srccrypto_fipsmodule_bnmontgomery.c
xor esi, esi
mov ecx, 3
xor edx, edx
mov r8d, 0x66
jmp 0x140094236
mov dword [rsi + 0x28], 0
jmp 0x1400941b0
Function at 0x140094f00
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rax, qword [0x140196028]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp r8, 0x30
ja 0x14009504d
mov r14, r8
mov r15, rdx
mov rsi, rcx
movaps xmm0, xmmword [0x14016f5f0]
lea rdi, [rsp + 0x40]
movaps xmmword [rdi], xmm0
movaps xmmword [rdi - 0x10], xmm0
movaps xmmword [rdi - 0x20], xmm0
lea r12, [rsp + 0x30]
lea rbx, [rcx + 0x108]
mov eax, dword [rcx + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rcx + 0x114], eax
mov rax, qword [rcx + 0xf8]
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov r8, rsi
call qword [0x1401c0008]
mov eax, dword [rsi + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rsi + 0x114], eax
mov rax, qword [rsi + 0xf8]
mov rcx, rbx
mov rdx, r12
mov r8, rsi
call qword [0x1401c0008]
mov eax, dword [rsi + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rsi + 0x114], eax
mov rax, qword [rsi + 0xf8]
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
call qword [0x1401c0008]
test r14, r14
je 0x140094fe3
xor eax, eax
mov cl, byte [r15 + rax]
xor byte [rsp + rax + 0x20], cl
inc rax
cmp r14, rax
jne 0x140094fd3
lea r14, [rsi + 0xf8]
mov eax, dword [0x1401b12d4]
lea rcx, [rsp + 0x20]
mov edx, 0x100
mov r8, rsi
bt eax, 0x19
jae 0x140095051
call fcn.140003260
lea rax, [0x140001d60]
test r14, r14
je 0x14009501e
lea rcx, section..text
mov qword [r14], rcx
mov qword [rsi + 0x100], rax
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
mov esi, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400bd5c0
mov eax, esi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor esi, esi
jmp 0x140095030
bt eax, 9
jae 0x140095071
call fcn.140004350
lea rax, [0x140004820]
test r14, r14
je 0x14009501e
lea rcx, [0x140004520]
jmp 0x14009501b
call fcn.140124cf0
lea rax, [0x1401254f0]
test r14, r14
je 0x14009501e
lea rcx, [0x140124bb0]
jmp 0x14009501b
Function at 0x1400967d0
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x1400967f9
xor eax, eax
xor r9d, r9d
nop word [rax + rax]
movzx r10d, byte [rdx + rax]
xor r10b, byte [rcx + rax]
or r9b, r10b
inc rax
cmp r8, rax
jne 0x1400967e0
movzx eax, r9b
ret
xor eax, eax
ret

Function at 0x14009d120
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov esi, ecx
mov rax, qword [0x140196028]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rax, [0x14005a8c0]
mov qword [rsp + 0x20], rax
lea rcx, [0x1401b1eb0]
lea rdx, [0x14005a710]
lea r8, [rsp + 0x20]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x14009d1b4
cmp dword [0x1401b1eb8], 0
jne 0x14009d1b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [0x1401b1ebc]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x14009d1b0
movsxd rax, esi
mov rsi, qword [rdi + rax*8]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400bd5c0
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
xor esi, esi
jmp 0x14009d198
call fcn.1400d1bb0
int3
Function at 0x1400a6a70
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x1401a5710]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400a6aa4
mov rcx, qword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 8]
jne 0x1400a6aa4
mov rax, qword [rax + rcx]
add rsp, 0x20
pop rsi
ret
xor eax, eax
jmp 0x1400a6a9e
Function at 0x1400bb320
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, ecx
test r8, r8
je 0x1400bb34b
xor ecx, ecx
lea r9, [0x140184e50]
movzx r10d, al
movzx r11d, byte [rdx + rcx]
xor r11d, r10d
shr eax, 8
xor eax, dword [r9 + r11*4]
inc rcx
cmp r8, rcx
jne 0x1400bb330
ret

Function at 0x1400bc940
Capabilities:
Parse pe header

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

Function at 0x1400bcde0
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x1400bce58
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x1400bce58
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x1400bce58
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x1400bce4c
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x1400bce6a
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x1400bce3a
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x1400bce5a

Function at 0x1400bdae0
Capabilities:
Access peb ldr_data

Disassembly:
push rdx
push rcx
push r14
sub rdx, rdx
add rdx, 0x60
mov rcx, qword gs:[rdx]
push r15
mov rdx, rcx
add rdx, 0x10
mov r15, qword [rdx]
mov r14, qword [rcx + 0x18]
add r14, 0x10
mov rcx, qword [r14]
push r11
mov r14, rcx
add r14, 0x30
mov rdx, qword [r14]
test rdx, rdx
je 0x1400bdb40
mov r14, qword [rcx + 0x60]
mov r11, qword [r14]
and r11d, 0xdf00df
mov r14, qword [r14 + 0xb]
add r14d, r11d
shr r14d, 2
sub r14d, 0xc914cd2
test r14, r14
je 0x1400bdb48
mov rcx, qword [rcx]
jmp 0x1400bdb08
mov ecx, dword [rdx + 0x3c]
add rcx, 0x10
add rcx, rdx
mov r14d, dword [rcx + 0x78]
add r14, rdx
push rsi
mov r11d, dword [r14 + 0x20]
add r11, rdx
mov esi, dword [r11]
add rsi, rdx
mov ecx, dword [rsi + 0xb]
add ecx, 0xff8b9c9b
test ecx, ecx
jne 0x1400bdb76
jmp 0x1400bdb84
inc r11
inc r11
inc r11
inc r11
jmp 0x1400bdb61
mov ecx, dword [r14 + 0x20]
sub r11, rdx
sub r11, rcx
shr r11d, 1
mov ecx, dword [r14 + 0x24]
add rcx, rdx
add rcx, r11
mov r11d, dword [rcx]
and r11d, 0xffff
and ebx, 0xffff
shl r11d, 2
mov ecx, dword [r14 + 0x1c]
add rcx, r11
add rcx, rdx
mov r11d, dword [rcx]
add r11, rdx
add ebx, edx
movabs rcx, 0x20d000
add rcx, r15
push rdx
push r15
push rcx
push rsi
push rsi
push rsi
mov r8d, 0x40
mov r9, rsp
mov edx, 0x7b000
Function at 0x1400cbab8
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 0x1400cbaef
call fcn.1400ceeb4
mov dword [rax], 0x16
call fcn.1400d084c
xor eax, eax
jmp 0x1400cbb7d
mov rdx, r9
mov rcx, r8
call fcn.1400cbba0
mov rbx, rax
test rax, rax
je 0x1400cbb7a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400cbc10]
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 0x1400cbb67
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400ceef4
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400cbb4e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400cbb5d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140076410
jmp 0x1400cbb7a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400cbb77
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 0x1400cbce4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400cbe2c
Function at 0x1400cc16c
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.1400e4578
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400e4578
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400cc2bc
cmp rax, 0xffffffffffffffff
je 0x1400cc2bc
xor edi, edi
test rbp, rbp
jle 0x1400cc267
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400764b0
mov rbx, rax
test rax, rax
jne 0x1400cc1f4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400cc25d
mov edx, 0x8000
mov ecx, r14d
call fcn.1400d1c88
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.1400d5a08
cmp eax, 0xffffffff
je 0x1400cc23d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400cc204
mov edx, r15d
mov ecx, r14d
call fcn.1400d1c88
jmp 0x1400cc25d
cmp byte [rsi + 0x38], dil
je 0x1400cc254
cmp dword [rsi + 0x34], 5
jne 0x1400cc254
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400cc25d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140076410
jmp 0x1400cc2d0
jns 0x1400cc2d0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400e4578
cmp rax, 0xffffffffffffffff
jne 0x1400cc288
cmp byte [rsi + 0x30], dil
je 0x1400cc2d0
mov edi, dword [rsi + 0x2c]
jmp 0x1400cc2d0
mov ecx, r14d
call fcn.1400cfb6c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400cc2d0
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 0x1400cc2d0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400cc2c9
mov eax, dword [rsi + 0x2c]
jmp 0x1400cc2ce
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400e4578
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 0x1400cf698
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.1400bd560
sub rsp, rax
mov rax, qword [0x140196028]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400cf26c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400cf6e7
mov rax, rbp
jmp 0x1400cf7ef
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 + 0x1a6760]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400e461c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x1a6760]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400cf7eb
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 0x1400cf7eb
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400e461c
test rax, rax
js 0x1400cf7eb
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400cf7eb
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400cf7dd
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400cf7dd
cmp byte [rcx], 0xd
jne 0x1400cf7c3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400cf7d2
cmp byte [rcx + 1], 0xa
jne 0x1400cf7d2
inc rcx
jmp 0x1400cf7d2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x196310]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400cf7a5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400cf7ef
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400bd5c0
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 0x1400d186c
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, [0x1401a6760]
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 0x1400d18c3
cmp word [rdx], r13w
jne 0x1400d18c3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400d18c8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400d19ed
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400d1a0e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400d1901
mov rdx, r9
mov word [rbx], cx
jmp 0x1400d1928
cmp r9, r8
jae 0x1400d1938
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 0x1400d18e2
jmp 0x1400d19ed
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 0x1400d19e2
cmp dword [rsp + 0x80], esi
je 0x1400d19e2
lea r8, [0x1401a6760]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400d19ba
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400d198a
mov word [rbx], r13w
jmp 0x1400d19ea
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 0x1400d1997
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400d19ea
cmp word [rsp + 0x70], r13w
jne 0x1400d19c7
cmp rbx, r14
je 0x1400d1984
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400e4578
cmp word [rsp + 0x70], r13w
je 0x1400d19ed
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, [0x1401a6760]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400d19e7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400d19ed

Function at 0x1400d5780
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x140196028]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1400d57ca
call fcn.1400ceed4
mov dword [rax], 0xf
call fcn.1400ceeb4
mov dword [rax], 0xd
call fcn.1400d084c
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400bd5c0
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1400d57d5
lea eax, [rbx + 1]
jmp 0x1400d57b7
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1400d57b5
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1400d57b7