joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005f860
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
jmp 0x14005f860
push rdi
sub rsp, 0x20
mov rdi, rcx
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
jne 0x14005f888
mov qword [rdi], 0
mov rax, rdi
add rsp, 0x20
pop rdi
ret
cmp qword [rsp + 0x40], 0
jle 0x14005f878
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x38]
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x14005f8bc
inc ebx
cmp ebx, 3
ja 0x14005f8f2
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x14005f8a6
mov rbx, qword [rsp + 0x30]
xorps xmm1, xmm1
cvtsi2sd xmm1, qword [rsp + 0x38]
xorps xmm0, xmm0
mulsd xmm1, qword [0x1400d7178]
cvtsi2sd xmm0, qword [rsp + 0x40]
divsd xmm1, xmm0
cvttsd2si rax, xmm1
mov qword [rdi], rax
mov rax, rdi
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
mov rax, rdi
mov qword [rdi], 0
add rsp, 0x20
pop rdi
ret

Function at 0x140060490
Capabilities:
Get memory capacity

Disassembly:
jmp 0x140060490
mov r11, rsp
sub rsp, 0x98
mov rax, qword [0x140118988]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
lea rcx, [r11 - 0x58]
mov qword [r11 - 0x58], rax
mov qword [r11 - 0x50], rax
mov qword [r11 - 0x48], rax
mov qword [r11 - 0x40], rax
mov qword [r11 - 0x38], rax
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x20], rax
mov dword [rsp + 0x40], 0x40
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x140060501
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140001c58
add rsp, 0x98
ret
lea rdx, str.GlobalMemoryStatusEx_failed
lea rcx, [rsp + 0x20]
call fcn.1400016d1
lea rdx, [0x140115758]
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x140081d10
Capabilities:
Terminate process

Disassembly:
jmp 0x140081d10
sub rsp, 0x48
mov byte [rcx + 8], 1
mov edx, 0x101
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x140081d36
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x140081d3b
add rsp, 0x48
ret
lea rdx, str.TerminateProcess_failed
lea rcx, [rsp + 0x20]
call fcn.1400016d1
lea rdx, [0x140115758]
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x140088400
Capabilities:
Read file on windows

Disassembly:
jmp 0x140088400
jmp 0x1400883ec
movsxd rax, dword [rcx - 4]
sub rcx, rax
jmp 0x140002617
sub rsp, 0x58
mov rcx, qword [rcx - 0x58]
lea r9, [rsp + 0x60]
mov eax, 0xffffffff
cmp r8, rax
cmovb eax, r8d
xor r8d, r8d
mov dword [rsp + 0x60], r8d
mov qword [rsp + 0x20], r8
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14008843e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x140088447
mov eax, dword [rsp + 0x60]
add rsp, 0x58
ret
lea rdx, str.ReadFile_failed
lea rcx, [rsp + 0x30]
call fcn.1400016d1
lea rdx, [0x140115758]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x140088510
Capabilities:
Write file on windows

Disassembly:
jmp 0x140088510
jmp 0x1400884fc
movsxd rax, dword [rcx - 4]
sub rcx, rax
jmp 0x140003319
sub rsp, 0x58
mov rcx, qword [rcx - 0x88]
lea r9, [rsp + 0x60]
mov eax, 0xffffffff
cmp r8, rax
cmovb eax, r8d
xor r8d, r8d
mov dword [rsp + 0x60], r8d
mov qword [rsp + 0x20], r8
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14008854f
mov eax, dword [rsp + 0x60]
add rsp, 0x58
ret
lea rdx, str.WriteFile_failed
lea rcx, [rsp + 0x30]
call fcn.1400016d1
lea rdx, [0x140115758]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x14008bdf0
Capabilities:
Clear file content

Disassembly:
jmp 0x1400884f0
jmp 0x14008bdf0
mov rcx, qword [rcx + 0x20]
jmp 0x140002eb4
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x14008be03
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.SetEndOfFile
lea rcx, [rsp + 0x20]
call fcn.140002d33
lea rdx, [0x140116a50]
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x14009bc50
Capabilities:
Get common file path

Disassembly:
jmp 0x14009bc50
mov qword [rsp + 8], rcx
push rdi
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rsi
mov r14, rdx
mov r15, rcx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
mov eax, 1
test esi, esi
cmove esi, eax
mov r8d, esi
mov eax, 2
mul r8
mov rdi, 0xffffffffffffffff
cmovo rax, rdi
mov rcx, rax
call fcn.140003bb1
mov rbx, rax
mov qword [rsp + 0x50], rax
mov rdx, rax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor esi, esi
test eax, eax
jne 0x14009bce1
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14009bce1
lea r8, str.boost::filesystem::current_path
mov rdx, r14
mov ecx, eax
call fcn.140001c71
jmp 0x14009bcf8
test r14, r14
je 0x14009bcf8
mov dword [r14], esi
mov byte [r14 + 4], sil
lea rax, [0x1400ccd88]
mov qword [r14 + 8], rax
mov qword [r15 + 0x10], rsi
mov qword [r15 + 0x18], 7
mov word [r15], si
nop dword [rax + rax]
inc rdi
cmp word [rbx + rdi*2], si
jne 0x14009bd10
mov r8, rdi
mov rdx, rbx
mov rcx, r15
call fcn.140001faf
nop
mov rcx, rbx
call fcn.140002dd3
mov rax, r15
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret

Function at 0x14009cf30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x18], 8
mov rdi, rdx
mov rsi, rcx
jb 0x14009cf4f
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x14009cf7e
mov r8, rdi
lea rcx, [rsp + 0x30]
mov rdx, rsi
call fcn.14009cdb0
mov eax, dword [rax]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
test rdi, rdi
je 0x14009cf98
lea rax, [0x1400ccd88]
mov dword [rdi], 0
mov qword [rdi + 8], rax
mov byte [rdi + 4], 0
bt ebx, 0xa
jae 0x14009cfdf
mov rcx, rsi
call fcn.14009c7f0
test al, al
je 0x14009cfca
test bl, 0x10
mov eax, 4
mov ecx, VariantTimeToDosDateTime
cmovne eax, ecx
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov eax, 9
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rsi, qword [rsp + 0x40]
and ebx, 0x10
or ebx, 0x20
shr ebx, 4
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14009d600
Capabilities:
Check if file exists
Get file attributes

Disassembly:
jmp 0x14009d600
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
xor ebp, ebp
lea r14, [0x1400ccd88]
cmp qword [rcx + 0x18], 8
mov rdi, rdx
mov rsi, rcx
mov dword [rsp + 0x20], ebp
mov byte [rsp + 0x24], bpl
mov qword [rsp + 0x28], r14
jb 0x14009d639
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x14009d660
lea r8, [rsp + 0x20]
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.14009cdb0
mov ebp, dword [rsp + 0x20]
mov ebx, dword [rax]
jmp 0x14009d6c5
bt ebx, 0xa
jae 0x14009d6bc
mov rcx, rsi
call fcn.14009c7f0
test al, al
je 0x14009d684
test bl, 0x10
mov eax, VariantTimeToDosDateTime
mov ebx, 4
cmovne ebx, eax
jmp 0x14009d6c5
mov ebx, 9
test rdi, rdi
je 0x14009d69c
mov dword [rdi], 0
mov byte [rdi + 4], 0
mov qword [rdi + 8], r14
mov r8, rdi
mov edx, ebx
mov rcx, rsi
call fcn.14009dbe0
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
and ebx, 0x10
or ebx, 0x20
shr ebx, 4
test ebx, ebx
jne 0x14009d689
test ebp, ebp
je 0x14009d689
lea r9, str.boost::filesystem::remove
mov r8, rdi
mov rdx, rsi
mov ecx, ebp
call fcn.1400011bd
xor al, al
jmp 0x14009d6a9

Function at 0x14009dbe0
Capabilities:
Delete directory
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, r8
mov rdi, rcx
cmp edx, 1
jne 0x14009dc1e
test rbx, rbx
je 0x14009dc11
lea rax, [0x1400ccd88]
mov dword [r8], 0
mov qword [r8 + 8], rax
mov byte [r8 + 4], 0
xor al, al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
lea eax, [rdx - 3]
test eax, 0xfffffff7
je 0x14009dc3a
cmp qword [rcx + 0x18], 8
jb 0x14009dc32
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x14009dc4a
cmp qword [rcx + 0x18], 8
jb 0x14009dc44
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14009dca5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x35
ja 0x14009dc69
movabs rdx, 0x2000000020800c
bt rdx, rax
jb 0x14009dca5
cmp eax, 0x7b
je 0x14009dca5
cmp eax, 0x57
je 0x14009dca5
cmp eax, 0xa1
je 0x14009dca5
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14009dca5
lea r9, str.boost::filesystem::remove
mov r8, rbx
mov rdx, rdi
mov ecx, eax
call fcn.1400011bd
xor al, al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
test rbx, rbx
je 0x14009dcbf
lea rax, [0x1400ccd88]
mov byte [rbx + 4], 0
mov qword [rbx + 8], rax
mov dword [rbx], 0
mov rbx, qword [rsp + 0x30]
mov al, 1
add rsp, 0x20
pop rdi
ret
Function at 0x14009e020
Capabilities:
Check if file exists
Get file attributes

