joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004a160
Capabilities:
Inspect section memory permissions

Disassembly:
mov r9d, r8d
xor r8d, r8d
jmp 0x14004a160
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
mov ebx, r8d
mov rsi, rdx
mov r14, rcx
cmp byte [rdx + 0x17], 0
jns 0x14004a181
mov rsi, qword [rsi]
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x14004a1a1
cmp byte [r14 + 0x50], 0
jne 0x14004a22c
or edi, 0x20000000
test dil, 8
jne 0x14004a237
xor r15d, r15d
cmp byte [r14 + 0x60], 0
mov r12d, 0
je 0x14004a1bf
mov r12, qword [r14 + 0x58]
cmp byte [r14 + 0x48], 0
mov r13d, 0
je 0x14004a1d0
mov r13, qword [r14 + 0x40]
cmp byte [r14 + 0x38], 0
jne 0x14004a25e
cmp byte [r14 + 0x18], 0
jne 0x14004a26f
xor r9d, r9d
mov edx, 1
test ebx, ebx
jne 0x14004a27f
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r15
mov rcx, rsi
mov r8d, edi
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov esi, eax
test eax, eax
jne 0x14004a254
test esi, esi
sete al
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
or edi, 0x80000000
jmp 0x14004a1a1
cmp byte [r14 + 0x68], 0
je 0x14004a249
or edi, 0x40000000
jmp 0x14004a1ab
or edi, 0x10000000
jmp 0x14004a1ab
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14004a217
lea rcx, [r14 + 0x20]
call fcn.140039c90
mov r15, rax
jmp 0x14004a1db
mov rcx, r14
call fcn.140039c90
mov r9, rax
jmp 0x14004a1e9
cmp ebx, 4
jne 0x14004a28e
mov edx, 6
jmp 0x14004a1f6
lea eax, [rbx - 2]
cmp eax, 2
jae 0x14004a2a0
mov edx, 7
jmp 0x14004a1f6
cmp ebx, 1
jne 0x14004a2af
mov edx, 4
jmp 0x14004a1f6
xor edx, edx
jmp 0x14004a1f6

Function at 0x14004a2c0
Capabilities:
Inspect section memory permissions

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
mov ebx, r8d
mov rsi, rdx
mov r15, rcx
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x14004a2f8
cmp byte [r15 + 0x50], 0
jne 0x14004a38f
or edi, 0x20000000
test dil, 8
jne 0x14004a39a
xor r14d, r14d
cmp byte [r15 + 0x60], 0
mov r12d, 0
je 0x14004a316
mov r12, qword [r15 + 0x58]
cmp byte [r15 + 0x48], 0
mov r13d, 0
je 0x14004a327
mov r13, qword [r15 + 0x40]
cmp byte [r15 + 0x38], 0
jne 0x14004a3c1
cmp byte [r15 + 0x18], 0
jne 0x14004a3d2
xor r9d, r9d
cmp ebx, 4
jne 0x14004a380
mov edx, 6
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r14
mov rcx, rsi
mov r8d, edi
call qword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
mov esi, eax
test eax, eax
jne 0x14004a3b7
test esi, esi
sete al
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea eax, [rbx - 2]
cmp eax, 2
jae 0x14004a3e2
mov edx, 7
jmp 0x14004a34a
or edi, 0x80000000
jmp 0x14004a2f8
cmp byte [r15 + 0x68], 0
je 0x14004a3ac
or edi, 0x40000000
jmp 0x14004a302
or edi, 0x10000000
jmp 0x14004a302
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14004a36b
lea rcx, [r15 + 0x20]
call fcn.140039c90
mov r14, rax
jmp 0x14004a332
mov rcx, r15
call fcn.140039c90
mov r9, rax
jmp 0x14004a340
mov edx, 1
test ebx, ebx
je 0x14004a34a
cmp ebx, 1
jne 0x14004a3fe
mov edx, 4
jmp 0x14004a34a
xor edx, edx
jmp 0x14004a34a
Function at 0x14004afc0
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
test rcx, rcx
je 0x14004b037
movabs rax, 0xe69e32f3ad9ea63
cmp qword [0x140123cd0], rax
jne 0x14004b03a
mov rsi, rcx
call fcn.140052190
mov edx, 0x568
mov rcx, rax
xor r8d, r8d
call fcn.14004b050
mov rdi, rax
mov rcx, rax
mov rdx, rsi
call fcn.1400782b0
mov ecx, dword [0x140135d40]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x14012fdc8]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x150], rdi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
int3
int3

