joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401f02f0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov r14, qword [rdx]
mov qword [rdx], 0
lea r15, [r14 + 1]
cmp r15, 2
jae 0x1401f0369
cmp qword [rsi], r14
je 0x1401f0344
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1401f0370
cmp r15, 2
jb 0x1401f033c
mov qword [rsi], r14
call fcn.1401de850
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov al, byte [rdi + 8]
mov byte [rsi + 8], al
mov byte [rdi + 8], 0
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x1401f0386
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1401de850
jmp 0x1401f0315
call fcn.1401de850
mov rcx, qword [rsi]
call fcn.1401f05b0
mov qword [rsi], 0
jmp 0x1401f032e
call fcn.1401de850
mov rcx, qword [rdi]
call fcn.1401f05b0
mov qword [rdi], 0
jmp 0x1401f035a

Function at 0x1401f07f0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rbx, r9
mov ebp, r8d
mov rdi, rdx
mov rsi, rcx
xor eax, eax
mov qword [rcx], rax
mov r12, qword [rdx]
mov qword [rdx], rax
lea r13, [r12 + 1]
cmp r13, 2
jb 0x1401f0827
call fcn.1401de850
mov r15, qword [rsp + 0x90]
cmp qword [rsi], r12
je 0x1401f0860
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1401f088f
cmp r13, 2
jb 0x1401f0857
mov qword [rsi], r12
call fcn.1401de850
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [rsi + 8], ebp
mov qword [rsi + 0x10], rbx
movups xmm0, xmmword [r15]
movups xmmword [rsi + 0x18], xmm0
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x1401f08a5
mov rax, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.1401de850
mov rcx, qword [rsi]
call fcn.1401f05b0
mov qword [rsi], 0
jmp 0x1401f0849
call fcn.1401de850
mov rcx, qword [rdi]
call fcn.1401f05b0
mov qword [rdi], 0
jmp 0x1401f087b

Function at 0x1401f08d0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
mov al, byte [0x14042e88c]
test al, 1
je 0x1401f0902
call fcn.140213390
mov rcx, rdi
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.1402133b0
test rsi, rsi
je 0x1401f092f
mov r14d, 0xffffffff
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x1401f0939
add rdi, rbx
sub rsi, rbx
jne 0x1401f090d
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
int3
Function at 0x1401f0d20
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 [0x140418038]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x20]
call fcn.1401f0590
mov qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryThreadCycleTime]
movsd xmm0, qword [0x14042e8b8]
xorpd xmm6, xmm6
ucomisd xmm0, xmm6
jne 0x1401f0d7e
jnp 0x1401f0de4
ucomisd xmm0, xmm6
jne 0x1401f0d8a
jnp 0x1401f0ef9
movsd xmm1, qword [rsp + 0x28]
unpcklps xmm1, xmmword [0x1403b56b0]
subpd xmm1, xmmword [0x1403b56c0]
movapd xmm2, xmm1
unpckhpd xmm2, xmm1
addsd xmm2, xmm1
divsd xmm2, xmm0
mulsd xmm2, qword [0x1403b6940]
cvttsd2si rax, xmm2
mov qword [rsi], rax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140242430
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
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 [0x14042e8c8]
mov ecx, dword [0x14042a04c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1401f0f00
mov eax, dword [0x14042e8d8]
mov ecx, dword [0x14042a04c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1401f0f3a
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 [0x14042e8d0]
cvtsi2sd xmm1, r13
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rdi]
divsd xmm1, xmm0
xorpd xmm0, xmm0
movsd xmm2, qword [0x1403b6938]
ucomisd xmm2, xmm1
ja 0x1401f0d7e
shl r14, 0x20
or rbx, r14
sub rbx, qword [0x14042e8c0]
movq xmm0, rbx
punpckldq xmm0, xmmword [0x1403b56b0]
subpd xmm0, xmmword [0x1403b56c0]
haddpd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [0x14042e8b8], xmm0
jmp 0x1401f0d7e
xor eax, eax
jmp 0x1401f0dbc
lea rcx, [0x14042e8c8]
call fcn.140240e30
cmp dword [0x14042e8c8], 0xffffffff
jne 0x1401f0e2d
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x14042e8c0], rdx
lea rcx, [0x14042e8c8]
call fcn.140240ec8
jmp 0x1401f0e2d
lea rcx, [0x14042e8d8]
call fcn.140240e30
cmp dword [0x14042e8d8], 0xffffffff
jne 0x1401f0e52
lea rbx, [rsp + 0x30]
mov qword [rbx], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbx]
mov qword [0x14042e8d0], rax
lea rcx, [0x14042e8d8]
call fcn.140240ec8
jmp 0x1401f0e52
Function at 0x1401f59e0
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
xor eax, eax
mov dword [rcx], eax
mov qword [rcx + 8], rax
mov ecx, dword [rdx]
mov dword [rsi], ecx
mov dword [rdx], eax
mov rbx, qword [rdx + 8]
mov qword [rdx + 8], rax
lea r14, [rbx + 1]
cmp r14, 2
jb 0x1401f5a11
call fcn.1401de850
cmp qword [rsi + 8], rbx
je 0x1401f5a43
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x1401f5a50
cmp r14, 2
jb 0x1401f5a3b
mov qword [rsi + 8], rbx
call fcn.1401de850
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1401de850
mov rcx, qword [rsi + 8]
call fcn.1401f05b0
mov qword [rsi + 8], 0
jmp 0x1401f5a2c

