joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011b90
Capabilities:
Allocate or change rwx memory

Disassembly:
cmp qword [rcx + 0x50], 0
lea r10, [rcx + 0x50]
mov rdx, rcx
jne 0x140011c04
mov eax, dword [rcx + 0x38]
xor r8d, r8d
cmp eax, 0xffffffff
je 0x140011bb6
test eax, eax
js 0x140011bb6
lea ecx, [r8 + 1]
cmp eax, 0xb
jle 0x140011bb9
mov ecx, r8d
sub ecx, 1
je 0x140011be5
sub ecx, 1
je 0x140011bdd
sub ecx, 1
je 0x140011bd5
cmp ecx, 1
jne 0x140011beb
mov r8d, 0x40000
jmp 0x140011beb
mov r8d, 0x400000
jmp 0x140011beb
mov r8d, 0x100000
jmp 0x140011beb
mov r8d, 0x200000
mov rdx, qword [rdx + 0x118]
mov r9d, 5
mov rcx, r10
mov rdx, qword [rdx + 0x10]
jmp 0x1400f2f00
ret

Function at 0x1400150a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov r14, r8
mov rbp, rdx
mov rdi, rcx
je 0x14001513a
mov rbx, r8
test r8, r8
jle 0x140015132
mov rcx, rdi
call fcn.140016290
test rax, rax
jle 0x140015110
mov rcx, qword [rdi + 0x40]
cmp rbx, rax
mov rsi, rbx
mov rdx, rbp
cmovge rsi, rax
mov r8, rsi
mov rcx, qword [rcx]
call fcn.1400aab40
mov rax, qword [rdi + 0x58]
sub rbx, rsi
sub dword [rax], esi
mov rcx, qword [rdi + 0x40]
movsxd rax, esi
add qword [rcx], rax
jmp 0x14001512a
mov rax, qword [rdi]
mov rcx, rdi
movzx edx, byte [rbp]
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140015132
dec rbx
mov esi, 1
add rbp, rsi
test rbx, rbx
jg 0x1400150d2
sub r14, rbx
mov rax, r14
jmp 0x1400151b1
mov rax, qword [rcx + 0x40]
mov rsi, r14
mov r9, qword [rax]
test r9, r9
je 0x140015151
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140015153
xor ecx, ecx
movsxd rbx, ecx
test r14, r14
jle 0x1400151ab
test ecx, ecx
jle 0x140015187
cmp r14, rbx
mov rcx, r9
cmovl rbx, r14
mov r8, rbx
call fcn.1400aab40
mov rax, qword [rdi + 0x58]
add rbp, rbx
sub r14, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x40]
movsxd rax, ebx
add qword [rcx], rax
test r14, r14
jle 0x1400151ab
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400151ab
mov r8, r14
mov edx, 1
mov rcx, rbp
call fcn.1400b443c
sub r14, rax
sub rsi, r14
mov rax, rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1400151d0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140015201
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rdi
je 0x14001527b
mov rdi, r14
mov rcx, rbx
call fcn.1400162b0
test rax, rax
jle 0x140015253
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.1400aab40
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14001526b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140015273
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140015215
sub r14, rdi
jmp 0x140015368
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140015292
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140015294
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400152c9
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.1400aab40
mov rax, qword [rbx + 0x50]
sub rbp, rdi
add rsi, rdi
mov r8, rbp
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x140015365
mov r9, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r9], rax
jne 0x140015304
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x140015340
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.1400b4824
sub rbp, rax
add rsi, rax
mov rdi, rbp
cmp rax, 0xfff
jne 0x140015386
cmp rbp, rax
ja 0x140015310
mov r8, rdi
test rdi, rdi
je 0x140015365
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.1400b4824
mov r8, rdi
sub r8, rax
sub r14, r8
mov rbp, qword [rsp + 0x30]
mov rax, r14
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
sub r14, rbp
jmp 0x140015368
Function at 0x140064e30
Capabilities:
Log keystrokes
Manipulate console buffer

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x14014b1f8]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbx, rcx
mov ecx, dword [rcx + 0x58]
btr ecx, 0xc
mov eax, ecx
sub dword [rbx + 0x7c], 1
mov dword [rbx + 0x58], ecx
jne 0x140064e7b
test cl, 1
jne 0x140064e7b
test cl, 4
je 0x140064e7b
and eax, 0xfffffffb
mov dword [rbx + 0x58], eax
test al, 8
je 0x140064e7b
mov rax, qword [rbx + 8]
dec dword [rax + 8]
mov eax, dword [rbx + 0x58]
mov qword [rsp + 0xb0], rsi
mov qword [rsp + 0x88], rdi
bt eax, 0x10
jae 0x140065024
bt eax, 0x19
jae 0x140064ee1
mov rcx, qword [rbx + 0x110]
lea r9, [rsp + 0x40]
xor eax, eax
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x70], eax
xorps xmm0, xmm0
mov eax, select
movups xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x60], ax
lea r8d, [rax - 0xf]
call qword [sym.imp.KERNEL32.DLL_WriteConsoleInputW]
test eax, eax
jne 0x140065024
call qword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x140065026
bt eax, 0x15
jb 0x140065024
mov rcx, qword [0x140151988]
mov edx, 0xffffffff
xor edi, edi
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x14006504c
mov eax, 2
xchg dword [0x140151968], eax
cmp eax, 1
je 0x140064f37
mov rcx, qword [0x140151988]
lea edx, [rdi + 1]
xor r8d, r8d
call qword [sym.imp.KERNEL32.DLL_ReleaseSemaphore]
test eax, eax
je 0x14006504c
jmp 0x14006501d
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0xa8], rbp
lea rcx, str.conout_
mov dword [rsp + 0x28], 0x80
mov edx, 0xc0000000
mov qword [rsp + 0x80], r14
lea r8d, [r9 + 3]
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.DLL_CreateFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140064f9a
lea rdx, [0x140151970]
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetConsoleScreenBufferInfo]
test eax, eax
je 0x140064f9a
lock or dword [0x14015196c], 1
mov esi, 1
mov dword [rsp + 0x50], 0xd0001
mov r14d, select
mov word [rsp + 0x48], si
mov ecx, r14d
mov dword [rsp + 0x4c], esi
xor edx, edx
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov rcx, qword [rbx + 0x110]
lea r9, [rsp + 0x44]
mov r8d, esi
mov word [rsp + 0x54], ax
lea rdx, [rsp + 0x48]
mov word [rsp + 0x56], r14w
mov dword [rsp + 0x58], edi
call qword [sym.imp.KERNEL32.DLL_WriteConsoleInputW]
mov r14, qword [rsp + 0x80]
test eax, eax
jne 0x140064ffe
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
cmp rbp, 0xffffffffffffffff
je 0x14006500d
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rbp, qword [rsp + 0xa8]
test edi, edi
je 0x14006501d
mov eax, edi
jmp 0x140065026
or dword [rbx + 0x58], 0x200000
xor eax, eax
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14008c170
add rsp, 0x90
pop rbx
ret
call fcn.1400b541c
int3
Function at 0x140065060
Capabilities:
Manipulate console buffer

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x14014b1f8]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r14, qword [rsp + 0xb8]
mov esi, r9d
movzx ebp, r8b
mov edi, edx
mov rbx, rcx
cmp dword [r14], 0
je 0x14006509e
mov eax, 0xffffffff
jmp 0x1400651c7
mov qword [rsp + 0x58], r12
xor r12d, r12d
mov qword [rsp + 0x50], r15
movzx r15d, byte [rsp + 0xb0]
mov rcx, qword [rbx + 0x110]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.DLL_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x1400650d3
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [r14], eax
movsx eax, word [rsp + 0x34]
mov edx, edi
movsx r8d, word [rsp + 0x38]
movsx r11d, word [rsp + 0x28]
sub r8d, eax
mov eax, dword [0x14014c074]
inc r8d
movsx r9d, word [rsp + 0x2e]
mov dword [0x14014c088], r11d
mov dword [0x14014c078], r8d
cmp eax, 0xffffffff
jne 0x140065110
mov eax, r9d
jmp 0x14006511d
mov ecx, r9d
sub ecx, r8d
inc ecx
cmp eax, ecx
cmovl eax, ecx
movsx r10d, word [rsp + 0x2a]
lea ecx, [r8 + rax]
cmp ecx, r10d
jle 0x140065132
mov eax, r10d
sub eax, r8d
test eax, eax
lea ecx, [r9 + rsi]
cmovs eax, r12d
mov dword [0x14014c074], eax
test r15b, r15b
jne 0x14006514a
lea ecx, [rax + rsi]
cmp ecx, eax
jge 0x140065152
mov ecx, eax
jmp 0x14006515f
lea r9d, [r8 + rax]
cmp ecx, r9d
jl 0x14006515f
lea ecx, [r9 - 1]
test bpl, bpl
je 0x14006516b
movsx edx, word [rsp + 0x2c]
add edx, edi
test edx, edx
jns 0x140065174
mov edx, r12d
jmp 0x14006517d
cmp edx, r11d
jl 0x14006517d
lea edx, [r11 - 1]
mov word [rsp + 0x22], cx
mov rcx, qword [rbx + 0x110]
mov word [rsp + 0x20], dx
mov edx, dword [rsp + 0x20]
call qword [sym.imp.KERNEL32.DLL_SetConsoleCursorPosition]
test eax, eax
jne 0x1400651bb
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x57
je 0x1400650b4
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [r14], eax
mov eax, 0xffffffff
jmp 0x1400651bd
xor eax, eax
mov r12, qword [rsp + 0x58]
mov r15, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14008c170
add rsp, 0x60
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140069120
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp qword [rdx + 0x110], 0xffffffffffffffff
mov esi, r9d
mov rdi, r8
mov dword [rsp + 0x50], 1
mov rbx, rdx
mov rbp, rcx
je 0x14006915c
mov eax, 0xfffff00e
jmp 0x140069228
lea r8, [rsp + 0x50]
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x14006917f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x140069228
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.DLL_SetHandleInformation]
test eax, eax
jne 0x14006919e
call qword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x140069228
mov rdx, qword [rbp + 0x38]
xor r9d, r9d
mov r8, rdi
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_CreateIoCompletionPort]
test rax, rax
je 0x140069193
mov ecx, dword [0x1403daee0]
cmp esi, 0x17
mov eax, dword [rbx + 0x58]
cmove ecx, dword [0x1403daedc]
bt eax, 0x13
jb 0x1400691ec
test ecx, ecx
jne 0x1400691ec
mov dl, 3
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_SetFileCompletionNotificationModes]
test eax, eax
je 0x140069193
or dword [rbx + 0x58], 0x20000
mov eax, dword [rbx + 0x58]
bt eax, 0x18
jae 0x1400691fe
mov rdx, rdi
call fcn.140069050
test eax, eax
jne 0x140069228
test dword [rbx + 0x58], 0x2000000
je 0x140069213
mov rdx, rdi
call fcn.1400690a0
test eax, eax
jne 0x140069228
mov qword [rbx + 0x110], rdi
cmp esi, 0x17
jne 0x140069226
or dword [rbx + 0x58], 0x400000
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400694b0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov dword [rsp + 0x20], r9d
push rsi
push rdi
push r14
sub rsp, 0x30
cmp qword [rcx + 0x110], 0xffffffffffffffff
mov r14d, r8d
mov rdi, rdx
mov rbx, rcx
jne 0x140069524
movzx ecx, word [rdx]
xor r8d, r8d
lea edx, [r8 + 1]
call qword [sym.imp.WS2_32.dll_socket]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400694fe
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x140069589
movzx r9d, word [rdi]
mov r8, rsi
mov rcx, qword [rbx + 8]
mov rdx, rbx
call fcn.140069120
mov ebp, eax
test eax, eax
je 0x140069524
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, ebp
jmp 0x140069589
cmp word [rdi], 0x17
jne 0x140069555
mov rcx, qword [rbx + 0x110]
lea r9, [rsp + 0x68]
mov edx, 0x29
mov dword [rsp + 0x68], 0
mov dword [rsp + 0x20], 4
lea r8d, [rdx - 0xe]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rbx + 0x110]
mov r8d, r14d
mov rdx, rdi
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x140069580
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2740
jne 0x140069589
mov dword [rbx + 0x118], eax
or dword [rbx + 0x58], 0x2000
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x140069890
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
xorps xmm0, xmm0
lea rbx, [rdx + 0x80]
movups xmmword [rbx + 0x40], xmm0
lea r14, [rbx + 0x40]
xor ebp, ebp
movups xmmword [r14 + 0x10], xmm0
or dword [rdx + 0x58], 0x40000
lea rax, [0x140151987]
movups xmmword [r14], xmm0
mov rdi, rdx
mov rsi, rcx
movups xmmword [r14 + 0x10], xmm0
test dword [rdx + 0x58], 0x80000
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], ebp
je 0x1400698f6
mov rax, qword [rbx + 0x70]
or rax, 1
mov qword [rbx + 0x58], rax
mov rcx, qword [rdi + 0x110]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rbp
lea r9, [rsp + 0x78]
mov qword [rsp + 0x28], r14
lea rdx, [rsp + 0x40]
mov r8d, 1
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x70], ebp
call qword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
jne 0x140069981
mov eax, dword [rdi + 0x58]
bt eax, 0x11
jae 0x1400699e9
bts eax, 0x10
mov dword [rdi + 0x58], eax
mov eax, dword [rsp + 0x78]
mov qword [rbx + 0x48], rax
inc dword [rdi + 0x78]
mov qword [rbx + 0x68], rbp
mov rax, qword [rsi + 0x48]
test rax, rax
je 0x140069974
mov rax, qword [rax + 0x68]
mov qword [rbx + 0x68], rax
mov rax, qword [rsi + 0x48]
mov qword [rax + 0x68], rbx
mov qword [rsi + 0x48], rbx
jmp 0x140069a5f
mov qword [rbx + 0x68], rbx
mov qword [rsi + 0x48], rbx
jmp 0x140069a5f
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x3e5
je 0x1400699e9
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jg 0x1400699a0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x1400699ae
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [r14], rax
mov qword [rbx + 0x68], rbp
mov rax, qword [rsi + 0x48]
test rax, rax
je 0x1400699dc
mov rax, qword [rax + 0x68]
mov qword [rbx + 0x68], rax
mov rax, qword [rsi + 0x48]
mov qword [rax + 0x68], rbx
mov qword [rsi + 0x48], rbx
inc dword [rdi + 0x78]
jmp 0x140069a5f
mov qword [rbx + 0x68], rbx
mov qword [rsi + 0x48], rbx
inc dword [rdi + 0x78]
jmp 0x140069a5f
or dword [rdi + 0x58], 0x10000
inc dword [rdi + 0x78]
test dword [rdi + 0x58], 0x80000
je 0x140069a5f
cmp qword [rbx + 0x78], 0xffffffffffffffff
lea rcx, [rbx + 0x78]
jne 0x140069a5f
mov rdx, qword [rbx + 0x70]
lea r8, [0x1400695a0]
mov dword [rsp + 0x28], 4
mov r9, rbx
mov dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.DLL_RegisterWaitForSingleObject]
test eax, eax
jne 0x140069a5f
call qword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jg 0x140069a41
call qword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x140069a4f
call qword [sym.imp.KERNEL32.DLL_GetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov rdx, rbx
mov rcx, rsi
mov qword [r14], rax
call fcn.140069020
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14006b760
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x88
cmp byte [0x140151bc8], 0
jne 0x14006b99f
xor r9d, r9d
mov qword [rsp + 0xa0], rbx
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.DLL_CreateEventA]
mov rbx, rax
test rax, rax
je 0x14006b9a7
mov qword [rsp + 0x80], rdi
xor eax, eax
lock cmpxchg qword [0x140151bd0], rbx
mov rdi, rax
jne 0x14006b978
mov ecx, 0x8003
call qword [sym.imp.KERNEL32.DLL_SetErrorMode]
lea rcx, [fcn.140001350]
call fcn.1400ad980
lea rcx, [0x140151be0]
call qword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
call fcn.14006ebf0
call fcn.140070660
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov eax, dword [rsp + 0x78]
lea rcx, [0x1403dae00]
mov dword [0x140151da8], eax
call qword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
xor edi, edi
lea r8, [0x1403d9e08]
mov r9d, edi
lea rdx, [0x140151e00]
mov r10d, edi
nop dword [rax]
movsxd rax, r10d
inc r9d
mov qword [r8 - 8], rdi
lea r8, [r8 + 0x10]
imul rcx, rax, 0x288
add r10d, 0x10
add rcx, rdx
mov qword [r8 - 0x10], rcx
cmp r9d, 0x100
jb 0x14006b820
lea rcx, [0x140151b98]
call qword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov edx, 1
lea rcx, [0x140068640]
call qword [sym.imp.KERNEL32.DLL_SetConsoleCtrlHandler]
test eax, eax
je 0x14006b9bc
xor r9d, r9d
xor ecx, ecx
mov r8d, 0x7fffffff
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.DLL_CreateSemaphoreA]
mov qword [0x140151988], rax
test rax, rax
jne 0x14006b8a6
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
call fcn.14006ef30
test eax, eax
jne 0x14006b9bc
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
lea rcx, str.CONOUT_
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.DLL_CreateFileW]
mov qword [0x14014c090], rax
cmp rax, 0xffffffffffffffff
je 0x14006b8f0
xor edx, edx
lea rcx, [0x140067350]
lea r8d, [rdx + 0x10]
call qword [sym.imp.KERNEL32.DLL_QueueUserWorkItem]
lea rcx, [0x140151998]
call qword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.DLL_QueryPerformanceFrequency]
test eax, eax
je 0x14006b92a
movsd xmm1, qword [0x140134468]
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rsp + 0x90]
divsd xmm1, xmm0
jmp 0x14006b92d
xorps xmm1, xmm1
mov rax, qword [0x1403daf00]
movsd qword [0x140151b90], xmm1
test rax, rax
je 0x14006b966
lea rdx, [0x140070df0]
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdx
lea r8, [rsp + 0x98]
lea rdx, [rsp + 0x40]
mov ecx, 2
call rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_SetEvent]
mov byte [0x140151bc8], 1
jmp 0x14006b98f
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov rdi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0xa0]
add rsp, 0x88
ret
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
lea rdx, str.CreateEvent
call fcn.14006ee80
int3
call fcn.1400b541c
int3
Function at 0x14006d850
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
test dword [rdx + 0x58], 0x1000000
lea rdi, [rdx + 0x80]
mov rbx, rdx
mov rsi, rcx
je 0x14006d89b
mov qword [rdx + 0x238], 0
lea rcx, [0x14006d610]
mov rdx, rdi
mov r8d, select
call qword [sym.imp.KERNEL32.DLL_QueueUserWorkItem]
jmp 0x14006d94e
lea rcx, [rdi + 0x40]
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
movups xmmword [rcx + 0x10], xmm0
test dword [rdx + 0x58], 0x80000
je 0x14006d8be
mov rax, qword [rdi + 0x70]
or rax, 1
mov qword [rdi + 0x58], rax
mov qword [rsp + 0x20], rcx
lea rdx, [0x140151c25]
mov rcx, qword [rbx + 0x118]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x14006d8ee
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x3e5
jne 0x14006d952
test dword [rbx + 0x58], 0x80000
je 0x14006d9a9
cmp qword [rdi + 0x70], 0
jne 0x14006d91f
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_CreateEventA]
mov qword [rdi + 0x70], rax
test rax, rax
je 0x14006d9e2
cmp qword [rdi + 0x78], 0xffffffffffffffff
lea rcx, [rdi + 0x78]
jne 0x14006d9a9
mov rdx, qword [rdi + 0x58]
lea r8, [0x1400695a0]
mov dword [rsp + 0x28], 4
mov r9, rdi
mov dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.DLL_RegisterWaitForSingleObject]
test eax, eax
jne 0x14006d9a9
call qword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jg 0x14006d964
call qword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x14006d972
call qword [sym.imp.KERNEL32.DLL_GetLastError]
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rdi + 0x40], rax
mov qword [rdi + 0x68], 0
mov rax, qword [rsi + 0x48]
test rax, rax
je 0x14006d99f
mov rax, qword [rax + 0x68]
mov qword [rdi + 0x68], rax
mov rax, qword [rsi + 0x48]
mov qword [rax + 0x68], rdi
mov qword [rsi + 0x48], rdi
jmp 0x14006d9c8
mov qword [rdi + 0x68], rdi
mov qword [rsi + 0x48], rdi
jmp 0x14006d9c8
mov rcx, qword [rbx + 0x128]
test rcx, rcx
je 0x14006d9c8
xor r9d, r9d
lea rdx, [0x14006e3c0]
lea r8d, [r9 + 0x32]
call fcn.14006a790
or dword [rbx + 0x58], 0x10000
inc dword [rbx + 0x78]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
lea rdx, str.CreateEvent
call fcn.14006ee80
int3
Function at 0x1400701e0
Capabilities:
Create thread
Resume thread