Function at 0x14004e770
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x140121040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov edi, 0xffffffff
cmp r8, rdi
cmovae r8, rdi
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14004e7d0
mov esi, dword [rsp + 0x2c]
cmp rsi, rdi
je 0x14004e7d9
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140080790
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov rsi, 0xffffffffffffffff
jmp 0x14004e7b9
int3
mov rcx, qword [rcx + 8]
jmp 0x14004e770

Function at 0x14004e7e0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140121040]
xor rax, rsp
mov ebx, 0xffffffff
cmp r8, rbx
cmovb rbx, r8
mov qword [rsp + 0x30], rax
lea r14, [rsp + 0x2c]
mov r15, qword [sym.imp.KERNEL32.dll_ReadFile]
mov r12, qword [sym.imp.KERNEL32.dll_GetFileType]
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
mov rcx, rdi
mov rdx, rsi
mov r8d, ebx
mov r9, r14
call r15
test eax, eax
je 0x14004e886
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x14004e872
cmp eax, 0xffffffff
je 0x14004e883
mov esi, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140080790
mov rax, rsi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rcx, rdi
call r12
cmp eax, 3
je 0x14004e821
mov eax, dword [rsp + 0x2c]
jmp 0x14004e852
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x6d
setne sil
neg rsi
jmp 0x14004e854

Function at 0x14004ed90
Capabilities:
Clear file content

Disassembly:
push rsi
push rdi
sub rsp, 0x178
mov rdi, rcx
mov rax, qword [0x140121040]
xor rax, rsp
mov qword [rsp + 0x170], rax
xor esi, esi
xor edx, edx
xor r8d, r8d
call fcn.14004ec90
test rax, rax
jne 0x14004edcf
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov sil, 1
test eax, eax
je 0x14004edeb
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140080790
mov eax, esi
add rsp, 0x178
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.1400696d0
test al, al
je 0x14004ee41
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_file_io_win.cc
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0xfc
mov r9d, 2
call fcn.1400d5f20
lea rcx, [rsp + 0x40]
lea rdx, [0x14010dcd2]
mov r8d, 0xc
call fcn.140053780
mov rcx, rsi
call fcn.1400d5fa0
xor esi, esi
jmp 0x14004edcf
Function at 0x14004f2d0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x140121040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov edi, 0xffffffff
cmp r8, rdi
cmovae r8, rdi
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14004e7d0
mov esi, dword [rsp + 0x2c]
cmp rsi, rdi
je 0x14004e7d9
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140080790
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov rsi, 0xffffffffffffffff
jmp 0x14004e7b9
int3
mov rcx, qword [rcx + 8]
jmp 0x14004e770