Function at 0x1401f5a70
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov eax, dword [rdx]
mov dword [rcx], eax
mov dword [rdx], 0
mov rbx, qword [rdx + 8]
mov qword [rdx + 8], 0
lea r14, [rbx + 1]
cmp r14, 2
jb 0x1401f5aa1
call fcn.1401de850
cmp qword [rsi + 8], rbx
je 0x1401f5ad3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x1401f5ae0
cmp r14, 2
jb 0x1401f5acb
mov qword [rsi + 8], rbx
call fcn.1401de850
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1401de850
mov rcx, qword [rsi + 8]
call fcn.1401f05b0
mov qword [rsi + 8], 0
jmp 0x1401f5abc
Function at 0x140200dd0
Capabilities:
Encode data using base64

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rcx]
mov rbx, qword [rsi + 8]
sub rbx, rcx
sar rbx, 3
lea rdx, [rbx + 1]
mov rax, rdx
shr rax, 0x3d
jne 0x140200f16
movabs rax, 0x1fffffffffffffff
mov r8, qword [rsi + 0x10]
sub r8, rcx
mov r14, r8
sar r14, 2
cmp r14, rdx
cmovbe r14, rdx
movabs rcx, 0x7ffffffffffffff8
cmp r8, rcx
cmovae r14, rax
test r14, r14
je 0x140200f0f
cmp r14, rax
ja 0x140200f1b
lea rcx, [r14*8]
call fcn.140240cd8
shl rbx, 3
add rbx, rax
je 0x140200f20
lea rax, [rax + r14*8]
mov rcx, qword [rdi]
mov qword [rdi], 0
mov qword [rbx], rcx
lea rcx, [rbx + 8]
mov rdi, qword [rsi]
mov rdx, qword [rsi + 8]
cmp rdx, rdi
jne 0x140200e95
mov qword [rsi], rbx
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rax
test rdi, rdi
jne 0x140200ef2
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
mov r8, qword [rdx - 8]
mov qword [rdx - 8], 0
lea r9, [rdx - 8]
mov qword [rbx - 8], r8
add rbx, 0xfffffffffffffff8
mov rdx, r9
cmp r9, rdi
jne 0x140200e95
mov rdi, qword [rsi]
mov r14, qword [rsi + 8]
mov qword [rsi], rbx
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rax
cmp r14, rdi
je 0x140200e86
add r14, 0xfffffffffffffff8
test r14, r14
je 0x140200f4c
mov rcx, qword [r14]
mov qword [r14], 0
test rcx, rcx
jne 0x140200f03
lea rax, [r14 - 8]
cmp r14, rdi
mov r14, rax
je 0x140200e86
jmp 0x140200ed0
mov rcx, rdi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.140240d14
mov edx, 1
call fcn.1401f6b70
jmp 0x140200ee4
xor eax, eax
jmp 0x140200e4d
call fcn.14025af90
call fcn.14027e620
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x23
call fcn.140280b90
lea rax, str.null_pointer_given_to_destroy_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__loc___nullptr
mov r8d, 0x3f
call fcn.140280b90
int3
Function at 0x1402017d0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x140418038]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x1404321f8]
mov ecx, dword [0x14042a04c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140201830
lea rsi, [0x1404321f0]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140242430
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x1404321f8]
call fcn.140240e30
cmp dword [0x1404321f8], 0xffffffff
jne 0x14020180c
lea rsi, [rsp + 0x34]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.140244560
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x2c]
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.140240cd8
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x140432240]
mov ecx, dword [0x14042a04c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1402018f0
lea r8, [0x140432210]
lea rdx, [rsp + 0x30]
mov rcx, rsi
mov r9d, edi
call fcn.14012f1a0
mov qword [0x1404321f0], rsi
lea rcx, [0x1404321f8]
call fcn.140240ec8
jmp 0x14020180c
lea rcx, [0x140432240]
call fcn.140240e30
cmp dword [0x140432240], 0xffffffff
jne 0x1402018c1
xorps xmm0, xmm0
movups xmmword [0x140432230], xmm0
movups xmmword [0x140432220], xmm0
movups xmmword [0x140432210], xmm0
lea rcx, [0x140432210]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140432240]
call fcn.140240ec8
jmp 0x1402018c1
Function at 0x140201940
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x140418038]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x1404321f8]
mov ecx, dword [0x14042a04c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1402019a0
mov rsi, qword [0x1404321f0]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140242430
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x1404321f8]
call fcn.140240e30
cmp dword [0x1404321f8], 0xffffffff
jne 0x14020197c
lea rsi, [rsp + 0x34]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.140244560
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x2c]
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.140240cd8
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x140432240]
mov ecx, dword [0x14042a04c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140201a60
lea r8, [0x140432210]
lea rdx, [rsp + 0x30]
mov rcx, rsi
mov r9d, edi
call fcn.14012f1a0
mov qword [0x1404321f0], rsi
lea rcx, [0x1404321f8]
call fcn.140240ec8
jmp 0x14020197c
lea rcx, [0x140432240]
call fcn.140240e30
cmp dword [0x140432240], 0xffffffff
jne 0x140201a31
xorps xmm0, xmm0
movups xmmword [0x140432230], xmm0
movups xmmword [0x140432220], xmm0
movups xmmword [0x140432210], xmm0
lea rcx, [0x140432210]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140432240]
call fcn.140240ec8
jmp 0x140201a31