Disassembly:
push rbx
push rsi
sub rsp, 0x38
lea rcx, str.UV_THREADPOOL_SIZE
mov dword [0x140151d08], 4
call fcn.1400b2ad0
test rax, rax
je 0x14007020c
mov rcx, rax
call fcn.1400b5aa4
jmp 0x140070212
mov eax, dword [0x140151d08]
test eax, eax
jne 0x14007021d
mov eax, 1
jmp 0x140070227
mov ecx, 0x400
cmp eax, ecx
cmova eax, ecx
xor esi, esi
mov dword [0x140151d08], eax
lea rbx, [0x140151d78]
mov qword [0x140151da0], rbx
cmp eax, 4
jbe 0x140070275
mov ecx, eax
shl rcx, 3
test rcx, rcx
je 0x140070255
call qword [fcn.1400ad9b4]
jmp 0x140070258
mov rax, rsi
mov qword [0x140151da0], rax
test rax, rax
jne 0x140070275
mov dword [0x140151d08], 4
mov qword [0x140151da0], rbx
mov qword [rsp + 0x58], rbp
lea rcx, [0x140151d10]
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x30], r15
call qword [sym.imp.KERNEL32.DLL_InitializeConditionVariable]
lea rcx, [0x140151d50]
call qword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
lea rax, [0x140151df0]
xor r9d, r9d
mov qword [0x140151df0], rax
xor edx, edx
mov qword [0x140151df8], rax
xor ecx, ecx
lea rax, [0x140151de0]
mov r8d, 0x7fffffff
mov qword [0x140151de0], rax
mov qword [0x140151de8], rax
lea rax, [0x140151db0]
mov qword [0x140151db0], rax
mov qword [0x140151db8], rax
call qword [sym.imp.KERNEL32.DLL_CreateSemaphoreA]
mov qword [rsp + 0x50], rax
test rax, rax
jne 0x140070314
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
call fcn.14006ef30
test eax, eax
jne 0x140070418
mov eax, dword [0x140151d08]
mov ebp, esi
test eax, eax
je 0x1400703ee
lea r15, [0x14006ff50]
nop dword [rax + rax]
mov rax, qword [0x140151da0]
mov ecx, ebp
lea rbx, [rax + rcx*8]
mov ecx, 0x18
call qword [fcn.1400ad9b4]
mov r14, rax
test rax, rax
je 0x140070418
mov qword [rax], r15
lea r8, [0x14006bfa0]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rsi
mov r9, r14
mov qword [r14 + 8], rax
xor edx, edx
mov dword [rsp + 0x20], 4
xor ecx, ecx
call fcn.1400b2f2c
test rax, rax
jne 0x1400703a9
call fcn.1400b5a58
mov edi, dword [rax]
call fcn.1400b5a58
mov rcx, r14
mov ebx, dword [rax]
call qword [fcn.1400ad6c0]
call fcn.1400b5a58
mov dword [rax], ebx
test edi, edi
jne 0x140070418
jmp 0x1400703b9
mov qword [rbx], rax
mov rcx, rax
mov qword [r14 + 0x10], rax
call qword [sym.imp.KERNEL32.DLL_ResumeThread]
mov eax, dword [0x140151d08]
inc ebp
cmp ebp, eax
jb 0x140070330
test eax, eax
je 0x1400703ee
nop dword [rax]
mov rcx, qword [rsp + 0x50]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x140070418
inc esi
cmp esi, dword [0x140151d08]
jb 0x1400703d0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
test eax, eax
je 0x140070418
mov r15, qword [rsp + 0x30]
mov r14, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
add rsp, 0x38
pop rsi
pop rbx
ret
call fcn.1400b541c
int3