joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400cb5c0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov eax, dword [0x14020c408]
mov ecx, dword [0x1401fd9c8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400cb641
lea rcx, [0x14020c3f8]
call fcn.1400b9fe0
test rax, rax
jne 0x1400cb62e
mov ecx, 4
call fcn.14012a8b0
mov rdi, rax
mov dword [rax], 0
lea rbx, [0x14020c3f8]
mov rcx, rbx
call fcn.1400b9fe0
mov rsi, rax
mov rcx, rbx
mov rdx, rdi
call fcn.1400ba080
test rsi, rsi
jne 0x1400cb684
lea rcx, [0x14020c3f8]
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.1400b9fe0
lea rcx, [0x14020c408]
call fcn.14012aa10
cmp dword [0x14020c408], 0xffffffff
jne 0x1400cb5e8
xorps xmm0, xmm0
movups xmmword [0x14020c3f8], xmm0
lea rcx, [0x14020c3f8]
lea rdx, [0x14002b050]
call fcn.1400ba0d0
lea rcx, [0x14020c408]
call fcn.14012aaa8
jmp 0x1400cb5e8
mov rcx, rsi
call fcn.14012a8ec
jmp 0x1400cb62e
Function at 0x1400dafe0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x1400db028
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x1400db031
lea rax, [rsi + 1]
cmp rax, 2
jb 0x1400db018
mov qword [rdi], rsi
call fcn.1400f6c70
mov ecx, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1400f6c70
mov rcx, qword [rdi]
call fcn.1400e0410
mov qword [rdi], 0
jmp 0x1400db006

Function at 0x1400e02a0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x1401ee038]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x14020a0e0]
mov ecx, dword [0x1401fd9c8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400e0300
mov rsi, qword [0x14020a0d8]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14012b460
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x14020a0e0]
call fcn.14012aa10
cmp dword [0x14020a0e0], 0xffffffff
jne 0x1400e02dc
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.14012e3f0
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.14012a8b0
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x14020a128]
mov ecx, dword [0x1401fd9c8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400e03c0
lea r8, [0x14020a0f8]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.140086fd0
mov qword [0x14020a0d8], rsi
lea rcx, [0x14020a0e0]
call fcn.14012aaa8
jmp 0x1400e02dc
lea rcx, [0x14020a128]
call fcn.14012aa10
cmp dword [0x14020a128], 0xffffffff
jne 0x1400e0391
xorps xmm0, xmm0
movups xmmword [0x14020a118], xmm0
movups xmmword [0x14020a108], xmm0
movups xmmword [0x14020a0f8], xmm0
lea rcx, [0x14020a0f8]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x14020a128]
call fcn.14012aaa8
jmp 0x1400e0391
Function at 0x1400e0c20
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov ebx, ecx
mov rax, qword [0x1401ee038]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov eax, dword [0x14020a1a8]
mov ecx, dword [0x1401fd9c8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400e0e0c
mov rsi, qword [0x14020a1a0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400e0e52
movzx ebx, bl
dec ebx
or ebx, 1
cmp byte [0x14020a150], 0
mov eax, 8
mov ecx, 1
cmove ecx, eax
xor ebp, ebp
add ebx, dword [0x14020a154]
mov dword [0x14020a154], ebx
cmovne ebp, ecx
mov eax, dword [0x14020a158]
cmp ebp, eax
je 0x1400e0deb
test eax, eax
je 0x1400e0d7c
mov rax, qword [0x1401fd7e0]
lea rcx, [0x1400e0f00]
lea rdi, [rsp + 0x28]
cmp rax, rcx
jne 0x1400e0e5f
mov qword [rdi], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rdi]
movabs rax, 0x8637bd05af7
cmp rcx, rax
jge 0x1400e0eca
imul rax, rcx, 0xf4240
cqo
idiv qword [0x14020a1c0]
mov qword [rsp + 0x28], rax
mov rcx, qword [0x14020a1b0]
xor edx, edx
cmp rax, rcx
setns dl
movabs r8, 0x7fffffffffffffff
add r8, rdx
sub rax, rcx
cmovo rax, r8
movabs rdx, 0x8000000000000001
lea r8, [rax + rdx]
mov rcx, qword [0x14020a160]
cmp r8, 2
jb 0x1400e0e81
lea rdx, [rcx + rax]
sar rdx, 0x3f
btc rdx, 0x3f
add rcx, rax
cmovo rcx, rdx
mov rax, rcx
mov qword [0x14020a160], rax
mov ecx, dword [0x14020a158]
call qword [sym.imp.WINMM.dll_timeEndPeriod]
mov dword [0x14020a158], ebp
test ebx, ebx
je 0x1400e0deb
mov rax, qword [0x1401fd7e0]
lea rcx, [0x1400e0f00]
lea rdi, [rsp + 0x28]
cmp rax, rcx
jne 0x1400e0e70
mov qword [rdi], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rdi]
movabs rax, 0x8637bd05af7
cmp rcx, rax
jge 0x1400e0e99
imul rax, rcx, 0xf4240
cqo
idiv qword [0x14020a1c0]
mov qword [0x14020a1b0], rax
mov ecx, dword [0x14020a158]
call qword [sym.imp.WINMM.dll_timeBeginPeriod]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14012b460
mov al, 1
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rcx, [0x14020a1a8]
call fcn.14012aa10
cmp dword [0x14020a1a8], 0xffffffff
jne 0x1400e0c5e
mov ecx, 8
call fcn.14012a8b0
mov rsi, rax
mov rcx, rax
call fcn.1400e17c0
mov qword [0x14020a1a0], rsi
lea rcx, [0x14020a1a8]
call fcn.14012aaa8
jmp 0x1400e0c5e
mov rcx, rsi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x1400e0c76
mov rcx, rdi
call qword [0x14021c008]
mov rax, qword [rdi]
jmp 0x1400e0d10
mov rcx, rdi
call qword [0x14021c008]
mov rax, qword [rdi]
jmp 0x1400e0dd8
cmp rcx, rax
je 0x1400e0d69
add rcx, rdx
cmp rcx, 1
ja 0x1400e0d69
jmp 0x1400e0efb
mov r8, qword [0x14020a1c0]
mov rax, rcx
cqo
idiv r8
imul r9, rax, 0xf4240
imul rax, r8
sub rcx, rax
imul rax, rcx, 0xf4240
cqo
idiv r8
add rax, r9
jmp 0x1400e0dd8
mov r8, qword [0x14020a1c0]
mov rax, rcx
cqo
idiv r8
imul r9, rax, 0xf4240
imul rax, r8
sub rcx, rax
imul rax, rcx, 0xf4240
cqo
idiv r8
add rax, r9
jmp 0x1400e0d0b
int3
Function at 0x1400e0fa0
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 [0x1401ee038]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x20]
call fcn.1400e12f0
mov qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryThreadCycleTime]
movsd xmm0, qword [0x14020a170]
xorpd xmm6, xmm6
ucomisd xmm0, xmm6
jne 0x1400e0ffe
jnp 0x1400e1064
ucomisd xmm0, xmm6
jne 0x1400e1006
jnp 0x1400e1060
movsd xmm1, qword [rsp + 0x28]
unpcklps xmm1, xmmword [0x1401c63a0]
subpd xmm1, xmmword [0x1401c63b0]
movapd xmm2, xmm1
unpckhpd xmm2, xmm1
addsd xmm2, xmm1
divsd xmm2, xmm0
mulsd xmm2, qword [0x1401c58f0]
cvttsd2si rax, xmm2
mov qword [rsi], rax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14012b460
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 0x1400e1038
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 [0x14020a180]
mov ecx, dword [0x1401fd9c8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400e1179
mov eax, dword [0x14020a190]
mov ecx, dword [0x1401fd9c8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400e11b3
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 [0x14020a188]
cvtsi2sd xmm1, r13
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rdi]
divsd xmm1, xmm0
xorpd xmm0, xmm0
movsd xmm2, qword [0x1401d40b8]
ucomisd xmm2, xmm1
ja 0x1400e0ffe
shl r14, 0x20
or rbx, r14
sub rbx, qword [0x14020a178]
movq xmm0, rbx
punpckldq xmm0, xmmword [0x1401c63a0]
subpd xmm0, xmmword [0x1401c63b0]
haddpd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [0x14020a170], xmm0
jmp 0x1400e0ffe
lea rcx, [0x14020a180]
call fcn.14012aa10
cmp dword [0x14020a180], 0xffffffff
jne 0x1400e10ad
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x14020a178], rdx
lea rcx, [0x14020a180]
call fcn.14012aaa8
jmp 0x1400e10ad
lea rcx, [0x14020a190]
call fcn.14012aa10
cmp dword [0x14020a190], 0xffffffff
jne 0x1400e10d2
lea rbx, [rsp + 0x30]
mov qword [rbx], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbx]
mov qword [0x14020a188], rax
lea rcx, [0x14020a190]
call fcn.14012aaa8
jmp 0x1400e10d2
Function at 0x1400e1580
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 0x1400e161a
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400e1604
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1400e15e1
mov qword [rsi], rdi
call fcn.1400f6c70
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsi]
mov byte [rsi + 8], 0
inc rax
cmp rax, 1
jbe 0x1400e161e
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1400f6c70
mov rcx, qword [rsi]
call fcn.1400e0410
mov qword [rsi], 0
jmp 0x1400e15cf
mov byte [rsi + 8], 0
int3
Function at 0x1400fe1f0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
sub rsp, 0x58
mov rax, qword [0x1401ee038]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp r9, 0x30
ja 0x1400fe2c6
mov rsi, rcx
movups xmm0, xmmword [rdx]
movups xmm1, xmmword [rdx + 0x10]
movups xmm2, xmmword [rdx + 0x20]
movaps xmmword [rsp + 0x40], xmm2
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
test r9, r9
jne 0x1400fe2ca
xor eax, eax
lea rcx, [0x1401d8970]
mov dl, byte [rax + rcx]
xor byte [rsp + rax + 0x20], dl
inc rax
cmp rax, 0x30
jne 0x1400fe23e
lea rdi, [rsi + 0xf8]
mov ecx, 1
call fcn.1400fd850
lea rcx, [rsp + 0x20]
mov edx, 0x100
mov r8, rsi
bt eax, 0x19
jae 0x1400fe2e2
call fcn.140003260
lea rax, [0x140001d60]
test rdi, rdi
je 0x1400fe28d
lea rcx, section..text
mov qword [rdi], rcx
mov qword [rsi + 0x100], rax
movaps xmm0, xmmword [rsp + 0x40]
movups xmmword [rsi + 0x108], xmm0
mov qword [rsi + 0x118], 1
mov esi, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14012b460
mov eax, esi
add rsp, 0x58
pop rdi
pop rsi
ret
xor esi, esi
jmp 0x1400fe2b0
xor eax, eax
mov cl, byte [r8 + rax]
xor byte [rsp + rax + 0x20], cl
inc rax
cmp r9, rax
je 0x1400fe235
jmp 0x1400fe2cc
bt eax, 9
jae 0x1400fe302
call fcn.140004350
lea rax, [0x140004820]
test rdi, rdi
je 0x1400fe28d
lea rcx, [0x140004520]
jmp 0x1400fe28a
call fcn.14019e370
lea rax, [0x14019eb70]
test rdi, rdi
je 0x1400fe28d
lea rcx, [0x14019e250]
jmp 0x1400fe28a
Function at 0x1400fe330
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rax, qword [0x1401ee038]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp r8, 0x30
ja 0x1400fe481
mov r14, r8
mov r15, rdx
mov rsi, rcx
movaps xmm0, xmmword [0x1401c1a60]
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 [0x14021c008]
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 [0x14021c008]
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 [0x14021c008]
test r14, r14
je 0x1400fe413
xor eax, eax
mov cl, byte [r15 + rax]
xor byte [rsp + rax + 0x20], cl
inc rax
cmp r14, rax
jne 0x1400fe403
lea r14, [rsi + 0xf8]
mov ecx, 1
call fcn.1400fd850
lea rcx, [rsp + 0x20]
mov edx, 0x100
mov r8, rsi
bt eax, 0x19
jae 0x1400fe485
call fcn.140003260
lea rax, [0x140001d60]
test r14, r14
je 0x1400fe452
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.14012b460
mov eax, esi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor esi, esi
jmp 0x1400fe464
bt eax, 9
jae 0x1400fe4a5
call fcn.140004350
lea rax, [0x140004820]
test r14, r14
je 0x1400fe452
lea rcx, [0x140004520]
jmp 0x1400fe44f
call fcn.14019e370
lea rax, [0x14019eb70]
test r14, r14
je 0x1400fe452
lea rcx, [0x14019e250]
jmp 0x1400fe44f