Function at 0x140201f80
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
xor eax, eax
test r8d, r8d
sete al
xor r8d, r8d
test edx, edx
sete r8b
xor ecx, ecx
mov edx, r8d
mov r8d, eax
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi], 0
test rax, rax
je 0x14020201a
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140202004
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140201fe1
mov qword [rsi], rdi
call fcn.1401de850
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsi]
mov byte [rsi + 8], 1
inc rax
cmp rax, 1
jbe 0x14020201e
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1401de850
mov rcx, qword [rsi]
call fcn.1401f05b0
mov qword [rsi], 0
jmp 0x140201fcf
mov byte [rsi + 8], 1
int3
Function at 0x14020d590
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, ecx
test r8, r8
je 0x14020d5bb
xor ecx, ecx
lea r9, [0x1403c0ff0]
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 0x14020d5a0
ret

Function at 0x14020e420
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1404371a0]
mov ecx, dword [0x14042a04c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14020e455
lea rcx, [0x140437190]
add rsp, 0x28
jmp fcn.1401ea9d0
lea rcx, [0x1404371a0]
call fcn.140240e30
cmp dword [0x1404371a0], 0xffffffff
jne 0x14020e445
xorps xmm0, xmm0
movups xmmword [0x140437190], xmm0
lea rcx, [0x140437190]
xor edx, edx
call fcn.1400eeb90
lea rcx, [0x1404371a0]
call fcn.140240ec8
jmp 0x14020e445

Function at 0x140213050
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x140213079
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 0x140213060
movzx eax, r9b
ret
xor eax, eax
ret
Function at 0x140218b60
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [0x140438e78]
cmp rsi, 1
jbe 0x140218b83
mov rcx, rsi
xor edx, edx
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.1401eaa10
lea rcx, [0x140438e78]
call fcn.1400e2f80
test al, al
je 0x140218bc8
xorps xmm0, xmm0
movups xmmword [0x140438e80], xmm0
lea rdi, [0x140438e78]
lea rsi, [0x140438e80]
mov rcx, rsi
xor edx, edx
call fcn.1400eeb90
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
mov r9, rdi
call fcn.1400e3040
jmp 0x140218b73
mov rsi, qword [0x140438e78]
jmp 0x140218b73

Function at 0x14022b250
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [0x1404390a8]
cmp rsi, 1
jbe 0x14022b273
mov rcx, rsi
xor edx, edx
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.1401eaa10
lea rcx, [0x1404390a8]
call fcn.1400e2f80
test al, al
je 0x14022b2b8
xorps xmm0, xmm0
movups xmmword [0x1404390b0], xmm0
lea rdi, [0x1404390a8]
lea rsi, [0x1404390b0]
mov rcx, rsi
xor edx, edx
call fcn.1400eeb90
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
mov r9, rdi
call fcn.1400e3040
jmp 0x14022b263
mov rsi, qword [0x1404390a8]
jmp 0x14022b263

Function at 0x14022b5a0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov esi, ecx
mov rax, qword [0x140418038]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rax, [0x1401722a0]
mov qword [rsp + 0x20], rax
lea rcx, [0x140439188]
lea rdx, [0x1401720f0]
lea r8, [rsp + 0x20]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x14022b634
cmp dword [0x140439190], 0
jne 0x14022b630
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [0x140439194]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x14022b630
movsxd rax, esi
mov rsi, qword [rdi + rax*8]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140242430
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
xor esi, esi
jmp 0x14022b618
call fcn.14025af90
int3

Function at 0x1402305e0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14043a480]
mov ecx, dword [0x14042a04c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140230646
lea rcx, [0x14043a470]
xor edx, edx
call fcn.1401eaa10
mov eax, dword [0x14043a498]
mov ecx, dword [0x14042a04c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140230681
lea rcx, [0x14043a488]
xor edx, edx
add rsp, 0x28
jmp fcn.1401eaa10
lea rcx, [0x14043a480]
call fcn.140240e30
cmp dword [0x14043a480], 0xffffffff
jne 0x140230605
xorps xmm0, xmm0
movups xmmword [0x14043a470], xmm0
lea rcx, [0x14043a470]
xor edx, edx
call fcn.1400eeb90
lea rcx, [0x14043a480]
call fcn.140240ec8
jmp 0x140230605
lea rcx, [0x14043a498]
call fcn.140240e30
cmp dword [0x14043a498], 0xffffffff
jne 0x140230634
xorps xmm0, xmm0
movups xmmword [0x14043a488], xmm0
lea rcx, [0x14043a488]
xor edx, edx
call fcn.1400eeb90
lea rcx, [0x14043a498]
call fcn.140240ec8
jmp 0x140230634
Function at 0x140254c40
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.140259f50
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140259f50
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140254d90
cmp rax, 0xffffffffffffffff
je 0x140254d90
xor edi, edi
test rbp, rbp
jle 0x140254d3b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1401f06e0
mov rbx, rax
test rax, rax
jne 0x140254cc8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140254d31
mov edx, 0x8000
mov ecx, r14d
call fcn.14025b068
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.14025f4c4
cmp eax, 0xffffffff
je 0x140254d11
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140254cd8
mov edx, r15d
mov ecx, r14d
call fcn.14025b068
jmp 0x140254d31
cmp byte [rsi + 0x38], dil
je 0x140254d28
cmp dword [rsi + 0x34], 5
jne 0x140254d28
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], ntohl
cmp byte [rsi + 0x30], dil
je 0x140254d31
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1401f0640
jmp 0x140254da4
jns 0x140254da4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140259f50
cmp rax, 0xffffffffffffffff
jne 0x140254d5c
cmp byte [rsi + 0x30], dil
je 0x140254da4
mov edi, dword [rsi + 0x2c]
jmp 0x140254da4
mov ecx, r14d
call fcn.1402589dc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140254da4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, ntohl
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], ntohl
jmp 0x140254da4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140254d9d
mov eax, dword [rsi + 0x2c]
jmp 0x140254da2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140259f50
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 0x140258270
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x240
mov rax, qword [0x140418038]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdx, [0x1403931a0]
mov rbp, rcx
call fcn.1402696e0
xor edi, edi
test rax, rax
je 0x140258356
mov ebx, edi
call fcn.140257b2c
mov r14d, dword [rax]
call fcn.140257b2c
mov r8d, 0x104
lea rcx, [rsp + 0x20]
mov rdx, rbp
mov dword [rax], edi
call fcn.14025f148
mov rsi, rax
test rax, rax
je 0x1402582e7
call fcn.140257b2c
mov dword [rax], r14d
jmp 0x140258311
call fcn.140257b2c
cmp dword [rax], 0x22
jne 0x14025834e
call fcn.140257b2c
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.14025f148
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x14025834e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x140258315
cmp rax, 3
je 0x140258330
mov rcx, rsi
call fcn.1402581cc
test al, al
je 0x140258341
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x140258341
mov dil, 1
mov rcx, rbx
call fcn.1401f0640
mov al, dil
jmp 0x140258358
mov rcx, rbx
call fcn.1401f0640
xor al, al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140242430
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14025ac28
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x14042afd0]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x14025ac86
cmp word [rdx], r12w
jne 0x14025ac86
or byte [rax + r8*8 + 0x38], cl
jmp 0x14025ac8c
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14025ade7
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14025adc2
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14025acc5
mov rcx, r9
jmp 0x14025ace8
cmp r9, rdx
jae 0x14025acff
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x14025aca9
jmp 0x14025ade7
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14025adbc
cmp dword [rsp + 0x80], edi
je 0x14025adbc
mov rdx, r14
lea r11, [0x14042afd0]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x14025ad95
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14025ad68
mov word [rbx], r12w
jmp 0x14025ade3
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x14025ad71
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14025ade3
cmp word [rsp + 0x70], r12w
jne 0x14025ada2
cmp rbx, rsi
je 0x14025ad62
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.140259f50
cmp word [rsp + 0x70], r12w
je 0x14025ade7
mov word [rbx], r13w
jmp 0x14025ade3
lea r11, [0x14042afd0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14025addf
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14025ade7
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret