joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140037ee0
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov r10d, dword [0x14025b394]
xor ebx, ebx
mov rsi, r9
mov r14, r8
mov r15, rdx
mov rbp, rcx
cmp r10d, 0xffffffff
je 0x140037f38
mov ebx, dword [0x14025b390]
mov eax, dword [0x14025b398]
mov edi, dword [0x14025b39c]
mov r11d, dword [0x14025b3a0]
mov r9d, dword [0x14025b3a4]
jmp 0x14003801d
cmp dword [0x14026e580], ebx
jne 0x140037f68
lea rcx, [0x14026e580]
mov dword [0x14026e580], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
movsxd rcx, eax
call fcn.140172320
test rax, rax
je 0x14003806f
mov r10d, dword [0x14026e584]
mov eax, dword [0x14026e588]
mov edi, dword [0x14026e58c]
mov r11d, dword [0x14026e590]
movzx r9d, word [0x14026e694]
cmp r10d, 0xa
jg 0x140037ff1
jne 0x140037f9d
test eax, eax
jns 0x140037ff1
mov ebx, 6
jmp 0x140037ff6
cmp r10d, 6
jg 0x140037f96
jne 0x140037fcd
cmp eax, 3
jge 0x140037f96
cmp eax, 2
jge 0x140037fc6
cmp eax, 1
jge 0x140037fbf
test eax, eax
js 0x140037fea
mov ebx, 3
jmp 0x140037ff6
mov ebx, 4
jmp 0x140037ff6
mov ebx, 5
jmp 0x140037ff6
cmp r10d, 5
jg 0x140037fea
jne 0x140037ff6
cmp eax, 2
jge 0x140037fea
cmp eax, 1
jge 0x140037fea
test eax, eax
js 0x140037ff6
mov ebx, 1
jmp 0x140037ff6
mov ebx, 2
jmp 0x140037ff6
mov ebx, 7
mov dword [0x14025b390], ebx
mov dword [0x14025b394], r10d
mov dword [0x14025b398], eax
mov dword [0x14025b39c], edi
mov dword [0x14025b3a0], r11d
mov dword [0x14025b3a4], r9d
test rbp, rbp
je 0x140038025
mov dword [rbp], ebx
test r15, r15
je 0x14003802d
mov dword [r15], r10d
test r14, r14
je 0x140038035
mov dword [r14], eax
test rsi, rsi
je 0x14003803c
mov dword [rsi], edi
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x140038049
mov dword [rax], r11d
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x140038056
mov dword [rax], r9d
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
lea rdx, str.GetVersionEx_failed__m
mov ecx, 0x61
call fcn.14003ebc0
int3
Function at 0x140038090
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov r14, rcx
mov qword [rsp + 0x78], 0
mov ebp, r8d
lea rcx, [rsp + 0x58]
mov esi, edx
lea r8, [0x1400381e0]
sub rcx, 8
lea rdx, [rsp + 0x38]
call fcn.140025060
mov edx, 0x104
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x30], 0
mov rdi, rax
or rbx, 0xffffffffffffffff
call fcn.140026d30
test ebp, ebp
je 0x140038125
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov ecx, eax
lea rdx, [rsp + 0x30]
call sub.WTSAPI32.dll_WTSQueryUserToken
movsxd rcx, eax
call fcn.140172320
test rax, rax
jne 0x140038125
lea rdx, str.failed_get_token_for_active_user__m
mov rcx, rdi
call fcn.140026000
jmp 0x14003819d
mov rax, qword [rsp + 0x78]
xor r9d, r9d
mov r8, qword [rsp + 0x30]
mov edx, esi
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x14003814e
lea rdx, str.failed_get_path_for_cid__d
jmp 0x140038192
mov rdx, qword [rsp + 0x78]
mov rcx, r14
call fcn.1400261e0
mov rax, qword [r14]
test rax, rax
je 0x14003818b
cmp byte [rax], 0
je 0x14003818b
nop dword [rax + rax]
cmp byte [rax + rbx + 1], 0
lea rbx, [rbx + 1]
jne 0x140038170
cmp byte [rbx + rax - 1], 0x5c
jne 0x140038187
mov byte [rbx + rax - 1], 0
xor ebx, ebx
jmp 0x1400381aa
lea rdx, str.got_empty_path_for__d
mov r8d, esi
mov rcx, rdi
call fcn.1400260b0
mov rdx, qword [rdi]
mov ecx, 0x610003
call fcn.140028ca0
test ebp, ebp
je 0x1400381b8
lea rcx, [rsp + 0x30]
call fcn.14003e7b0
lea rcx, [rsp + 0x78]
call fcn.140026b90
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x140038210
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
movsxd r11, edx
mov rbp, r8
add r11, rcx
mov r10, r8
cmp rcx, r11
jae 0x14003830b
movsxd rax, r9d
lea rsi, [r8 - 4]
add rsi, rax
lea r9, [rcx + 2]
lea r8, [rcx + 1]
lea r14, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
cmp r8, r11
jb 0x14003825e
xor dil, dil
jmp 0x140038262
movzx edi, byte [r8]
cmp r9, r11
jb 0x14003826b
xor bl, bl
jmp 0x14003826f
movzx ebx, byte [r9]
cmp r10, rsi
jae 0x140038332
movzx eax, byte [rcx]
shr rax, 2
movzx eax, byte [rax + r14]
mov byte [r10], al
movsx rdx, byte [rcx]
inc rcx
and edx, 3
movzx eax, dil
shr rax, 4
lea rdi, [r10 + 3]
shl rdx, 4
or rdx, rax
movzx eax, byte [rdx + r14]
mov byte [r10 + 1], al
mov byte [rdi], 0x3d
mov byte [r10 + 2], 0x3d
mov byte [r10 + 4], 0
cmp rcx, r11
je 0x14003832c
movsx rdx, byte [rcx]
inc rcx
and edx, 0xf
movzx eax, bl
shr rax, 6
shl rdx, 2
or rdx, rax
movzx eax, byte [rdx + r14]
mov byte [r10 + 2], al
lea r10, [rdi + 1]
cmp rcx, r11
je 0x14003830b
movsx rax, byte [rcx]
add r8, 3
and eax, 0x3f
inc rcx
add r9, 3
movzx eax, byte [rax + r14]
mov byte [rdi], al
cmp rcx, r11
jb 0x140038254
mov byte [r10], 0
sub r10d, ebp
mov eax, r10d
mov rbx, qword [rsp + 0x10]
mov rbp, qword [rsp + 0x18]
mov rsi, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x28]
pop r14
ret
add r10, 4
jmp 0x14003830b
or eax, 0xffffffff
jmp 0x140038315