Function at 0x14010b5a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, ecx
test r8, r8
je 0x14010b5cb
xor ecx, ecx
lea r9, [0x1401d9440]
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 0x14010b5b0
ret
Function at 0x14010e9b0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov esi, ecx
mov rax, qword [0x1401ee038]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rax, [0x1400b9740]
mov qword [rsp + 0x20], rax
lea rcx, [0x14020aa88]
lea rdx, [0x1400b95e0]
lea r8, [rsp + 0x20]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x14010ea44
cmp dword [0x14020aa90], 0
jne 0x14010ea40
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [0x14020aa94]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x14010ea40
movsxd rax, esi
mov rsi, qword [rdi + rax*8]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14012b460
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
xor esi, esi
jmp 0x14010ea28
call fcn.140144d40
int3
Function at 0x140127ce0
Capabilities:
Access peb ldr_data

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov rax, qword [0x1401ee038]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov byte [rcx], 0
mov eax, dword [0x1401fd9c8]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea rcx, [rax + 0x1d8]
mov qword [rsi + 8], rcx
mov rcx, qword [rax + 0x1d8]
mov qword [rax + 0x1d8], rsi
mov qword [rsi + 0x10], rcx
mov qword [rsi + 0x18], rdx
mov qword [rsi + 0x38], 0
mov dword [rsi + 0x40], 0
mov byte [rsi + 0x50], 0
xorps xmm0, xmm0
movups xmmword [rsi + 0x20], xmm0
mov qword [rsi + 0x58], r8
mov qword [rsi + 0x60], r9
test byte [0x1401fc9d0], 9
jne 0x140127d75
mov byte [rsi + 0x30], 0
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14012b460
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov byte [rsi + 0x30], 1
mov rax, qword [rdx]
mov rax, qword [rax + 8]
lea rdi, [rsp + 0x28]
mov rcx, rdx
mov rdx, rdi
call qword [0x14021c008]
mov rax, qword [rdi]
mov qword [rsi + 0x20], rax
jmp 0x140127d5e

