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

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, rcx
mov rax, qword [0x14039bf08]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov ecx, dword [0x140399e50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1401c591f
cmp byte [rax + 8], 0
jne 0x1401c5924
mov rcx, rax
call fcn.140048300
test rax, rax
jne 0x1401c5924
call fcn.14018eef0
mov rbx, qword [rax + 0x68]
test rbx, rbx
je 0x1401c59cc
lea rdi, [rsi + 8]
mov rcx, rdi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov byte [rbx + 0x28], 1
mov rax, qword [rsi + 0x98]
test rax, rax
je 0x1401c59e4
inc rax
mov qword [rsi + 0x98], rax
lea r14, [rsi + 0x48]
cmp qword [rsi + 0x48], r14
jne 0x1401c59e4
cmp qword [rsi + 0x68], 0
je 0x1401c59e4
mov ecx, 0x30
call fcn.140263580
mov rbx, rax
mov qword [rax + 0x10], rsi
mov rax, qword [0x14031b2b0]
mov qword [rbx + 0x18], rax
mov qword [rbx + 0x20], 0
mov byte [rbx + 0x28], 0
mov qword [rbx], r14
mov rax, qword [rsi + 0x50]
mov qword [rbx + 8], rax
mov qword [rsi + 0x50], rbx
mov qword [rax], rbx
inc qword [rsi + 0x28]
mov rcx, rdi
call fcn.14009c470
lea rcx, str.DartWorker
lea rdx, [0x1401c5e60]
mov r8, rbx
call fcn.14018f150
test eax, eax
jne 0x1401c5a02
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140263300
nop
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140263300
mov rcx, rdi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.14009c470
lea rcx, str..._.._runtime_vm_thread_pool.cc
mov qword [rsp + 0x20], rcx
mov dword [rsp + 0x28], 0x12b
lea rdx, str.Could_not_start_worker_thread:_result___d.
lea rcx, [rsp + 0x20]
mov r8d, eax
call fcn.140023910
int3

Function at 0x1401c5a30
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x140399e50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1401c5a5e
cmp byte [rax + 8], 0
jne 0x1401c5a63
mov rcx, rax
call fcn.140048300
test rax, rax
jne 0x1401c5a63
call fcn.14018eef0
mov rbx, qword [rax + 0x68]
test rbx, rbx
je 0x1401c5aa7
lea rdi, [rsi + 8]
mov rcx, rdi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
cmp byte [rbx + 0x28], 0
je 0x1401c5a98
mov byte [rbx + 0x28], 0
mov rax, qword [rsi + 0x98]
test rax, rax
je 0x1401c5a98
dec rax
mov qword [rsi + 0x98], rax
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.14009c470
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
Function at 0x1401c8500
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
mov rax, qword [0x14039bf08]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov edx, dword [0x14039e4d8]
cmp edx, 0x10000001
jb 0x1401c8537
lea rcx, str.warning:_value_specified_for___old_gen_heap_size__d_is_larger_than_the_physically_addressable_range__using_0_unlimited__instead.__n
call fcn.14018fde0
mov dword [0x14039e4d8], 0
mov edx, dword [0x14039e4c8]
cmp edx, 0x10000001
jb 0x1401c8561
lea rcx, str.warning:_value_specified_for___new_gen_semi_max_size__d_is_larger_than_the_physically_addressable_range__using__lld_instead.__n
mov r8d, reloc.WS2_32.dll_recv
call fcn.14018fde0
mov dword [0x14039e4c8], 0x10
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x24]
mov qword [0x1403a1ef8], rax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140263300
nop
add rsp, 0x58
ret

Function at 0x1401c85a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rbx, rcx
lea rsi, [rdx + rcx]
sub rsi, qword [0x1403a1ef8]
cmp byte [0x14039e2a0], 0
mov ebp, 0x40
mov eax, 4
cmovne ebp, eax
test r8b, r8b
cmove ebp, eax
xor r15d, r15d
xor ecx, ecx
mov rdx, rsi
mov r8d, 0x2000
mov r9d, ebp
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x1401c865c
mov r14, rax
add rax, rdi
dec rax
neg rdi
and rdi, rax
mov rcx, rdi
mov rdx, rbx
mov r8d, 0x1000
mov r9d, ebp
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp rax, rdi
je 0x1401c8633
mov rcx, r14
mov rdx, rsi
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor r15d, r15d
jmp 0x1401c865c
test rdi, rdi
je 0x1401c862e
mov ecx, 0x30
call fcn.140263580
mov r15, rax
mov qword [rax], rdi
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], r14
mov qword [rax + 0x28], rsi
mov rax, r15
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1401ed180
Capabilities:
Resolve function by parsing pe exports

