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

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
mov rdi, rcx
movsxd r14, edx
mov ecx, dword [0x140129e30]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, qword [rdi]
mov rsi, rax
mov r8d, dword [rax + 0x10]
sub r8d, r14d
movsxd rbp, r8d
test rcx, rcx
jne 0x140054c16
mov rcx, qword [0x140133e00]
lea r8, [rbp + 0x12]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
jmp 0x140054c35
call fcn.140057370
add qword [rdi], 0xfffffffffffffffc
lea r9, [rbp + 0x12]
mov r8, qword [rdi]
xor edx, edx
mov rcx, qword [0x140133e00]
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
lea r9, [rax + 4]
mov r8, rbp
mov qword [rdi], r9
mov rcx, r9
mov rdx, qword [rsi]
add rdx, r14
shr r8, 1
call fcn.140055110
mov rcx, qword [rdi]
lea rdx, [rbp + 2]
call fcn.140057040
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
mov qword [rsi + 0x10], r14
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret

Function at 0x140054c80
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140129e30]
cmp ecx, 0xffffffff
jne 0x140054c96
call fcn.140054b10
jmp 0x140054ca6
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x140054cc5
call fcn.140055190
mov ecx, dword [0x140129e30]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
lea rcx, [0x140054cd0]
add rsp, 0x28
jmp fcn.140005204
add rsp, 0x28
ret

Function at 0x140054f70
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140129e30]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add qword [rax + 0x10], 2
add rsp, 0x28
ret

Function at 0x140054f90
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
movsxd rbx, ecx
mov ecx, dword [0x140129e30]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rax + 0x10], rbx
mov rax, qword [rax]
add rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x140054fc0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
movsxd rbp, ecx
mov esi, edx
mov ecx, dword [0x140129e30]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
cmp esi, 0xffffffff
jne 0x140054ff0
mov esi, dword [rax + 0x10]
mov eax, dword [rax + 0x10]
mov r8, qword [rbx + 8]
lea edx, [rax + rbp*2]
movsxd rax, edx
lea rcx, [r8 - 4]
cmp rax, rcx
jl 0x140055011
lea eax, [rdx + 0x4000]
movsxd r9, eax
jmp 0x140055023
mov eax, 0x100000
cmp r8, rax
jle 0x140055040
cmp edx, eax
cmovl edx, eax
mov r9d, edx
mov r8, qword [rbx]
xor edx, edx
mov qword [rbx + 8], r9
add r9, 0xa
mov rcx, qword [0x140133e00]
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov qword [rbx], rax
mov rax, qword [rbx]
movsxd rdx, esi
mov rsi, qword [rsp + 0x40]
add rax, rdx
lea rcx, [rdx + rbp*2]
mov rbp, qword [rsp + 0x38]
mov qword [rbx + 0x10], rcx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140055070
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
mov ecx, dword [0x140129e30]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
lea ecx, [rbx + rbx]
movsxd rdx, ecx
sub qword [rax + 0x10], rdx
add rsp, 0x20
pop rbx
ret