Function at 0x1400510b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rdi, r8
mov rsi, rdx
mov ebx, ecx
mov rax, qword [0x140121040]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rax, [0x140051080]
lea r8, [rsp + 0x28]
mov qword [r8], rax
lea rcx, [0x140136ba8]
lea rdx, [0x140050f20]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x1400511a8
cmp dword [0x140136bb0], 0
jne 0x1400511b5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, dword [0x140136bb4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r14, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
jne 0x14005115c
mov ecx, 1
mov edx, 0x28
call fcn.1400665a0
test rax, rax
je 0x1400511b5
mov r14, rax
mov ecx, dword [0x140136bb4]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1400511ad
lea r15, [0x140136bb8]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
movsxd rbx, ebx
lea rax, [0x140136bc0]
mov qword [rax + rbx*8], rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov qword [r14 + rbx*8], rsi
mov esi, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140080790
mov eax, esi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400974a0
mov rcx, r14
call fcn.140066500
mov rcx, rsi
mov rax, rdi
call qword [0x140114e70]
xor esi, esi
jmp 0x14005118c

Function at 0x1400520a0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp qword [0x140136bf8], 0
jne 0x1400520dd
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x1400520d0
mov dword [rdi], eax
mov dword [0x140136c00], eax
mov qword [0x140136bf8], rsi
cmp eax, 0xffffffff
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
int3
Function at 0x140052fd0
Capabilities:
Reference processor manufacturer constants

Disassembly:
push rsi
push rdi
mov r8, rcx
xor edi, edi
xor eax, eax
xor ecx, ecx
xchg rbx, r9
cpuid
xchg rbx, r9
test eax, eax
jle 0x1400530ec
mov r10d, eax
xor ecx, ecx
mov eax, 1
xchg rbx, r9
cpuid
xchg rbx, r9
mov r9d, ecx
mov r11d, edx
mov esi, eax
cmp r10d, 7
jb 0x140053128
mov eax, 7
xor ecx, ecx
xchg rbx, rdi
cpuid
xchg rbx, rdi
mov r10d, ecx
and edi, 0x20
shr edi, 5
shr r10b, 4
and r10b, 1
mov dword [r8], esi
mov eax, esi
and eax, 0xf
mov dword [r8 + 8], eax
shr esi, 0xc
and esi, 3
mov dword [r8 + 4], esi
mov eax, r11d
shr eax, 0x17
and al, 1
mov byte [r8 + 0xc], al
mov eax, r11d
shr eax, 0x19
and al, 1
mov byte [r8 + 0xd], al
shr r11d, 0x1a
and r11b, 1
mov byte [r8 + 0xe], r11b
mov eax, r9d
and al, 1
mov byte [r8 + 0xf], al
mov eax, r9d
shr eax, 9
and al, 1
mov byte [r8 + 0x10], al
mov eax, r9d
shr eax, 0x13
and al, 1
mov byte [r8 + 0x11], al
mov eax, r9d
shr eax, 0x14
and al, 1
mov byte [r8 + 0x12], al
mov eax, r9d
shr eax, 0x17
and al, 1
mov byte [r8 + 0x13], al
mov eax, r9d
shr eax, 0x1f
mov byte [r8 + 0x1a], al
mov eax, r9d
not eax
test eax, 0x1c000000
jne 0x140053130
xor ecx, ecx
xgetbv
not eax
test al, 6
sete al
mov byte [r8 + 0x14], al
mov ecx, r9d
shr ecx, 0x19
and cl, 1
mov byte [r8 + 0x17], cl
shr r9d, 0xc
and r9b, 1
mov byte [r8 + 0x15], r9b
and dil, al
mov byte [r8 + 0x16], dil
mov byte [r8 + 0x18], r10b
xor ecx, ecx
mov eax, 0x80000000
xchg rbx, r9
cpuid
xchg rbx, r9
cmp eax, 0x80000006
jle 0x140053122
mov eax, 0x80000007
xor ecx, ecx
xchg rbx, r9
cpuid
xchg rbx, r9
shr edx, 8
and dl, 1
mov byte [r8 + 0x19], dl
test dl, dl
je 0x140053134
pop rdi
pop rsi
ret
mov dl, byte [r8 + 0x19]
jmp 0x14005311b
xor r10d, r10d
jmp 0x14005302f
xor eax, eax
jmp 0x1400530c4
cmp byte [r8 + 0x1a], 0
je 0x14005311f
mov eax, 0x40000000
xor ecx, ecx
xchg rbx, r9
cpuid
xchg rbx, r9
cmp r9d, 0x7263694d
jne 0x14005311f
cmp ecx, 0x666f736f
jne 0x14005311f
cmp edx, 0x76482074
jne 0x14005311f
mov byte [r8 + 0x19], 1
jmp 0x14005311f
Function at 0x14005e070
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 0x14005e10a
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14005e0f4
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14005e0d1
mov qword [rsi], rdi
call fcn.140066f00
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 0x14005e10e
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.140066f00
mov rcx, qword [rsi]
call fcn.1400681a0
mov qword [rsi], 0
jmp 0x14005e0bf
mov byte [rsi + 8], 0
int3
Function at 0x1400681d0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x140121040]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x140133718]
mov ecx, dword [0x14012fdc8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140068230
mov rsi, qword [0x140133710]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140080790
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x140133718]
call fcn.14007f47c
cmp dword [0x140133718], 0xffffffff
jne 0x14006820c
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.1400b5fa0
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.14007f3f0
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x140133760]
mov ecx, dword [0x14012fdc8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400682f0
lea r8, [0x140133730]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.140037030
mov qword [0x140133710], rsi
lea rcx, [0x140133718]
call fcn.14007f530
jmp 0x14006820c
lea rcx, [0x140133760]
call fcn.14007f47c
cmp dword [0x140133760], 0xffffffff
jne 0x1400682c1
xorps xmm0, xmm0
movups xmmword [0x140133750], xmm0
movups xmmword [0x140133740], xmm0
movups xmmword [0x140133730], xmm0
lea rcx, [0x140133730]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140133760]
call fcn.14007f530
jmp 0x1400682c1

