joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400eb400
Capabilities:
Send data
Send data on socket

Disassembly:
mov dword [rsp + 0x18], r8d
push rbx
sub rsp, 0x40
mov eax, dword [rcx + 0x58]
mov rbx, rdx
test al, 1
je 0x1400eb41f
mov eax, 0xfffff00d
add rsp, 0x40
pop rbx
ret
bt eax, 0xf
jb 0x1400eb430
mov eax, 0xfffff031
add rsp, 0x40
pop rbx
ret
mov eax, dword [rcx + 0x10]
cmp eax, 7
je 0x1400eb4ce
cmp eax, 0xc
je 0x1400eb47e
cmp eax, 0xe
je 0x1400eb451
mov eax, 0xfffff02a
add rsp, 0x40
pop rbx
ret
cmp dword [rcx + 0x100], 0
ja 0x1400eb4ce
lea r9, [rsp + 0x60]
call fcn.1400e98e0
test eax, eax
je 0x1400eb476
mov ecx, dword [rsp + 0x60]
add rsp, 0x40
pop rbx
jmp fcn.1400f8400
mov eax, dword [rbx]
add rsp, 0x40
pop rbx
ret
cmp dword [rcx + 0x100], 0
ja 0x1400eb4ce
mov rcx, qword [rcx + 0x110]
lea r9, [rsp + 0x60]
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], eax
lea r8d, [rax + 1]
call qword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x1400eb4c4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
add rsp, 0x40
pop rbx
jmp fcn.1400f8400
mov eax, dword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret
mov eax, 0xfffff008
add rsp, 0x40
pop rbx
ret

Function at 0x1400eb650
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x1401ce1d0]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rdx
mov rdi, rcx
test rdx, rdx
jne 0x1400eb684
mov eax, 0xfffff019
jmp 0x1400eb753
lea rdx, [rsp + 0x40]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edx, eax
test eax, eax
jne 0x1400eb6ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400f8400
jmp 0x1400eb753
cmp edx, 0x104
jbe 0x1400eb6be
mov eax, 0xfffff01a
jmp 0x1400eb753
mov rax, rdx
mov qword [rsp + 0x280], rsi
add rax, rax
cmp rax, 0x208
jae 0x1400eb7c9
xor esi, esi
lea ecx, [rdx - 1]
add rcx, rcx
mov word [rsp + rax + 0x40], si
cmp word [rsp + rcx + 0x40], 0x5c
jne 0x1400eb70c
cmp edx, 3
jne 0x1400eb6fa
cmp word [rsp + 0x42], 0x3a
je 0x1400eb70c
cmp rcx, 0x208
jae 0x1400eb7c9
mov word [rsp + rcx + 0x40], si
mov qword [rsp + 0x38], rsi
lea r8, [rsp + 0x40]
mov qword [rsp + 0x30], rsi
mov r9d, 0xffffffff
mov dword [rsp + 0x28], esi
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x1400eb7ae
mov ecx, dword [rbx]
cmp eax, ecx
jle 0x1400eb774
cdqe
mov qword [rbx], rax
mov eax, 0xfffff024
mov rsi, qword [rsp + 0x280]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140128f50
mov rbx, qword [rsp + 0x288]
add rsp, 0x260
pop rdi
ret
mov eax, 0x7fffffff
mov qword [rsp + 0x38], rsi
cmp qword [rbx], rax
lea r8, [rsp + 0x40]
mov qword [rsp + 0x30], rsi
mov r9d, 0xffffffff
cmova ecx, eax
xor edx, edx
mov dword [rsp + 0x28], ecx
mov ecx, 0xfde9
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x1400eb7bd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400f8400
jmp 0x1400eb74b
dec eax
movsxd rcx, eax
xor eax, eax
mov qword [rbx], rcx
jmp 0x1400eb74b
call fcn.140129800
int3
Function at 0x1400eb7d0
Capabilities:
Get memory capacity

Disassembly:
sub rsp, 0x78
mov rax, qword [0x1401ce1d0]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rcx, qword [rsp + 0x28]
mov rdx, 0xffffffffffffffff
test eax, eax
cmove rcx, rdx
mov rax, rcx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140128f50
add rsp, 0x78
ret
Function at 0x1400ec120
Capabilities:
Get common file path
Get session user name

Disassembly:
push rbx
sub rsp, 0x460
mov rax, qword [0x1401ce1d0]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x28]
mov edx, 0x20008
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1400ec16d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400f8400
jmp 0x1400ec270
mov rcx, qword [rsp + 0x28]
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x240]
mov dword [rsp + 0x20], 0x104
call qword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
test eax, eax
jne 0x1400ec1b5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x28]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0x7a
je 0x1400ec1eb
mov ecx, ebx
call fcn.1400f8400
jmp 0x1400ec270
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x101
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x1400ec1f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400ec161
mov eax, 0xfffff027
jmp 0x1400ec270
lea r8, [rbx + 0x18]
mov qword [rsp + 0x480], rdi
mov edx, 0xffffffff
mov qword [rbx + 0x18], 0
lea rcx, [rsp + 0x240]
call fcn.1400ebf50
test eax, eax
jne 0x1400ec268
mov r8, rbx
mov qword [rsp + 0x478], rsi
lea edx, [rax - 1]
mov qword [rbx], 0
lea rcx, [rsp + 0x30]
call fcn.1400ebf50
mov esi, eax
test eax, eax
je 0x1400ec24e
mov rcx, qword [rbx + 0x18]
call fcn.1400e6820
mov eax, esi
jmp 0x1400ec260
mov qword [rbx + 0x10], 0
xor eax, eax
mov qword [rbx + 8], 0xffffffffffffffff
mov rsi, qword [rsp + 0x478]
mov rdi, qword [rsp + 0x480]
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140128f50
add rsp, 0x460
pop rbx
ret
Function at 0x1400ec290
Capabilities:
Query environment variable