Function at 0x1400550a0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [0x140129e30]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, qword [rax]
cmp rbx, rcx
jb 0x1400550d4
mov rdx, qword [rax + 0x10]
add rdx, rcx
cmp rbx, rdx
ja 0x1400550d4
sub ebx, ecx
lea eax, [rbx + 1]
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x1400550e0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
movsxd rbx, ecx
mov ecx, dword [0x140129e30]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
dec rbx
mov rax, qword [rax]
add rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x140055190
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [0x140133e00]
xor edx, edx
lea r8d, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [0x140133e00]
xor edx, edx
mov rbx, rax
lea r8d, [rdx + 0x10]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx + 8], reloc.WS2_32.dll_recv
mov rdx, rbx
mov qword [rbx], rax
mov qword [rbx + 0x10], 0
mov ecx, dword [0x140129e30]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x14005b3b0
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push r12
sub rsp, 0x48
xor ebx, ebx
mov r12d, edx
mov qword [rsp + 0x30], rbx
mov ebp, 1
mov dword [rsp + 0x28], ebx
xor r9d, r9d
mov r8d, ebp
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14005b58e
xor edx, edx
mov qword [rsp + 0x70], rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp eax, 0xffffffff
je 0x14005b43c
test eax, eax
jle 0x14005b43c
mov rdx, qword [0x1401346a0]
lea r9, [rsp + 0x80]
mov r8d, eax
mov qword [rsp + 0x20], rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14005b43c
cmp dword [rsp + 0x80], edi
cmove ebx, ebp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x14005b589
mov rax, qword [0x1401346a0]
mov rdx, rax
cmp dword [rax], 0x50555245
jne 0x14005b589
mov qword [rsp + 0x40], r15
mov r15d, dword [rax + 8]
add rax, 0xc
add r15d, 0xadbaaccf
cmp r15d, 8
ja 0x14005b584
lea ecx, [rdi - 8]
mov qword [rsp + 0x88], r14
movsxd r14, ecx
lea rcx, [r14 + rdx]
cmp rax, rcx
jae 0x14005b57c
mov qword [rsp + 0x78], r13
lea r13, [0x140000000]
nop dword [rax + rax]
cmp dword [rax], 0x434e5354
lea rsi, [rax + 8]
movsxd rdi, dword [rax + 4]
jne 0x14005b560
test edi, edi
jle 0x14005b560
mov rcx, qword [0x14012ca90]
lea r8, [rdi + 0x28]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x14005b560
lea rcx, [rax + 0x28]
mov dword [rax + 0x10], edi
mov r8, rdi
mov qword [rax + 8], rcx
mov rdx, rsi
mov dword [rax + 0x14], r12d
call fcn.140025b30
movsxd rcx, r15d
mov edx, dword [r13 + rcx*4 + 0x5b598]
add rdx, r13
jmp rdx
lea rax, [0x14005b5c0]
mov qword [rbx + 0x18], rax
lea rax, [0x14005e520]
jmp 0x14005b54b
lea rax, [0x14005b5d0]
mov qword [rbx + 0x18], rax
lea rax, [0x14005e530]
jmp 0x14005b54b
lea rax, [0x14005b6c0]
mov qword [rbx + 0x18], rax
lea rax, [0x14005e560]
mov qword [rbx + 0x20], rax
mov rax, qword [0x14012e960]
mov qword [rbx], rax
mov qword [0x14012e960], rbx
mov rdx, qword [0x1401346a0]
lea rax, [rsi + rdi]
add rdx, r14
cmp rax, rdx
jb 0x14005b4b0
mov r13, qword [rsp + 0x78]
mov r14, qword [rsp + 0x88]
mov r15, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x70]
add rsp, 0x48
pop r12
pop rsi
pop rbp
pop rbx
ret
Function at 0x140063640
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x40
call fcn.140063450
call fcn.140068f10
xor ecx, ecx
call fcn.140063900
test eax, eax
jne 0x140063650
mov rbx, qword [0x14012e0f8]
test rbx, rbx
je 0x140063730
cmp dword [0x14012e0f4], eax
je 0x140063730
cmp dword [0x14012e970], 0
mov eax, dword [0x14012e0f0]
mov dword [rsp + 0x20], 0x23
lea eax, [rax*4]
mov dword [rsp + 0x24], eax
je 0x1400636fb
mov rcx, qword [0x1401346a0]
mov rdx, rbx
movsxd r8, eax
call fcn.140025b30
xor r9d, r9d
cmp dword [0x14012e0f0], r9d
jle 0x1400636f4
xor r8d, r8d
nop word [rax + rax]
mov rdx, qword [0x1401346a0]
inc r9d
add rdx, r8
add r8, 4
movzx ecx, byte [rdx]
movzx eax, byte [rdx + 3]
mov byte [rdx], al
movzx eax, byte [rdx + 2]
mov byte [rdx + 3], cl
movzx ecx, byte [rdx + 1]
mov byte [rdx + 1], al
mov byte [rdx + 2], cl
cmp r9d, dword [0x14012e0f0]
jl 0x1400636c0
mov rbx, qword [0x1401346a0]
call fcn.1400762e0
lea rcx, [0x1401441e0]
mov dword [rsp + 0x30], eax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x14012e998]
lea rcx, [rsp + 0x20]
mov rdx, rbx
call qword [rax + 0x18]
lea rcx, [0x1401441e0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [rsp + 0x20], 1
call fcn.1400762e0
lea rcx, [0x1401441e0]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x24], 0
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x14012e998]
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [rax + 0x18]
lea rcx, [0x1401441e0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [0x14012e998]
call qword [rax + 0x28]
lea rcx, [0x140133e80]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x1401441e0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x140134720]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [0x14012e988]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [0x14012e988]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x14012e990]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [0x14012e990]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [0x140133e80]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x1401441e0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x140134720]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x140133e80]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [0x1401441e0]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [0x140134720]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
add rsp, 0x40
pop rbx
ret
Function at 0x140068e90
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0x20
mov rcx, qword [0x140133e20]
call fcn.140053950
cmp dword [reloc.WS2_32.dll_accept], 0
mov rdi, qword [rax]
je 0x140068f07
cmp qword [0x140133e40], rdi
jne 0x140068f07
cmp dword [0x14012eda8], 0
je 0x140068f07
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x14012edd8]
mov qword [rsp + 0x38], rsi
xor esi, esi
test rbx, rbx
je 0x140068ef7
cmp rbx, rdi
je 0x140068eec
cmp dword [rbx + 0x38], esi
jne 0x140068eec
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov dword [rbx + 0x38], esi
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140068ed8
mov rbx, qword [rsp + 0x30]
mov dword [0x14012eda8], esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140068f10
Capabilities:
Check for time delay via gettickcount
Suspend thread