Function at 0x140069030
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rcx, rdx
call fcn.140068ef0
mov qword [rsi], 0
test rax, rax
je 0x140069083
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400690b7
lea rax, [rbx + 1]
cmp rax, 2
jb 0x14006907b
mov qword [rsi], rbx
call fcn.140066f00
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsi + 8]
lea rdx, [rdi + 8]
call fcn.140063a90
lea rcx, [rsi + 0x20]
call fcn.140076a80
mov eax, dword [rdi + 0x24]
mov dword [rsi + 0x24], eax
mov al, byte [rdi + 0x28]
mov byte [rsi + 0x28], al
mov al, byte [rdi + 0x29]
mov byte [rsi + 0x29], al
mov rax, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
call fcn.140066f00
mov rcx, qword [rsi]
call fcn.1400681a0
mov qword [rsi], 0
jmp 0x140069069
Function at 0x14007a340
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, ecx
mov rcx, qword [rdx + 8]
test rcx, rcx
js 0x14007a37c
je 0x14007a37b
mov rdx, qword [rdx]
xor r8d, r8d
lea r9, [0x14010d860]
nop word [rax + rax]
movzx r10d, byte [rdx + r8]
movzx r11d, al
xor r11d, r10d
shr eax, 8
xor eax, dword [r9 + r11*4]
inc r8
cmp rcx, r8
jne 0x14007a360
ret
int3
Function at 0x14007c370
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov esi, ecx
mov rax, qword [0x140121040]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rax, [0x140051080]
mov qword [rsp + 0x20], rax
lea rcx, [0x140136ba8]
lea rdx, [0x140050f20]
lea r8, [rsp + 0x20]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x14007c404
cmp dword [0x140136bb0], 0
jne 0x14007c400
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [0x140136bb4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x14007c400
movsxd rax, esi
mov rsi, qword [rdi + rax*8]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140080790
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
xor esi, esi
jmp 0x14007c3e8
call fcn.1400974a0
int3

Function at 0x14007fc54
Capabilities:
Parse pe header

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

Function at 0x14007ffb0
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 0x140080028
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x140080028
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 0x140080028
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x14008001c
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x14008003a
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x14008000a
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 0x14008002a
Function at 0x140092188
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 0x1400921bf
call fcn.1400951e4
mov dword [rax], 0x16
call fcn.140097548
xor eax, eax
jmp 0x14009224d
mov rdx, r9
mov rcx, r8
call fcn.140092270
mov rbx, rax
test rax, rax
je 0x14009224a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400922e0]
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 0x140092237
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140095224
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14009221e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14009222d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140066500
jmp 0x14009224a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140092247
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 0x1400923b4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400924fc

Function at 0x1400924fc
Capabilities:
Parse pe header

Disassembly:
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1400924fc
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 0x14009256b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14009256b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14009256b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14009256b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14009256b
cmp dword [rcx + 0x84], 0xe
jbe 0x14009256b
cmp dword [rcx + 0xf8], 0
je 0x14009256b
mov ecx, ebx
call fcn.140092434
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.140092690
nop
cmp dword [rbp + 0x20], 0
je 0x1400925b9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400924c8
int3
Function at 0x140095548
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 [0x140121040]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x1400f1978]
mov rbp, rcx
call fcn.1400a747c
xor edi, edi
test rax, rax
je 0x14009562e
mov ebx, edi
call fcn.1400951e4
mov r14d, dword [rax]
call fcn.1400951e4
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.140099e10
mov rsi, rax
test rax, rax
je 0x1400955bf
call fcn.1400951e4
mov dword [rax], r14d
jmp 0x1400955e9
call fcn.1400951e4
cmp dword [rax], 0x22
jne 0x140095626
call fcn.1400951e4
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.140099e10
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x140095626
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x1400955ed
cmp rax, 3
je 0x140095608
mov rcx, rsi
call fcn.1400954a4
test al, al
je 0x140095619
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x140095619
mov dil, 1
mov rcx, rbx
call fcn.140066500
mov al, dil
jmp 0x140095630
mov rcx, rbx
call fcn.140066500
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140080790
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 0x14009715c
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, [0x140130c60]
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 0x1400971b3
cmp word [rdx], r13w
jne 0x1400971b3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400971b8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400972dd
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400972fe
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400971f1
mov rdx, r9
mov word [rbx], cx
jmp 0x140097218
cmp r9, r8
jae 0x140097228
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 0x1400971d2
jmp 0x1400972dd
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 0x1400972d2
cmp dword [rsp + 0x80], esi
je 0x1400972d2
lea r8, [0x140130c60]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400972aa
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14009727a
mov word [rbx], r13w
jmp 0x1400972da
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 0x140097287
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400972da
cmp word [rsp + 0x70], r13w
jne 0x1400972b7
cmp rbx, r14
je 0x140097274
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400a6088
cmp word [rsp + 0x70], r13w
je 0x1400972dd
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, [0x140130c60]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400972d7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400972dd