Function at 0x14012b6c4
Capabilities:
Parse pe header

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

Function at 0x14012bb4c
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 0x14012bbc4
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x14012bbc4
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 0x14012bbc4
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x14012bbb8
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x14012bbd6
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x14012bba6
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 0x14012bbc6
Function at 0x14013eab8
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 0x14013eaef
call fcn.140141d84
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.140143420
xor eax, eax
jmp 0x14013eb7d
mov rdx, r9
mov rcx, r8
call fcn.14013eba0
mov rbx, rax
test rax, rax
je 0x14013eb7a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x14013ec10]
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 0x14013eb67
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140141dc4
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14013eb4e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14013eb5d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1400d3ae0
jmp 0x14013eb7a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14013eb77
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 0x14013f110
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.140143c98
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140143c98
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14013f260
cmp rax, 0xffffffffffffffff
je 0x14013f260
xor edi, edi
test rbp, rbp
jle 0x14013f20b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400d3b80
mov rbx, rax
test rax, rax
jne 0x14013f198
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14013f201
mov edx, 0x8000
mov ecx, r14d
call fcn.140144e18
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.140148630
cmp eax, 0xffffffff
je 0x14013f1e1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14013f1a8
mov edx, r15d
mov ecx, r14d
call fcn.140144e18
jmp 0x14013f201
cmp byte [rsi + 0x38], dil
je 0x14013f1f8
cmp dword [rsi + 0x34], 5
jne 0x14013f1f8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayDestroy
cmp byte [rsi + 0x30], dil
je 0x14013f201
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400d3ae0
jmp 0x14013f274
jns 0x14013f274
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140143c98
cmp rax, 0xffffffffffffffff
jne 0x14013f22c
cmp byte [rsi + 0x30], dil
je 0x14013f274
mov edi, dword [rsi + 0x2c]
jmp 0x14013f274
mov ecx, r14d
call fcn.1401421dc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14013f274
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, SafeArrayDestroy
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayDestroy
jmp 0x14013f274
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14013f26d
mov eax, dword [rsi + 0x2c]
jmp 0x14013f272
mov eax, reloc.WS2_32.dll_shutdown
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140143c98
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 0x1401427cc
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1401ee038]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x140142816
call fcn.140141da4
mov dword [rax], reloc.OLEAUT32.dll_SafeArrayDestroy
call fcn.140141d84
mov dword [rax], SafeArrayDestroy
call fcn.140143420
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14012b460
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x140142821
lea eax, [rbx + 1]
jmp 0x140142803
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 0x140142801
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x140142803
Function at 0x1401449fc
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, [0x1401fe9b0]
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 0x140144a53
cmp word [rdx], r13w
jne 0x140144a53
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140144a58
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140144b7d
mov r11d, SafeArrayDestroy
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140144b9e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140144a91
mov rdx, r9
mov word [rbx], cx
jmp 0x140144ab8
cmp r9, r8
jae 0x140144ac8
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 0x140144a72
jmp 0x140144b7d
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 0x140144b72
cmp dword [rsp + 0x80], esi
je 0x140144b72
lea r8, [0x1401fe9b0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140144b4a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140144b1a
mov word [rbx], r13w
jmp 0x140144b7a
mov ecx, SafeArrayDestroy
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 0x140144b27
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140144b7a
cmp word [rsp + 0x70], r13w
jne 0x140144b57
cmp rbx, r14
je 0x140144b14
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140143c98
cmp word [rsp + 0x70], r13w
je 0x140144b7d
mov ecx, SafeArrayDestroy
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, [0x1401fe9b0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140144b77
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140144b7d