Disassembly:
push rsi
sub rsp, 0x20
mov rcx, qword [0x140133e20]
call fcn.140053950
cmp dword [reloc.WS2_32.dll_accept], 0
mov rsi, qword [rax]
je 0x140069050
cmp dword [0x14012eda8], 0
jne 0x140069050
mov qword [rsp + 0x30], rbx
lea rcx, [0x14012edb0]
mov qword [rsp + 0x38], rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x14012e0d8], 0
je 0x140068f86
lea rcx, [0x140134720]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x1401441e0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x140133e80]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x14014a980]
xor r9d, r9d
xor r8d, r8d
mov qword [0x140133e40], rsi
xor edx, edx
mov dword [0x14012eda8], 1
call qword [sym.imp.USER32.dll_PostThreadMessageA]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rbx, qword [0x14012edd8]
lea edi, [rax + 0xc8]
test rbx, rbx
je 0x140069003
cmp rbx, rsi
je 0x140068ffb
cmp dword [rbx + 0x38], 0
jne 0x140068ffb
nop
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jae 0x140068feb
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [rbx + 0x38], 0
je 0x140068fd0
cmp dword [rbx + 0x38], 0
jne 0x140068ffb
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140068fc3
cmp dword [0x14012e0d8], 0
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
je 0x14006903d
lea rcx, [0x140133e80]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x1401441e0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x140134720]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x14012edb0]
add rsp, 0x20
pop rsi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add rsp, 0x20
pop rsi
ret
Function at 0x140069930
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x110
mov rsi, rdx
mov rbp, r8
lea rdx, [rsp + 0x40]
mov rdi, rcx
xor ebx, ebx
call fcn.14006a1f0
test eax, eax
je 0x140069a29
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.14009cda0
test eax, eax
jne 0x140069a29
lea rdx, [rsp + 0xa4]
mov rcx, rbp
call fcn.14009cda0
test eax, eax
jne 0x140069a29
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 1]
mov dword [rsp + 0x28], ebx
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140069a29
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140069a20
test eax, eax
jle 0x140069a20
lea ecx, [rdi + 1]
movsxd rcx, ecx
call fcn.14007b3e0
mov rsi, rax
test rax, rax
je 0x140069a20
lea r9, [rsp + 0x138]
mov qword [rsp + 0x20], rbx
mov r8d, edi
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140069a20
cmp dword [rsp + 0x138], edi
jne 0x140069a20
mov rcx, rsi
mov byte [rdi + rsi], bl
call fcn.140069f20
mov ebx, eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0x110]
mov eax, ebx
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14006a520
Capabilities:
Enumerate files on windows
Enumerate files recursively

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, 0x270
xor edi, edi
lea r9, [rsp + 0x20]
sub r9, rcx
mov rbp, r8
mov r14, rdx
nop dword [rax]
movzx eax, byte [rcx]
mov byte [r9 + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x14006a550
lea rcx, [rsp + 0x20]
dec rcx
nop word [rax + rax]
cmp byte [rcx + 1], dil
lea rcx, [rcx + 1]
jne 0x14006a570
movzx eax, word [0x1400e2be4]
mov word [rcx], ax
lea rcx, [rsp + 0x20]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], dil
jne 0x14006a590
lea rbx, [rsp + 0x20]
add rbx, rax
lea rdx, [rsp + 0x130]
mov eax, 0x2a
lea rcx, [rsp + 0x20]
mov word [rbx], ax
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14006a683
lea rax, [rsp + 0x15c]
sub rbx, rax
nop dword [rax]
nop dword [rax + rax]
lea rax, [rsp + 0x15c]
nop dword [rax + rax]
movzx ecx, byte [rax]
mov byte [rbx + rax], cl
lea rax, [rax + 1]
test cl, cl
jne 0x14006a5f0
test byte [rsp + 0x130], 0x10
je 0x14006a646
movzx ecx, byte [rsp + 0x15c]
movzx eax, byte [rsp + 0x15d]
cmp cl, 0x2e
jne 0x14006a634
cmp al, cl
jne 0x14006a62b
cmp byte [rsp + 0x15e], dil
je 0x14006a65a
cmp cl, 0x2e
jne 0x14006a634
test al, al
je 0x14006a65a
mov r8, rbp
lea rcx, [rsp + 0x20]
mov rdx, r14
call fcn.14006a520
jmp 0x14006a656
mov r8, rbp
lea rcx, [rsp + 0x20]
mov rdx, r14
call fcn.140069930
test eax, eax
jne 0x14006a675
lea rdx, [rsp + 0x130]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x14006a5e0
jmp 0x14006a67a
mov edi, 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
lea r11, [rsp + 0x270]
mov eax, edi
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x140070d50
Capabilities:
Set console window title

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_AllocConsole]
lea rcx, str.PureBasic_Console_Debugger__press_CtrlC_to_stop_program_
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
mov eax, 0x1f4
mov ecx, 0xfffffff5
mov word [rsp + 0x22], ax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, dword [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
mov edx, 0x4000
call fcn.140010364
mov ecx, eax
lea rdx, [0x1400faea0]
call fcn.1400b71f4
xor r9d, r9d
mov qword [0x14012ee08], rax
xor edx, edx
mov rcx, rax
lea r8d, [r9 + 4]
call fcn.1400b746c
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
mov edx, 0x4000
call fcn.140010364
mov ecx, eax
lea rdx, [0x1400fd970]
call fcn.1400b71f4
xor r9d, r9d
mov qword [0x14012ee10], rax
xor edx, edx
mov rcx, rax
lea r8d, [r9 + 4]
call fcn.1400b746c
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
mov edx, 0x4000
call fcn.140010364
mov ecx, eax
lea rdx, [0x1400fd970]
call fcn.1400b71f4
xor r9d, r9d
mov qword [0x14012ee18], rax
xor edx, edx
mov rcx, rax
lea r8d, [r9 + 4]
call fcn.1400b746c
mov rax, qword [0x14012ee10]
mov qword [0x1401346e0], rax
call fcn.14006d030
add rsp, 0x48
ret
Function at 0x1400794a0
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov edi, edx
mov rbp, rcx
test edx, edx
jle 0x1400794fb
nop
mov rcx, qword [0x140132698]
mov r8d, edi
movsxd rdx, ebx
sub r8d, ebx
add rdx, rbp
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
mov esi, eax
cmp eax, 0xffffffff
jne 0x1400794f5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd8bb
test eax, 0xfffffffa
je 0x140079515
add ebx, esi
cmp ebx, edi
jl 0x1400794c0
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
xor eax, eax
jmp 0x140079500

Function at 0x1400b500c
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x140129158]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1400b5056
call fcn.14000fa2c
mov dword [rax], recv
call fcn.14000fa4c
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.14000d69c
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14007ad20
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1400b5061
lea eax, [rbx + 1]
jmp 0x1400b5043
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 0x1400b5041
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1400b5043