Function at 0x14003a1b0
Capabilities:
Access peb ldr_data

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rax, qword gs:[0x58]
mov r14d, edx
mov dword [rsp + 0x38], r8d
xor r15d, r15d
mov dword [r11 - 0x28], edx
mov ebp, r8d
mov edx, dword [rcx + 0x18]
mov rsi, rcx
mov rcx, qword [rcx + 0x10]
mov dword [r11 - 0x30], r15d
mov ebx, 0x1a10
add rbx, qword [rax]
mov edi, 0x1a04
add rdi, qword [rax]
lea rax, [r11 + 8]
mov dword [r11 + 8], r15d
mov r8, qword [rbx]
mov qword [r11 - 0x38], rax
mov r9d, dword [rdi]
call fcn.14003c920
mov r9d, dword [rdi]
mov eax, dword [rsp + 0x60]
cmp eax, r9d
jl 0x14003a272
cmp r9d, eax
jg 0x14003a23a
mov r8d, eax
mov rdx, rdi
mov rcx, rbx
call fcn.140025680
mov r9d, dword [rdi]
mov r8, qword [rbx]
lea rax, [rsp + 0x60]
mov edx, dword [rsi + 0x18]
mov rcx, qword [rsi + 0x10]
mov dword [rsp + 0x38], ebp
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x60], r15d
call fcn.14003c920
mov r9d, dword [rdi]
mov eax, dword [rsp + 0x60]
cmp eax, r9d
jg 0x14003a298
mov rcx, qword [rbx]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
movsxd rdx, eax
mov byte [rdx + rcx], r15b
mov rax, qword [rbx]
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
mov r8d, eax
lea rdx, str.set_str_length_mismatch__d__d
mov ecx, 0x4f
call fcn.14003ebc0
int3
Function at 0x14003e2a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov qword [rax - 0x40], 0xffffffff80000006
mov r15, r8
mov qword [rax - 0x48], 0xffffffff80000005
mov r14, rdx
mov qword [rax - 0x50], 0xffffffff80000060
or edi, 0xffffffff
mov qword [rax - 0x58], 0xffffffff80000050
mov r12, r9
mov qword [rax - 0x60], 0xffffffff80000004
mov r9, 0xffffffff80000000
mov qword [rax - 0x68], 0xffffffff80000003
xor r8d, r8d
mov qword [rax - 0x70], 0xffffffff80000002
lea edx, [rdi + 0xb]
mov qword [rax - 0x78], 0xffffffff80000001
mov rbx, rcx
call fcn.14003deb0
mov rsi, qword [rsp + 0xc0]
xor r13d, r13d
mov ebp, eax
mov dword [rsp + 0xa0], r13d
mov qword [rsp + 0x60], r13
mov rcx, qword [rsi]
test rcx, rcx
je 0x14003e347
call fcn.14017668c
mov qword [rsi], r13
test ebp, ebp
je 0x14003e374
test rbx, rbx
lea r8, [0x14019abc8]
mov rdx, r14
cmove rbx, qword [0x14025b500]
mov rcx, rbx
call fcn.14003e040
mov rbx, rax
test rax, rax
je 0x14003e449
mov rdx, r15
lea rcx, [rsp + 0x60]
call fcn.140026bc0
mov rdx, qword [rsp + 0x60]
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r13
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x14003e449
movsxd rcx, dword [rsp + 0xa0]
add rcx, 2
call fcn.140181ab8
mov qword [rsp + 0x68], rax
mov r9, r12
mov qword [rsi], rax
xor r8d, r8d
mov byte [rax], r13b
mov rax, qword [rsp + 0x68]
movsxd rcx, dword [rsp + 0xa0]
mov byte [rcx + rax], r13b
mov eax, dword [rsp + 0xa0]
inc eax
movsxd rcx, eax
mov rax, qword [rsp + 0x68]
mov byte [rcx + rax], r13b
lea rax, [rsp + 0xa0]
mov rdx, qword [rsp + 0x60]
mov rcx, rbx
mov qword [rsp + 0x28], rax
mov rax, qword [rsi]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
je 0x14003e433
lea rdx, str.second_RegQueryValue___failed
mov ecx, 0x660003
call fcn.140028ca0
cmp qword [rsi], r13
jne 0x14003e449
lea rdx, [0x140199ec6]
lea rcx, [rsp + 0x68]
call fcn.140026000
mov rcx, qword [rsp + 0xc8]
test rcx, rcx
je 0x14003e45f
mov eax, dword [rsp + 0xa0]
mov dword [rcx], eax
lea rcx, [rsp + 0x60]
call fcn.140026b90
test ebp, ebp
je 0x14003e47b
test rbx, rbx
je 0x14003e47b
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r11, [rsp + 0x70]
mov eax, edi
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14003e530
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x60
mov qword [rax - 0x10], 0xffffffff80000006
mov rbp, r8
mov qword [rax - 0x18], 0xffffffff80000005
xor r8d, r8d
mov qword [rax - 0x20], 0xffffffff80000060
mov r10, rdx
mov qword [rax - 0x28], 0xffffffff80000050
mov esi, r9d
mov qword [rax - 0x30], 0xffffffff80000004
mov r9, 0xffffffff80000000
mov qword [rax - 0x38], 0xffffffff80000003
lea edx, [r8 + 0xa]
mov qword [rax - 0x40], 0xffffffff80000002
mov rbx, rcx
mov qword [rax - 0x48], 0xffffffff80000001
call fcn.14003deb0
mov edi, eax
test eax, eax
je 0x14003e5d3
test rcx, rcx
lea r8, [0x14019d550]
mov rdx, r10
cmove rbx, qword [0x14025b500]
mov rcx, rbx
call fcn.14003e040
mov rbx, rax
test rax, rax
jne 0x14003e5d3
or eax, 0xffffffff
jmp 0x14003e644
mov rax, qword gs:[0x58]
mov rdx, rbp
mov ecx, 0x1a28
add rcx, qword [rax]
call fcn.140026bc0
mov r9d, esi
xor r8d, r8d
mov rcx, rbx
mov rdx, qword [rax]
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test eax, eax
je 0x14003e630
mov r8, rbp
lea rdx, str.z_RegSetValue:_failed__s
mov ecx, 0x660003
call fcn.140028ca0
test edi, edi
je 0x14003e642
test rbx, rbx
je 0x14003e642
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret

Function at 0x14003e870
Capabilities:
Create pipe

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov esi, edx
mov ebx, r9d
mov rdx, rcx
mov edi, r8d
lea rcx, [rsp + 0x48]
sub rcx, 8
call fcn.140025620
mov rcx, qword [rsp + 0x88]
mov r9d, ebx
mov qword [rsp + 0x38], rcx
mov r8d, edi
mov ecx, dword [rsp + 0x80]
mov edx, esi
mov dword [rsp + 0x30], ecx
mov ecx, dword [rsp + 0x78]
mov dword [rsp + 0x28], ecx
mov ecx, dword [rsp + 0x70]
mov dword [rsp + 0x20], ecx
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rcx, rax
call fcn.140172370
mov rbx, qword [rsp + 0x50]
xor ecx, ecx
mov rsi, qword [rsp + 0x58]
cmp rax, 0xffffffffffffffff
cmove rax, rcx
add rsp, 0x40
pop rdi
ret

Function at 0x14003ea30
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rsi, rdx
mov ebp, ecx
mov ebx, 0x1000
mov edx, 1
mov ecx, ebx
mov r14, r8
call fcn.140176684
mov rcx, qword [rsi]
mov rdi, rax
test rcx, rcx
je 0x14003ea72
call fcn.14017668c
mov qword [rsi], 0
lea r9, [rsp + 0x48]
mov r8d, ebx
mov rdx, rdi
mov ecx, ebp
call sub.ntdll.dll_NtQuerySystemInformation
mov ecx, dword [rsp + 0x48]
cmp eax, 0xc0000004
je 0x14003ea93
cmp ecx, ebx
jbe 0x14003eaa7
lea eax, [rcx + rbx*2]
mov rcx, rdi
mov edx, eax
mov ebx, eax
call fcn.140181ac0
mov rdi, rax
jmp 0x14003ea72
xor eax, eax
test r14, r14
je 0x14003eab1
mov dword [r14], ecx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov qword [rsi], rdi
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x14003ebf0
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
sub rsp, 0x38
mov rdx, rcx
mov qword [rax - 0x18], 0
lea rcx, [rax - 0x18]
lea r8, [rax + 0x10]
call fcn.1400260e0
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x14003ec56
mov rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x28]
mov qword [rsp + 0x28], 0
call fcn.140026bc0
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [rsp + 0x28]
call fcn.140026b90
mov ecx, 2
call fcn.140176a68
mov rcx, qword [rsp + 0x20]
mov rdx, rax
call fcn.14018150c
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x14003ec7c
call fcn.14017668c
add rsp, 0x38
ret

Function at 0x140040ff0
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rdi, rdx
mov qword [rsp + 0x60], rcx
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x60]
call fcn.1401734b0
mov rax, qword gs:[0x58]
mov esi, 0x1bb4
mov rbx, qword [rax]
mov eax, dword [rsi + rbx]
inc eax
and eax, 0x80000007
jge 0x14004103f
dec eax
or eax, 0xfffffff8
inc eax
movsxd rcx, eax
lea r9, [rsp + 0x20]
shl rcx, 8
mov r8, rdi
mov ebp, 0x1bd0
mov edx, 0x100
add rcx, rbp
mov dword [rsi + rbx], eax
add rcx, rbx
call fcn.14016ffc0
movsxd rax, dword [rsi + rbx]
mov rsi, qword [rsp + 0x78]
shl rax, 8
add rax, rbp
mov rbp, qword [rsp + 0x70]
add rax, rbx
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140041d90
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
cmp qword [0x140272f38], 0
mov r14d, r9d
mov rdi, r8
movsxd rsi, ecx
mov r15, rdx
je 0x140041e26
mov rax, qword gs:[0x58]
mov ecx, 0x23d4
mov r10, qword [rax]
cmp dword [rcx + r10], 0
jne 0x140041e26
lea rcx, [0x140272f60]
call sub.KERNEL32.dll_EnterCriticalSection
mov rax, qword [0x140272fe0]
lea rcx, [0x140272f60]
mov rbp, rsi
mov rbx, qword [rax + rsi*8]
call fcn.14002ec90
test dword [rbx + 0x68], 0x10000000
jne 0x140041e29
xor eax, eax
mov r9d, r14d
mov qword [rsp + 0x28], rax
mov r8, rdi
mov rdx, r15
mov qword [rsp + 0x20], rax
mov ecx, esi
call fcn.140041f70
jmp 0x140041f3a
mov rbp, rsi
lea rcx, [0x140272f60]
call sub.KERNEL32.dll_EnterCriticalSection
mov rax, qword [0x140272fe0]
lea rcx, [0x140272f60]
mov rbx, qword [rax + rbp*8]
call fcn.14002ec90
mov eax, dword [rbx + 0x68]
test al, 0x40
je 0x140041f53
cmp qword [rbx + 0x40], 0
je 0x140041e8d
cmp dword [rbx + 0xc], 2
jne 0x140041e8d
cmp word [rbx + 0x6c], 0
je 0x140041e8d
xor eax, eax
mov r9d, r14d
mov qword [rsp + 0x28], rax
mov r8, rdi
mov rdx, r15
mov qword [rsp + 0x20], rax
mov rcx, rbx
call fcn.140049af0
jmp 0x140041f3a
test eax, 0x80000004
je 0x140041eb0
xor eax, eax
mov r9d, r14d
mov r8, rdi
mov dword [rsp + 0x20], eax
mov rdx, r15
mov rcx, rbx
call fcn.1400498d0
jmp 0x140041f3a
test al, 1
je 0x140041f16
movsxd rcx, dword [rbx + 0x70]
mov r9d, r14d
mov r8d, edi
mov rdx, r15
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
call fcn.140172320
mov rbx, rax
test eax, eax
jns 0x140041f11
mov rcx, qword gs:[0x58]
mov eax, 0x2fe0
mov rdx, qword [rcx]
mov rax, qword [rax + rdx]
test rax, rax
jne 0x140041ef5
call fcn.140176664
cmp dword [rax], 0x2738
jne 0x140041f11
mov r8, rdi
lea rdx, str.buf_to_small___d__for_packet_recv
mov ecx, 0x580003
call fcn.140028ca0
movsxd rax, ebx
jmp 0x140041f3a
lea r9, str.invalid_type:__d
mov dword [rsp + 0x20], eax
mov r8d, 0x75c
lea rdx, str.vsock_recv
mov ecx, 0x580202
call fcn.140028ed0
cdqe
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
lea rdx, str.recv_from_non_packet_socket
mov ecx, 0x580000
call fcn.140029170
int3
Function at 0x140045140
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbx
push rdi
push r14
sub rsp, 0x2c0
mov r14, r8
lea rcx, [rsp + 0x2d8]
mov rbx, rdx
lea r8, [0x140048470]
sub rcx, 8
lea rdx, [rsp + 0x30]
mov rdi, r9
call fcn.140025060
xor edx, edx
mov qword [rsp + 0x30], rax
lea rcx, str.read
mov qword [rsp + 0x80], rdx
mov qword [rsp + 0x68], rcx
lea rcx, str.write
mov qword [rsp + 0x70], rcx
lea rcx, str.except
mov qword [rsp + 0x78], rcx
xor ecx, ecx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x38], rcx
test rbx, rbx
je 0x140045370
mov qword [rsp + 0x2e0], rbp
mov rax, rbx
mov qword [rsp + 0x2b8], rsi
mov ebp, edx
mov qword [rsp + 0x2b0], r12
mov qword [rsp + 0x2a8], r13
mov qword [rsp + 0x2a0], r15
cmp dword [rax], 0
mov esi, edx
jbe 0x140045331
mov r15, qword [rsp + rbp + 0x48]
lea r12, [rsp + 0x90]
cmp rax, rdi
lea r13, [rsp + 0x90]
lea rcx, [rsp + 0x90]
cmovne r12, rdx
cmp rax, r14
lea r14, [rax + 8]
cmovne r13, rdx
cmp rax, rbx
cmovne rcx, rdx
mov qword [rsp + 0x40], rcx
nop word [rax + rax]
movsxd rdi, dword [r14]
lea rax, [rsp + 0x38]
mov rdx, rcx
mov qword [rsp + 0x98], rdi
mov ecx, 1
mov qword [rsp + 0x20], rax
mov r9, r12
mov dword [rsp + 0x90], 1
mov r8, r13
call qword [sym.imp.WS2_32.dll_select]
movsxd rcx, eax
call fcn.140172320
test eax, eax
jns 0x140045303
lea rcx, [0x140272f60]
call sub.KERNEL32.dll_EnterCriticalSection
mov edx, dword [0x140272f90]
xor eax, eax
mov r8, qword [0x140272fe0]
xor ebx, ebx
test edx, edx
jle 0x1400452c8
mov rcx, qword [r8 + rax*8]
test rcx, rcx
je 0x1400452c8
cmp dword [rcx + 0x70], edi
je 0x1400452c8
inc ebx
inc rax
cmp ebx, edx
jl 0x1400452b1
cmp ebx, edx
je 0x1400452d3
cmp qword [r8 + rax*8], 0
jne 0x1400452d6
or ebx, 0xffffffff
lea rcx, [0x140272f60]
call fcn.14002ec90
mov r8, qword [rsp + rbp + 0x68]
lea rdx, str._s__d__osfd_d_vfd_d_
mov rcx, qword [rsp + 0x30]
mov r9d, esi
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], edi
call fcn.140025d00
mov rcx, qword [rsp + 0x40]
inc esi
add r14, 8
cmp esi, dword [r15]
jb 0x140045250
mov rbx, qword [rsp + 0x2e8]
xor edx, edx
mov rdi, qword [rsp + 0x2f8]
mov r14, qword [rsp + 0x2f0]
mov rax, qword [rsp + rbp + 0x50]
add rbp, 8
test rax, rax
jne 0x140045204
mov rax, qword [rsp + 0x30]
mov r15, qword [rsp + 0x2a0]
mov r13, qword [rsp + 0x2a8]
mov r12, qword [rsp + 0x2b0]
mov rsi, qword [rsp + 0x2b8]
mov rbp, qword [rsp + 0x2e0]
lea rdx, [0x14019ab78]
mov rcx, rax
call fcn.140026790
mov r8, qword [rsp + 0x30]
lea rdx, str.vsock_select__:_a_member_of_fd_set_was_invalid:__s
mov ecx, 0x580000
mov r8, qword [r8]
call fcn.140029170
int3
Function at 0x1400454a0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rax, qword gs:[0x58]
mov rbx, rcx
mov esi, 0x2fe0
add rsi, qword [rax]
mov rax, qword [rsi]
test rax, rax
jne 0x1400454cc
call fcn.140176664
mov r14d, dword [rax]
xor ecx, ecx
mov rax, qword [rbx + 0x138]
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rcx
mov rax, qword [rbx + 0x138]
mov qword [rax + 0x18], rbx
lock inc dword [rbx + 0x120]
mov rcx, qword [rbx + 0x80]
or dword [rbx + 0x68], 0x400
call fcn.14004ea10
mov rcx, qword [rbx + 0x80]
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x70]
call fcn.14004e940
mov rcx, rbx
call fcn.14004aae0
movsxd rcx, dword [rbx + 0x70]
lea rax, [0x140043440]
mov r9, qword [rbx + 0x138]
mov r8d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
movsxd rcx, eax
call fcn.140172320
xor edi, edi
mov rbp, rax
test eax, eax
jne 0x140045657
mov rax, qword [rsi]
test rax, rax
jne 0x140045578
call fcn.140176664
mov ecx, dword [rax]
mov edx, 4
mov dword [rsp + 0x28], reloc.WS2_32.dll_setsockopt
mov r9d, 0xe8
mov dword [rsp + 0x20], 6
lea r8d, [rdx - 3]
call fcn.1400415e0
test eax, eax
je 0x14004567a
lea rcx, [0x140272f60]
call sub.KERNEL32.dll_EnterCriticalSection
cmp rbx, qword [0x140272fa8]
mov rcx, qword [rbx + 0xf0]
jne 0x1400455cb
mov qword [0x140272fa8], rcx
jmp 0x1400455e0
mov rax, qword [rbx + 0xf8]
mov qword [rax + 0xf0], rcx
mov rcx, qword [0x140272fa8]
mov rdx, qword [rbx + 0xf0]
test rdx, rdx
je 0x1400455fc
mov rax, qword [rbx + 0xf8]
mov qword [rdx + 0xf8], rax
jmp 0x14004560f
test rcx, rcx
je 0x14004560f
mov rax, qword [rbx + 0xf8]
mov qword [rcx + 0xf8], rax
lea rcx, [0x140272f60]
mov qword [rbx + 0xf0], rdi
mov qword [rbx + 0xf8], rdi
call fcn.14002ec90
or dword [rbx + 0x68], 0x4100000
mov rcx, rbx
call fcn.14004ab80
and dword [rbx + 0x68], 0xfffffbff
or eax, 0xffffffff
lock xadd dword [rbx + 0x120], eax
cmp eax, 1
jne 0x140045657
mov rcx, rbx
call fcn.140042af0
mov rax, qword [rsi]
test rax, rax
jne 0x140045664
call fcn.140176664
test ebp, ebp
mov dword [rax], r14d
sete dil
mov eax, edi
add rsp, 0x30
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
lea rdx, str.cant_read_from_handle:__m
mov ecx, 0x580000
call fcn.140029170
int3
Function at 0x140045690
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
xor ecx, ecx
mov rax, qword [rbx + 0x138]
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rcx
mov rax, qword [rbx + 0x138]
mov qword [rax + 0x18], rbx
lock inc dword [rbx + 0x120]
or dword [rbx + 0x68], 0x400
mov rcx, rbx
call fcn.14004aae0
movsxd rcx, dword [rbx + 0x70]
lea rax, [0x140043440]
mov r9, qword [rbx + 0x138]
lea rdx, [rbx + 0x164]
mov r8d, 1
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
movsxd rdi, eax
mov rcx, rdi
call fcn.140172320
test rax, rax
jne 0x140045753
mov rcx, qword gs:[0x58]
mov eax, 0x2fe0
mov rdx, qword [rcx]
mov rax, qword [rax + rdx]
test rax, rax
jne 0x14004572f
call fcn.140176664
mov ecx, dword [rax]
mov edx, 3
mov dword [rsp + 0x20], 6
lea r9d, [rdx + 0x6a]
lea r8d, [r9 + 0x7b]
call fcn.1400415e0
test eax, eax
je 0x140045819
test edi, edi
jne 0x14004580e
lea rcx, [0x140272f60]
call sub.KERNEL32.dll_EnterCriticalSection
cmp rbx, qword [0x140272fa8]
mov rcx, qword [rbx + 0xf0]
jne 0x140045780
mov qword [0x140272fa8], rcx
jmp 0x140045795
mov rax, qword [rbx + 0xf8]
mov qword [rax + 0xf0], rcx
mov rcx, qword [0x140272fa8]
mov rdx, qword [rbx + 0xf0]
test rdx, rdx
je 0x1400457b1
mov rax, qword [rbx + 0xf8]
mov qword [rdx + 0xf8], rax
jmp 0x1400457c4
test rcx, rcx
je 0x1400457c4
mov rax, qword [rbx + 0xf8]
mov qword [rcx + 0xf8], rax
xor eax, eax
lea rcx, [0x140272f60]
mov qword [rbx + 0xf0], rax
mov qword [rbx + 0xf8], rax
call fcn.14002ec90
and dword [rbx + 0x68], 0xfffffbff
or eax, 0xffffffff
lock xadd dword [rbx + 0x120], eax
cmp eax, 1
jne 0x1400457ff
mov rcx, rbx
call fcn.140042af0
or dword [rbx + 0x68], 0x100000
mov rcx, rbx
call fcn.14004ab80
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
lea rdx, str.cant_read_from_handle:__m
mov ecx, 0x580000
call fcn.140029170
int3