Disassembly:
lea rax, vtable.icu_68::Locale.0
mov qword [rcx], rax
lea rax, [rcx + 0x30]
mov qword [rcx + 0x28], rax
mov qword [rcx + 0xd0], 0
xor edx, edx
xor r8d, r8d
jmp fcn.1401ecab0

Function at 0x1401fba50
Capabilities:
Get geographical location

Disassembly:
push rsi
sub rsp, 0x90
mov rax, qword [0x14039bf08]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov dword [rsp + 0x2c], 0
mov rsi, qword [0x1403a29e8]
test rsi, rsi
jne 0x1401fbba4
lea rsi, [0x1403a29f0]
xor ecx, ecx
mov edx, 0x5c
mov r8, rsi
mov r9d, 0x55
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jle 0x1401fbb8a
xorps xmm0, xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x7d], 0
mov eax, 1
jmp 0x1401fbae9
mov byte [rsp + rax + 0x30], 0x2d
add rax, 2
movzx ecx, word [rsi + rax*2 - 2]
cmp cx, 0x5f
jne 0x1401fbb00
mov byte [rsp + rax + 0x2f], 0x2d
jmp 0x1401fbb08
mov byte [rsp + rax + 0x2f], cl
test cl, cl
je 0x1401fbb2a
cmp rax, 0x55
je 0x1401fbb22
movzx ecx, word [rsi + rax*2]
cmp cx, 0x5f
je 0x1401fbae0
mov byte [rsp + rax + 0x30], cl
test cl, cl
jne 0x1401fbae5
jmp 0x1401fbb2a
mov byte [rsp + 0x84], 0
mov ecx, 0x41
call fcn.1401e43d0
test rax, rax
je 0x1401fbb8a
mov rsi, rax
lea rcx, [rsp + 0x30]
lea r9, [rsp + 0x2c]
mov rdx, rax
mov r8d, 0x40
call fcn.140210b40
cmp dword [rsp + 0x2c], 0
jle 0x1401fbb65
mov rcx, rsi
call fcn.1401e44a0
jmp 0x1401fbb8a
cdqe
mov byte [rsi + rax], 0
mov qword [0x1403a29e8], rsi
mov byte [0x1403a2a9a], 1
lea rdx, [0x1401fb7a0]
mov ecx, reloc.WS2_32.dll_socket
call fcn.140209cf0
mov rsi, qword [0x1403a29e8]
test rsi, rsi
jne 0x1401fbba4
lea rsi, [0x140331e54]
mov qword [0x1403a29e8], rsi
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140263300
mov rax, rsi
add rsp, 0x90
pop rsi
ret
Function at 0x140217a20
Capabilities:
Read file via mapping

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
cmp dword [r8], 0
jle 0x140217a3b
xor eax, eax
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
call fcn.14020c960
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10000080
mov dword [rsp + 0x20], 3
mov rcx, rbx
mov edx, 0x80000000
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
je 0x140217ae9
mov r14, rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rax
xor edx, edx
mov r8d, 2
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rbx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x140217ae9
mov qword [rsp + 0x20], 0
mov rcx, rbx
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rdi + 8], rax
test rax, rax
je 0x140217b14
mov qword [rdi + 0x28], rbx
mov al, 1
jmp 0x140217a31
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
cmp ecx, 0x8007000e
jne 0x140217a2f
mov dword [rsi], 7
jmp 0x140217a2f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140217a2f
Function at 0x140220a50
Capabilities:
Check for software breakpoints

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x1c0
mov ebp, r9d
mov r15d, r8d
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14039bf08]
xor rax, rsp
mov qword [rsp + 0x1b8], rax
test r8d, r8d
jle 0x140220abf
mov rbx, qword [rdi + 0x28]
test rbx, rbx
je 0x140220afa
mov rcx, qword [rsp + 0x1b8]
xor rcx, rsp
call fcn.140263300
mov rcx, rbx
mov rdx, rsi
mov r8d, r15d
mov r9d, ebp
add rsp, 0x1c0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp fcn.1401e1510
xor ebx, ebx
test r15d, r15d
js 0x140220aea
mov rcx, qword [rsp + 0x1b8]
xor rcx, rsp
call fcn.140263300
mov eax, ebx
add rsp, 0x1c0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rcx, rsi
call fcn.1402747f0
mov r15, rax
test r15d, r15d
je 0x140220ac6
mov rbx, qword [rdi + 0x58]
test rbx, rbx
je 0x140220b35
mov rcx, qword [rsp + 0x1b8]
xor rcx, rsp
call fcn.140263300
mov rcx, rbx
mov rdx, rsi
mov r8d, r15d
mov r9d, ebp
add rsp, 0x1c0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp fcn.140224f00
mov r8, qword [rdi + 0x50]
test r8, r8
je 0x140220b98
cmp dword [r8 + 8], 0
je 0x140220b98
cmp ebp, 1
mov r9d, reloc.WS2_32.dll_shutdown
sbb r9d, 0
lea rcx, [rsp + 0x38]
mov rdx, rdi
call fcn.140222930
cmp dword [rsp + 0x130], 0
je 0x140220b8e
lea rdi, [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
mov r8d, r15d
mov r9d, ebp
call fcn.140224f00
mov ebx, eax
mov rcx, rdi
call fcn.1402231a0
jmp 0x140220ac6
lea rcx, [rsp + 0x38]
call fcn.1402231a0
xor r12d, r12d
test ebp, ebp
setne r12b
lea r14, [rsp + 0x34]
mov ebx, r15d
nop dword [rax]
movsxd rax, ebx
lea rcx, [rax - 1]
mov dword [rsp + 0x34], ecx
movzx r9d, byte [rsi + rax - 1]
test r9b, r9b
jns 0x140220bdb
mov byte [rsp + 0x20], 0xfd
mov rcx, rsi
xor edx, edx
mov r8, r14
call fcn.140233d70
mov r9d, eax
mov rax, rdi
nop
mov rcx, qword [rax + 0x28]
test rcx, rcx
jne 0x140220c20
mov rdx, rax
mov rax, qword [rax + 0x58]
test rax, rax
jne 0x140220be0
xor eax, eax
cmp r9d, 0x10ffff
jg 0x140220c29
mov rcx, qword [rdx + 0x10]
cmp dword [rcx], r9d
jg 0x140220c14
mov edx, dword [rdx + 0x1c]
lea eax, [rdx - 1]
cmp edx, 2
jge 0x140220c46
and al, 1
jmp 0x140220c29
mov rax, qword [rcx]
mov edx, r9d
call qword [rax + ioctlsocket]
movsx eax, al
cmp r12d, eax
jne 0x140220ac6
mov ebx, dword [rsp + 0x34]
test ebx, ebx
jg 0x140220bb0
jmp 0x140220ac6
lea r8d, [rdx - 2]
cmp dword [rcx + r8*4], r9d
jle 0x140220c14
cmp edx, 2
je 0x140220c14
mov r8d, eax
shr r8d, 1
xor edx, edx
jmp 0x140220c6f
mov edx, r8d
lea r8d, [rax + rdx]
sar r8d, 1
cmp r8d, edx
je 0x140220c14
movsxd r10, r8d
cmp dword [rcx + r10*4], r9d
jle 0x140220c60
mov eax, r8d
jmp 0x140220c63
Function at 0x14022c960
Capabilities:
Inspect section memory permissions

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov rax, qword [rsp + 0x50]
mov qword [rcx + 8], r8
mov ecx, dword [r8]
mov dword [rsi + 0x20], ecx
lea r10, [0x14037c178]
mov qword [rsi + 0x10], r10
test r9d, r9d
js 0x14022c9b4
mov r10d, r9d
shr r10d, 2
mov r11d, 6
cmp byte [rdx], 1
jne 0x14022c9ab
xor r11d, r11d
cmp byte [rdx + 1], 0
setne r11b
lea r11d, [r11 + r11*4]
inc r11d
cmp r10d, r11d
jb 0x14022cad6
mov r10d, ecx
and r10d, 0xf0000000
cmp r10d, 0x20000000
je 0x14022c9d9
and ecx, 0xe0000000
cmp ecx, 0x40000000
jne 0x14022cad6
movzx r10d, byte [rdx]
cmp r10b, 1
jne 0x14022c9ed
cmp byte [rdx + 1], 0
je 0x14022ca91
movzx ecx, byte [r8 + 4]
cmp ecx, 4
jbe 0x14022cad6
test r9d, r9d
js 0x14022ca22
lea r11d, [rcx*4 + 4]
cmp r11d, r9d
ja 0x14022cad6
mov r11d, dword [r8 + 0x10]
shl r11d, 2
cmp r11d, r9d
jg 0x14022cad6
mov r9d, dword [r8 + 8]
lea r11d, [rcx + 1]
cmp r9d, r11d
jg 0x14022ca9e
cmp r10b, 3
jae 0x14022cab0
cmp ecx, 6
jb 0x14022cac3
mov r9d, dword [r8 + 0x18]
mov edx, r9d
and dl, 1
mov byte [rsi + 0x38], dl
mov r10d, r9d
shr r10b, 1
mov edx, r9d
shr dl, 2
and dl, 1
mov r11d, r9d
shl r11d, 0xc
and r11d, 0xf000000
or dword [rsi + 0x30], r11d
shr r9d, 0x10
and r10b, 1
mov byte [rsi + 0x39], r10b
mov byte [rsi + 0x3a], dl
mov dword [rsi + 0x34], r9d
jne 0x14022cad1
test dl, dl
je 0x14022ca8a
cmp ecx, 8
jb 0x14022cad6
cmp ecx, 7
jb 0x14022ca98
jmp 0x14022caf6
mov dword [rsi + 0x24], 0x10000
mov byte [rsi + 0x3b], 1
jmp 0x14022caf0
shl r9d, 2
mov dword [rsi + 0x24], r9d
movzx r10d, byte [rdx]
cmp r10b, 3
jb 0x14022ca35
mov edx, dword [r8 + 4]
shr edx, 8
mov dword [rsi + 0x30], edx
cmp ecx, 6
jae 0x14022ca3e
cmp byte [rsi + 0x39], 0
jne 0x14022cad6
cmp byte [rsi + 0x3a], 0
jne 0x14022cad6
jmp 0x14022ca98
cmp ecx, 7
ja 0x14022caf6
mov dword [rax], 3
mov rcx, qword [rsi]
test rcx, rcx
je 0x14022caf0
call fcn.14020ca50
mov qword [rsi], 0
add rsp, 0x20
pop rsi
ret
movsxd rax, dword [r8 + 8]
cmp dword [r8 + 0x1c], eax
jle 0x14022ca98
lea rax, [r8 + rax*4]
mov qword [rsi + 0x10], rax
jmp 0x14022ca98
Function at 0x140243520
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140399e50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140243548
cmp byte [rax + 8], 0
jne 0x140243552
mov rcx, rax
call fcn.140048300
test rax, rax
jne 0x140243552
call fcn.14018eef0
test rax, rax
je 0x14024355e
mov rcx, rax
add rsp, 0x28
jmp fcn.14018ed20
nop
add rsp, 0x28
ret

Function at 0x140243570
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140399e50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140243598
cmp byte [rax + 8], 0
jne 0x1402435a2
mov rcx, rax
call fcn.140048300
test rax, rax
jne 0x1402435a2
call fcn.14018eef0
test rax, rax
je 0x1402435ae
mov rcx, rax
add rsp, 0x28
jmp fcn.14018ed30
nop
add rsp, 0x28
ret

Function at 0x140246170
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov rax, qword [0x14039bf08]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov eax, dword [0x1403a3040]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + 8]
test rax, rax
je 0x1402461b5
mov ecx, 0x230
add rcx, qword [rax + 0x720]
jmp 0x1402461c9
mov ecx, dword [0x14039bee8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, rax
test rax, rax
je 0x140246209
movabs rax, 0x7ffffffffffffff8
cmp rsi, rax
jge 0x140246222
add rsi, 7
and rsi, 0xfffffffffffffff8
mov rdi, qword [rcx]
mov rax, qword [rcx + 8]
sub rax, rdi
cmp rax, rsi
jge 0x1402461fc
mov rdx, rsi
call fcn.1401c8d10
mov rdi, rax
jmp 0x14024620b
lea rax, [rdi + rsi]
mov qword [rcx], rax
add qword [rcx + 0x10], rsi
jmp 0x14024620b
xor edi, edi
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140263300
mov rax, rdi
add rsp, 0x38
pop rdi
pop rsi
ret
lea rax, str..._.._runtime_vm_zone.h
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0x107
lea rdx, str.Zone::Alloc:_size_is_too_large:_size_lld
lea rcx, [rsp + 0x20]
mov r8, rsi
call fcn.140023910
int3

Function at 0x140261430
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x140399e50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14026145c
cmp byte [rax + 8], 0
jne 0x140261466
mov rcx, rax
call fcn.140048300
test rax, rax
jne 0x140261466
call fcn.14018eef0
test rax, rax
je 0x140261476
mov rcx, rax
mov rdx, rsi
add rsp, 0x20
pop rsi
jmp fcn.14018eca0
nop
add rsp, 0x20
pop rsi
ret
Function at 0x1402747f0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rcx
neg rcx
test rax, 7
je 0x14027480d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x140274868
test al, 7
jne 0x140274800
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x140274821
mov rdx, qword [rax - 8]
test dl, dl
je 0x140274892
test dh, dh
je 0x14027488c
shr rdx, 0x10
test dl, dl
je 0x140274886
test dh, dh
je 0x140274880
shr rdx, 0x10
test dl, dl
je 0x14027487a
test dh, dh
je 0x140274874
shr edx, 0x10
test dl, dl
je 0x14027486e
test dh, dh
jne 0x140274821
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret
Function at 0x140277e90
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, [0x1403a3bf0]
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 0x140277eee
cmp word [rdx], r12w
jne 0x140277eee
or byte [rax + r8*8 + 0x38], cl
jmp 0x140277ef4
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14027804f
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14027802a
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140277f2d
mov rcx, r9
jmp 0x140277f50
cmp r9, rdx
jae 0x140277f67
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 0x140277f11
jmp 0x14027804f
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 0x140278024
cmp dword [rsp + 0x80], edi
je 0x140278024
mov rdx, r14
lea r11, [0x1403a3bf0]
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 0x140277ffd
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x140277fd0
mov word [rbx], r12w
jmp 0x14027804b
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 0x140277fd9
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14027804b
cmp word [rsp + 0x70], r12w
jne 0x14027800a
cmp rbx, rsi
je 0x140277fca
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.140275b00
cmp word [rsp + 0x70], r12w
je 0x14027804f
mov word [rbx], r13w
jmp 0x14027804b
lea r11, [0x1403a3bf0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140278047
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14027804f
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
Function at 0x14027b990
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 [0x14039bf08]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdx, [0x140383cc0]
mov rbp, rcx
call fcn.14028e97c
xor edi, edi
test rax, rax
je 0x14027ba76
mov ebx, edi
call fcn.140275c78
mov r14d, dword [rax]
call fcn.140275c78
mov r8d, 0x104
lea rcx, [rsp + 0x20]
mov rdx, rbp
mov dword [rax], edi
call fcn.14028e8c8
mov rsi, rax
test rax, rax
je 0x14027ba07
call fcn.140275c78
mov dword [rax], r14d
jmp 0x14027ba31
call fcn.140275c78
cmp dword [rax], 0x22
jne 0x14027ba6e
call fcn.140275c78
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.14028e8c8
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x14027ba6e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x14027ba35
cmp rax, 3
je 0x14027ba50
mov rcx, rsi
call fcn.14027b8ec
test al, al
je 0x14027ba61
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x14027ba61
mov dil, 1
mov rcx, rbx
call fcn.14026b828
mov al, dil
jmp 0x14027ba78
mov rcx, rbx
call fcn.14026b828
xor al, al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140263300
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 0x140281fd8
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140281ff8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140275bec
or eax, 0xffffffff
jmp 0x140281ffa
xor eax, eax
add rsp, 0x28
ret

Function at 0x140288a60
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140288850
Function at 0x14028cc6c
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.140275b00
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140275b00
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14028cdbc
cmp rax, 0xffffffffffffffff
je 0x14028cdbc
xor edi, edi
test rbp, rbp
jle 0x14028cd67
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14028c04c
mov rbx, rax
test rax, rax
jne 0x14028ccf4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14028cd5d
mov edx, 0x8000
mov ecx, r14d
call fcn.140281c54
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.1402798fc
cmp eax, 0xffffffff
je 0x14028cd3d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14028cd04
mov edx, r15d
mov ecx, r14d
call fcn.140281c54
jmp 0x14028cd5d
cmp byte [rsi + 0x38], dil
je 0x14028cd54
cmp dword [rsi + 0x34], 5
jne 0x14028cd54
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x14028cd5d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140289d88
jmp 0x14028cdd0
jns 0x14028cdd0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140275b00
cmp rax, 0xffffffffffffffff
jne 0x14028cd88
cmp byte [rsi + 0x30], dil
je 0x14028cdd0
mov edi, dword [rsi + 0x2c]
jmp 0x14028cdd0
mov ecx, r14d
call fcn.140281a68
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14028cdd0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x14028cdd0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14028cdc9
mov eax, dword [rsi + 0x2c]
jmp 0x14028cdce
mov eax, reloc.WS2_32.dll_shutdown
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140275b00
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