Function at 0x1400be3e8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400be3fe
mov al, 1
jmp 0x1400be45e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400be40f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400be45c
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400102ec
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400be45c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400be45c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400be45c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400be45e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400c8c24
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.140023734
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140023734
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400c8d74
cmp rax, 0xffffffffffffffff
je 0x1400c8d74
xor edi, edi
test rbp, rbp
jle 0x1400c8d1f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14000bcbc
mov rbx, rax
test rax, rax
jne 0x1400c8cac
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400c8d15
mov edx, 0x8000
mov ecx, r14d
call fcn.140006a58
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.140020c24
cmp eax, 0xffffffff
je 0x1400c8cf5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400c8cbc
mov edx, r15d
mov ecx, r14d
call fcn.140006a58
jmp 0x1400c8d15
cmp byte [rsi + 0x38], dil
je 0x1400c8d0c
cmp dword [rsi + 0x34], 5
jne 0x1400c8d0c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x1400c8d15
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14000b484
jmp 0x1400c8d88
jns 0x1400c8d88
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140023734
cmp rax, 0xffffffffffffffff
jne 0x1400c8d40
cmp byte [rsi + 0x30], dil
je 0x1400c8d88
mov edi, dword [rsi + 0x2c]
jmp 0x1400c8d88
mov ecx, r14d
call fcn.1400102ec
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400c8d88
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 0x1400c8d88
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400c8d81
mov eax, dword [rsi + 0x2c]
jmp 0x1400c8d86
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140023734
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