Disassembly:
push rsi
mov eax, 0x10060
call fcn.140129ee0
sub rsp, rax
mov rax, qword [0x1401ce1d0]
xor rax, rsp
mov qword [rsp + 0x10050], rax
mov rsi, r8
test r8, r8
je 0x1400ec3da
cmp qword [r8], 0
je 0x1400ec3da
lea rdx, [rsp + 0x40]
lea rcx, [0x1401a4318]
call fcn.1400ec050
test eax, eax
jne 0x1400ec329
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov r8d, 0x7fff
mov qword [rsp + 0x10070], rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rcx, qword [rsp + 0x40]
mov ebx, eax
call fcn.1400e6820
test rbx, rbx
jne 0x1400ec342
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
jne 0x1400ec3c1
mov eax, 0xfffff026
mov rbx, qword [rsp + 0x10070]
mov rcx, qword [rsp + 0x10050]
xor rcx, rsp
call fcn.140128f50
add rsp, 0x10060
pop rsi
ret
xor ebx, ebx
lea r8, [rsp + 0x50]
mov qword [rsp + 0x38], rbx
xor edx, edx
mov qword [rsp + 0x30], rbx
mov ecx, 0xfde9
mov dword [rsp + 0x28], ebx
lea r9d, [rbx - 1]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x1400ec3bb
mov rcx, qword [rsi]
mov eax, eax
cmp rax, rcx
jbe 0x1400ec385
mov qword [rsi], rax
mov eax, 0xfffff024
jmp 0x1400ec321
mov qword [rsp + 0x38], rbx
lea rax, [0x1401dd620]
mov qword [rsp + 0x30], rbx
lea r8, [rsp + 0x50]
mov dword [rsp + 0x28], ecx
mov r9d, 0xffffffff
mov ecx, 0xfde9
mov qword [rsp + 0x20], rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x1400ec3cd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400f8400
jmp 0x1400ec321
lea ecx, [rax - 1]
xor eax, eax
mov qword [rsi], rcx
jmp 0x1400ec321
mov eax, 0xfffff019
jmp 0x1400ec329
Function at 0x1400ed370
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov rsi, rdx
mov rdi, rcx
mov eax, dword [rcx + 0x150]
mov dword [rsp + 0xb0], eax
mov eax, dword [rdx]
and al, 3
cmp al, 1
jne 0x1400ed3d2
mov dword [rcx + 0x14c], 5
mov ecx, 5
call fcn.1400f8400
movsxd rdx, eax
mov qword [rdi + 0x88], rdx
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
cmp byte [rdx + 4], 0
je 0x1400ed3ec
mov dword [rcx + 0x14c], 1
mov ecx, 1
jmp 0x1400ed59a
mov rcx, qword [rcx + 0x180]
cmp rcx, 0xffffffffffffffff
jne 0x1400ed3fd
mov rcx, qword [rdx + 0x18]
mov r15, qword [rdx + 0x10]
xor r13d, r13d
cmp rcx, r15
jl 0x1400ed420
mov qword [rdi + 0x88], r13
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov r8, r13
mov eax, dword [rdi + 0x170]
test eax, eax
je 0x1400ed44f
mov rdx, qword [rdi + 0x178]
mov r9d, eax
nop word [rax + rax]
mov eax, dword [rdx]
add r8, rax
lea rdx, [rdx + 0x10]
sub r9, 1
jne 0x1400ed440
sub r15, rcx
cmp r8, r15
cmovl r15, r8
test r15, r15
je 0x1400ed409
lea rbx, [r15 + rcx]
mov r8d, dword [0x1401ddacc]
mov rax, rcx
cqo
idiv r8
mov rax, rdx
mov qword [rsp + 0x50], rdx
sub rcx, rdx
add rax, r15
mov r8, rcx
shr r8, 0x20
mov qword [rsp + 0x20], rax
mov r9d, ecx
mov edx, 4
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdx, rax
mov qword [rsp + 0xb8], rax
test rax, rax
jne 0x1400ed4c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi + 0x14c], eax
mov ecx, eax
jmp 0x1400ed59a
mov r14, r13
mov r12d, r13d
cmp r12d, dword [rdi + 0x170]
jae 0x1400ed54d
cmp r14, r15
jae 0x1400ed54d
mov dword [rsp + 0x30], r13d
mov ecx, r12d
shl rcx, 4
add rcx, qword [rdi + 0x178]
mov esi, dword [rcx]
mov rax, r15
sub rax, r14
cmp rsi, rax
cmovae rsi, rax
add rdx, r14
add rdx, qword [rsp + 0x50]
mov r8, rsi
mov rcx, qword [rcx + 8]
call fcn.140147a90
nop
add r14, rsi
inc r12d
mov rdx, qword [rsp + 0xb8]
jmp 0x1400ed4c6
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
je 0x1400ed4ad
cmp qword [rdi + 0x180], 0xffffffffffffffff
jne 0x1400ed580
mov rdx, qword [rsp + 0xa8]
mov qword [rdx + 0x18], rbx
mov ecx, dword [rsp + 0xb0]
call fcn.1400ec500
mov qword [rdi + 0x88], r15
cmp r15, 0xffffffffffffffff
jne 0x1400ed5a9
call fcn.14014f0a0
mov ecx, dword [rax]
mov dword [rdi + 0x14c], ecx
call fcn.1400f8400
movsxd rcx, eax
mov qword [rdi + 0x88], rcx
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400ed5c0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x90
mov esi, dword [rcx + 0x150]
mov rdi, rcx
mov rbp, qword [rcx + 0x180]
cmp esi, 0xffffffff
jne 0x1400ed600
mov qword [rcx + 0x88], 0xfffffffffffff00d
mov dword [rcx + 0x14c], 6
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
lea rdx, [rsp + 0x50]
mov ecx, esi
call fcn.1400ec3f0
test eax, eax
je 0x1400ed628
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.1400ed370
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
mov qword [rsp + 0xc0], rbx
mov ecx, esi
mov qword [rsp + 0x80], r13
xor ebx, ebx
mov r13d, ebx
mov qword [rsp + 0x70], r15
call fcn.14014ace8
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x1400ed673
lea ecx, [rbx + 6]
mov dword [rdi + 0x14c], 6
call fcn.1400f8400
movsxd rcx, eax
mov qword [rdi + 0x88], rcx
jmp 0x1400ed789
mov qword [rsp + 0x88], r12
mov qword [rsp + 0x78], r14
cmp rbp, 0xffffffffffffffff
je 0x1400ed6c5
xor eax, eax
lea r8, [rsp + 0xb8]
mov rdx, rbx
mov qword [rsp + 0x30], rax
mov rcx, r15
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
lea r12, [rsp + 0x30]
lea r9d, [rax + 1]
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400ed6c8
mov r13d, 1
jmp 0x1400ed6c8
mov r12, rbx
mov esi, ebx
nop word [rax + rax]
cmp rbp, 0xffffffffffffffff
je 0x1400ed6e7
mov eax, esi
add rax, rbp
mov dword [rsp + 0x40], eax
shr rax, 0x20
mov dword [rsp + 0x44], eax
mov rax, qword [rdi + 0x178]
lea r9, [rsp + 0xb0]
mov ecx, ebx
add rcx, rcx
mov qword [rsp + 0x20], r12
mov r8d, dword [rax + rcx*8]
mov rdx, qword [rax + rcx*8 + 8]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
add esi, dword [rsp + 0xb0]
inc ebx
mov r14d, eax
test eax, eax
je 0x1400ed72a
cmp ebx, dword [rdi + 0x170]
jb 0x1400ed6d0
mov r12, qword [rsp + 0x88]
test r13d, r13d
je 0x1400ed74e
mov rdx, qword [rsp + 0xb8]
xor r9d, r9d
xor r8d, r8d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test r14d, r14d
mov r14, qword [rsp + 0x78]
jne 0x1400ed780
test esi, esi
jne 0x1400ed780
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
je 0x1400ed780
mov ecx, eax
mov dword [rdi + 0x14c], eax
call fcn.1400f8400
movsxd rcx, eax
mov qword [rdi + 0x88], rcx
jmp 0x1400ed789
mov eax, esi
mov qword [rdi + 0x88], rax
mov r13, qword [rsp + 0x80]
mov rbx, qword [rsp + 0xc0]
mov r15, qword [rsp + 0x70]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400ee470
Capabilities:
Check if file exists
Get file attributes

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 rdi, qword [rcx + 0x150]
mov rbp, rcx
mov rcx, rdi
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x1400ee4b3
mov rax, 0xfffffffffffff02c
mov r8d, 0x10b
jmp 0x1400ee5b6
mov ecx, 0x290
call qword [fcn.14014f7c8]
mov rsi, rax
test rax, rax
je 0x1400ee5a9
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x1400ee4d1
test rbx, rbx
jne 0x1400ee4e9
lea r14, [0x1401a43d8]
jmp 0x1400ee508
movzx eax, word [rdi + rbx*2 - 2]
cmp ax, 0x5c
je 0x1400ee501
lea r14, str._s
cmp ax, 0x2f
jne 0x1400ee508
lea r14, [0x1401a43d0]
lea rcx, [rbx*2 + 8]
test rcx, rcx
je 0x1400ee5a9
call qword [fcn.14014f7c8]
mov r15, rax
test rax, rax
je 0x1400ee5a9
lea rdx, [rbx + 3]
mov r9, rdi
mov r8, r14
mov rcx, rax
call fcn.1400eb4e0
lea rdx, [rsi + 0x38]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsi + 0x30], rax
call fcn.14014f0c0
mov rcx, r15
mov ebx, dword [rax]
call qword [fcn.14014f0f4]
call fcn.14014f0c0
mov dword [rax], ebx
cmp qword [rsi + 0x30], 0xffffffffffffffff
jne 0x1400ee58b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1400ee58b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov r8d, eax
call fcn.1400f8400
cdqe
jmp 0x1400ee5b6
mov dword [rsi + 0x288], 0
mov qword [rbp + 0x88], 0
mov qword [rbp + 0x90], rsi
jmp 0x1400ee5fc
mov r8d, ntohs
mov rax, 0xfffffffffffff027
mov dword [rbp + 0x14c], r8d
mov qword [rbp + 0x88], rax
call fcn.14014f0c0
mov rcx, rsi
mov ebx, dword [rax]
call qword [fcn.14014f0f4]
call fcn.14014f0c0
mov dword [rax], ebx
call fcn.14014f0c0
xor ecx, ecx
mov ebx, dword [rax]
call qword [fcn.14014f0f4]
call fcn.14014f0c0
mov dword [rax], ebx
mov qword [rbp + 0x90], 0
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
Function at 0x1400f0fc0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x20], rsi
push r12
push r14
push r15
sub rsp, 0x20
mov r12, r8
mov r15, rdx
mov r14, rcx
test rcx, rcx
jne 0x1400f0ffc
xor esi, esi
test rdx, rdx
je 0x1400f0fe7
mov qword [rdx], rsi
mov qword [r8], rsi
xor eax, eax
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rdi
mov rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp word [rcx + rdi*2], 0
jne 0x1400f1010
mov rbx, rdi
nop dword [rax]
test rbx, rbx
je 0x1400f1039
movzx eax, word [rcx + rbx*2 - 2]
dec rbx
cmp ax, 0x5c
je 0x1400f1039
cmp ax, 0x2f
jne 0x1400f1020
mov qword [rsp + 0x48], rbp
test rbx, rbx
jne 0x1400f1094
test r15, r15
je 0x1400f1086
mov ecx, 0x20a
call qword [fcn.14014f7c8]
mov qword [r15], rax
test rax, rax
je 0x1400f1133
mov rdx, rax
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x1400f1086
mov rcx, qword [r15]
call fcn.1400e6820
xor esi, esi
lea eax, [rbx - 1]
mov qword [r15], rsi
jmp 0x1400f1114
mov rcx, r14
call fcn.14015e1f4
mov qword [r12], rax
jmp 0x1400f1112
xor esi, esi
test r15, r15
je 0x1400f10d2
lea rcx, [rbx*2 + 4]
test rcx, rcx
je 0x1400f10b0
call qword [fcn.14014f7c8]
jmp 0x1400f10b3
mov rax, rsi
mov qword [r15], rax
test rax, rax
je 0x1400f1133
lea r8, [rbx + 1]
mov rdx, r14
mov rcx, rax
call fcn.1401539cc
mov rax, qword [r15]
mov word [rax + rbx*2 + 2], si
sub rdi, rbx
lea rbp, [rdi + rdi]
test rbp, rbp
je 0x1400f10e9
mov rcx, rbp
call qword [fcn.14014f7c8]
jmp 0x1400f10ec
mov rax, rsi
mov qword [r12], rax
test rax, rax
je 0x1400f1133
lea rdx, [r14 + 2]
mov rcx, rax
lea rdx, [rdx + rbx*2]
lea r8, [rdi - 1]
call fcn.1401539cc
mov rax, qword [r12]
mov word [rax + rbp - 2], si
xor eax, eax
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
lea rdx, str.uv__malloc
mov ecx, ntohs
call fcn.1400f8350
int3
Function at 0x1400f2230
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x48
mov rcx, rdx
mov dword [rsp + 0x30], 1
mov edx, 6
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x30]
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x1400f226b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add rsp, 0x48
ret
xor eax, eax
add rsp, 0x48
ret