Disassembly:
jmp 0x14009e020
mov rax, rsp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov r14, r8
mov rsi, rdx
mov rdi, rcx
mov rcx, rdx
cmp qword [rdx + 0x18], 8
jb 0x14009e055
mov rcx, qword [rdx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebp, eax
cmp eax, 0xffffffff
jne 0x14009e075
mov r8, r14
mov rdx, rsi
mov rcx, rdi
call fcn.14009cdb0
jmp 0x14009e150
mov edx, ebp
mov rcx, rsi
call fcn.140002a2c
mov r15d, eax
xor r12d, r12d
bt ebp, 0xa
jae 0x14009e108
mov rcx, rsi
cmp qword [rsi + 0x18], 8
jb 0x14009e098
mov rcx, qword [rsi]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov qword [rsp + 0x88], rax
cmp rax, 0xffffffffffffffff
jne 0x14009e0de
mov r8, r14
mov rdx, rsi
mov rcx, rdi
call fcn.14009cdb0
nop
jmp 0x14009e150
mov rcx, rsi
call fcn.14009c7f0
test al, al
jne 0x14009e0ff
mov dword [rdi], 9
mov dword [rdi + 4], r15d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14009e150
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r14, r14
je 0x14009e120
mov dword [r14], r12d
mov byte [r14 + 4], 0
lea rax, [0x1400ccd88]
mov qword [r14 + 8], rax
and ebp, 0x10
je 0x14009e12e
mov eax, dword [rsp + 0x88]
jmp 0x14009e139
mov eax, r15d
mov r15d, dword [rsp + 0x88]
test ebp, ebp
setne r12b
add r12d, 2
mov dword [rdi], r12d
test ebp, ebp
cmove r15d, eax
mov dword [rdi + 4], r15d
mov rax, rdi
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret

Function at 0x14009e1c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
jmp 0x14009e1c0
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x20
cmp qword [rdx + 0x18], 8
mov rdi, rcx
mov rcx, rdx
mov rsi, r8
mov r14, rdx
jb 0x14009e1e3
mov rcx, qword [rdx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x14009e20f
mov r8, rsi
mov rdx, r14
mov rcx, rdi
call fcn.14009cdb0
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
mov qword [rsp + 0x40], rbp
xor ebp, ebp
test rsi, rsi
je 0x14009e22c
lea rax, [0x1400ccd88]
mov dword [rsi], ebp
mov qword [rsi + 8], rax
mov byte [rsi + 4], bpl
mov edx, ebx
mov rcx, r14
call fcn.140002a2c
mov esi, eax
bt ebx, 0xa
jae 0x14009e259
mov rcx, r14
call fcn.14009c7f0
test al, al
mov ecx, 9
mov edx, 4
cmovne ecx, edx
mov dword [rdi], ecx
jmp 0x14009e278
and ebx, 0x10
je 0x14009e264
mov eax, dword [rsp + 0x48]
jmp 0x14009e268
mov esi, dword [rsp + 0x48]
test ebx, ebx
setne bpl
add ebp, 2
test ebx, ebx
mov dword [rdi], ebp
cmove esi, eax
mov rbp, qword [rsp + 0x40]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
mov dword [rdi + 4], esi
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x1400a23e0
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1400a23e0
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [0x140118ac0]
cmp ecx, 0xffffffff
je 0x1400a2445
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400a2445
mov rcx, qword [rax + 0x28]
mov rax, rcx
mov rdx, qword [rcx + 8]
cmp byte [rdx + 0x19], 0
jne 0x1400a2433
cmp qword [rdx + 0x20], rbx
jae 0x1400a241c
mov rdx, qword [rdx + 0x10]
jmp 0x1400a2422
mov rax, rdx
mov rdx, qword [rdx]
cmp byte [rdx + 0x19], 0
je 0x1400a2410
cmp rax, rcx
je 0x1400a2433
cmp rbx, qword [rax + 0x20]
jae 0x1400a2436
mov rax, rcx
cmp rax, rcx
je 0x1400a2445
add rax, 0x28
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x1400a2f50
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
call fcn.1400a09d0
mov rbx, rax
mov qword [rsp + 0x40], rax
lea rdx, [0x1400a1f00]
lea rcx, [0x14011d2d8]
call fcn.140003f49
mov ecx, dword [0x140118ac0]
cmp ecx, 0xffffffff
je 0x1400a2f94
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
add rsp, 0x30
pop rbx
ret

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

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
mov ecx, dword [0x140118ac0]
cmp ecx, 0xffffffff
jne 0x1400a3d98
xor esi, esi
jmp 0x1400a3da1
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
mov qword [rsp + 0x40], rsi
test rsi, rsi
je 0x1400a3de5
mov rcx, qword [rsi + 0x30]
nop
mov rdi, qword [rsi + 0x18]
test rcx, rcx
jne 0x1400a3e27
test rdi, rdi
jne 0x1400a3e30
lea rdx, [0x1400a1f00]
lea rcx, [0x14011d2d8]
call fcn.140003f49
mov ecx, dword [0x140118ac0]
cmp ecx, 0xffffffff
je 0x1400a3de5
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
test rsi, rsi
je 0x1400a3e17
mov eax, 0xffffffff
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x1400a3e17
mov rax, qword [rsi]
xor edx, edx
mov rcx, rsi
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
test rdi, rdi
je 0x1400a3e88
nop dword [rax]
mov rax, qword [rdi + 8]
mov qword [rsi + 0x18], rax
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400a3e67
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rdi]
mov rax, qword [rbx]
xor edx, edx
mov rcx, rbx
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rdi, qword [rsi + 0x18]
test rdi, rdi
jne 0x1400a3e30
mov rcx, qword [rsi + 0x30]
test rcx, rcx
je 0x1400a3db0
nop dword [rax]
nop word [rax + rax]
mov rbx, qword [rsi + 0x28]
mov rbx, qword [rbx]
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400a3ebc
mov rdx, qword [rbx + 0x38]
test rdx, rdx
je 0x1400a3ebc
call qword [rbx + 0x28]
mov rax, rbx
mov rcx, qword [rbx + 0x10]
cmp byte [rcx + 0x19], 0
je 0x1400a3ee8
mov rcx, qword [rbx + 8]
cmp byte [rcx + 0x19], 0
jne 0x1400a3efd
cmp rax, qword [rcx + 0x10]
jne 0x1400a3efd
mov rax, rcx
mov rcx, qword [rcx + 8]
cmp byte [rcx + 0x19], 0
je 0x1400a3ed3
jmp 0x1400a3efd
mov rcx, qword [rcx]
cmp byte [rcx + 0x19], 0
jne 0x1400a3efd
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x1400a3ef1
mov rdx, rbx
lea rcx, [rsi + 0x28]
call fcn.140001d7a
mov edx, 0x40
mov rcx, rax
call fcn.1400017ad
mov rcx, qword [rsi + 0x30]
test rcx, rcx
jne 0x1400a3ea0
jmp 0x1400a3db0
Function at 0x1400a4310
Capabilities:
Create thread
Resume thread

Disassembly:
jmp 0x1400a4310
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov r9, qword [rcx]
lea r8, [0x1400a43c0]
mov rdi, rcx
xor edx, edx
xor ecx, ecx
lea rax, [r9 + 0x20]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov rsi, rax
test rax, rax
jne 0x1400a4355
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rax, qword [rdi]
mov qword [rsp + 0x40], rbx
lock inc dword [rax + 8]
mov rbx, qword [rdi]
mov rcx, qword [rbx + 0x10]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400a4378
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x10], rsi
mov rcx, qword [rdi]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rbx, qword [rsp + 0x40]
mov al, 1
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140001780
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x1400c8008]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rcx
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x34], r8d
nop dword [rax + rax]
lea rax, [rsp + 0x30]
xor r9d, r9d
lea ecx, [rdi + 1]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_select]
movsxd rbx, eax
test eax, eax
jns 0x1400017f0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1400017c0
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400997a0
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret

Function at 0x140001820
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rdi
sub rsp, 0x30
mov rax, qword [0x1400c8008]
xor rax, rsp
mov qword [rsp + 0x28], rax
xor r8d, r8d
xor edx, edx
mov rdi, rcx
call fcn.140001780
test rax, rax
jne 0x14000185c
mov al, 1
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400997a0
add rsp, 0x30
pop rdi
ret
jns 0x14000187e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 9
jne 0x14000187e
xor al, al
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400997a0
add rsp, 0x30
pop rdi
ret
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
lea rsi, [rsp + 0x20]
nop dword [rax]
mov r9d, 2
mov rdx, rsi
mov rcx, rdi
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
movsxd rbx, eax
test eax, eax
jns 0x1400018b8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x140001890
mov rsi, qword [rsp + 0x50]
test rbx, rbx
mov rbx, qword [rsp + 0x48]
setg al
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400997a0
add rsp, 0x30
pop rdi
ret
Function at 0x140001db0
Capabilities:
Resolve dns

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x468
mov rax, qword [0x1400c8008]
xor rax, rsp
mov qword [rsp + 0x450], rax
movzx eax, word [rcx]
mov rsi, r9
mov rdi, r8
mov ebp, edx
mov rbx, rcx
cmp ax, 2
je 0x140001de8
cmp ax, 0x17
jne 0x140001e5d
movzx ecx, word [rcx + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
xor edx, edx
lea rcx, [rsp + 0x40]
mov dword [rsi], eax
mov r8d, 0x401
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], eax
lea r8, [rsp + 0x40]
mov r9d, 0x401
mov qword [rsp + 0x20], rax
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
jne 0x140001e5d
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140001e42
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140006300
mov al, 1
jmp 0x140001e5f
xor al, al
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.1400997a0
add rsp, 0x468
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1400020b0
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x1400c8008]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdx, qword [rcx + 0x28]
mov rdi, rcx
mov rax, qword [rcx + 0x20]
mov rsi, qword [rcx + 8]
mov qword [rsp + 0x48], rsi
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x34], edx
mov dword [rsp + 0x40], 1
nop dword [rax + rax]
lea rax, [rsp + 0x30]
xor r9d, r9d
lea ecx, [rsi + 1]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x40]
xor edx, edx
call qword [sym.imp.WS2_32.dll_select]
movsxd rbx, eax
test eax, eax
jns 0x14000212f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x140002100
test rbx, rbx
jle 0x140002145
mov rcx, qword [rdi + 8]
call fcn.140001820
test al, al
je 0x140002145
mov al, 1
jmp 0x140002147
xor al, al
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400997a0
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140002170
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x28
mov rsi, qword [rcx + 0x50]
mov eax, 0x7fffffff
cmp r8, rax
mov rdi, r8
mov r14, rdx
mov rbx, rcx
cmova rdi, rax
mov rax, qword [rcx + 0x48]
cmp rax, rsi
jae 0x1400021e1
mov rcx, qword [rcx + 0x30]
sub rsi, rax
lea rdx, [rax + rcx]
mov rcx, r14
cmp rdi, rsi
ja 0x1400021c8
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx + 0x48], rdi
mov rax, rdi
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx + 0x48], rsi
mov rax, rsi
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
test al, al
jne 0x1400021fc
mov rax, 0xffffffffffffffff
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
xor eax, eax
mov qword [rsp + 0x68], rbp
mov rbp, qword [rbx + 8]
mov qword [rbx + 0x48], rax
mov qword [rbx + 0x50], rax
cmp rdi, 0x1000
jae 0x1400022b0
mov qword [rsp + 0x20], r15
mov r15, qword [rbx + 0x30]
nop word [rax + rax]
xor r9d, r9d
mov r8d, 0x1000
mov rdx, r15
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rsi, eax
test eax, eax
jns 0x140002257
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x140002230
mov r15, qword [rsp + 0x20]
test rsi, rsi
jle 0x140002275
mov rdx, qword [rbx + 0x30]
mov rcx, r14
cmp rsi, rdi
jg 0x140002287
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
mov rbp, qword [rsp + 0x68]
mov rax, rsi
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rbp, qword [rsp + 0x68]
mov rax, rdi
mov qword [rbx + 0x48], rdi
mov qword [rbx + 0x50], rsi
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
xor r9d, r9d
mov r8d, edi
mov rdx, r14
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rbx, eax
test eax, eax
jns 0x1400022d4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1400022b0
mov rbp, qword [rsp + 0x68]
mov rax, rbx
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret

Function at 0x1400022f0
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rax, qword [rcx]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
call qword [rax + reloc.WS2_32.dll_recv]
test al, al
jne 0x140002329
mov rax, 0xffffffffffffffff
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov rdi, qword [rdi + 8]
mov qword [rsp + 0x38], rbx
xor r9d, r9d
mov r8d, esi
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_send]
movsxd rbx, eax
test eax, eax
jns 0x140002356
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x140002332
mov rbp, qword [rsp + 0x40]
mov rax, rbx
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400023f0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0xc0
mov rax, qword [0x1400c8008]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rcx, qword [rcx + 8]
mov rdi, r8
mov rbx, rdx
mov dword [rsp + 0x20], 0x80
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x140002449
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov r9, rdi
mov r8, rbx
call fcn.140001db0
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400997a0
mov rbx, qword [rsp + 0xe8]
add rsp, 0xc0
pop rdi
ret