Function at 0x1400f2280
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rdx
mov dword [rsp + 0x38], 0x3c
mov rcx, rbx
mov dword [rsp + 0x30], 1
lea r9, [rsp + 0x30]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 8
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x1400f22cb
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add rsp, 0x40
pop rbx
ret
cmp dword [rsp + 0x30], 0
je 0x1400f22f6
mov edx, 6
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x38]
mov rcx, rbx
lea r8d, [rdx - 3]
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1400f22bf
xor eax, eax
add rsp, 0x40
pop rbx
ret

Function at 0x1400f2300
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rdx + 0x110], 0xffffffffffffffff
mov esi, r9d
mov rdi, r8
mov dword [rsp + 0x38], 1
mov rbx, rdx
mov rbp, rcx
je 0x1400f233c
mov eax, 0xfffff00e
jmp 0x1400f2415
lea r8, [rsp + 0x38]
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x1400f235f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x1400f2415
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x1400f237e
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400f2415
mov rdx, qword [rbp + 0x38]
xor r9d, r9d
mov r8, rdi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test rax, rax
jne 0x1400f23a3
cmp dword [rsp + 0x50], eax
je 0x1400f2373
or dword [rbx + 0x58], 0x80000
mov ecx, dword [0x1404674a0]
cmp esi, 0x17
mov eax, dword [rbx + 0x58]
cmove ecx, dword [0x14046749c]
bt eax, 0x13
jb 0x1400f23d9
test ecx, ecx
jne 0x1400f23d9
mov dl, 3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileCompletionNotificationModes]
test eax, eax
je 0x1400f2373
or dword [rbx + 0x58], 0x20000
mov eax, dword [rbx + 0x58]
bt eax, 0x18
jae 0x1400f23eb
mov rdx, rdi
call fcn.1400f2230
test eax, eax
jne 0x1400f2415
test dword [rbx + 0x58], 0x2000000
je 0x1400f2400
mov rdx, rdi
call fcn.1400f2280
test eax, eax
jne 0x1400f2415
mov qword [rbx + 0x110], rdi
cmp esi, 0x17
jne 0x1400f2413
or dword [rbx + 0x58], 0x400000
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400f26a0
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 0x1400f271c
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 0x1400f26ee
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x1400f2781
movzx r9d, word [rdi]
mov r8, rsi
mov rcx, qword [rbx + 8]
mov rdx, rbx
mov dword [rsp + 0x20], 0
call fcn.1400f2300
mov ebp, eax
test eax, eax
je 0x1400f271c
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, ebp
jmp 0x1400f2781
cmp word [rdi], 0x17
jne 0x1400f274d
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 0x1400f2778
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2740
jne 0x1400f2781
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 0x1400f2ae0
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
xor eax, eax
lea rbx, [rdx + 0x80]
mov qword [rbx + 0x40], rax
lea r14, [rbx + 0x40]
mov qword [r14 + 8], rax
xor ebp, ebp
mov qword [r14 + 0x10], rax
mov rdi, rdx
mov qword [r14 + 0x18], rax
mov rsi, rcx
or dword [rdx + 0x58], 0x40000
lea rax, [0x140466b60]
mov qword [rsp + 0x48], rax
xor eax, eax
mov qword [r14], rax
mov qword [r14 + 8], rax
mov qword [r14 + 0x10], rax
mov qword [r14 + 0x18], rax
test dword [rdx + 0x58], 0x80000
mov dword [rsp + 0x40], ebp
je 0x1400f2b54
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 0x1400f2bdf
mov eax, dword [rdi + 0x58]
bt eax, 0x11
jae 0x1400f2c47
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 0x1400f2bd2
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 0x1400f2cbd
mov qword [rbx + 0x68], rbx
mov qword [rsi + 0x48], rbx
jmp 0x1400f2cbd
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x1400f2c47
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jg 0x1400f2bfe
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x1400f2c0c
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 0x1400f2c3a
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 0x1400f2cbd
mov qword [rbx + 0x68], rbx
mov qword [rsi + 0x48], rbx
inc dword [rdi + 0x78]
jmp 0x1400f2cbd
or dword [rdi + 0x58], 0x10000
inc dword [rdi + 0x78]
test dword [rdi + 0x58], 0x80000
je 0x1400f2cbd
cmp qword [rbx + 0x78], 0xffffffffffffffff
lea rcx, [rbx + 0x78]
jne 0x1400f2cbd
mov rdx, qword [rbx + 0x70]
lea r8, [0x1400f27a0]
mov dword [rsp + 0x28], 4
mov r9, rbx
mov dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x1400f2cbd
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x1400f2c9f
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400f2cad
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.1400f2200
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret