joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400c72e0
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x58
cmp qword [rsp + 0x78], 0
je 0x1400c731a
mov rax, qword [rsp + 0x78]
movsx eax, byte [rax]
test eax, eax
je 0x1400c731a
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x28], rax
jmp 0x1400c7323
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x80], 0
je 0x1400c7356
mov rax, qword [rsp + 0x80]
movsx eax, byte [rax]
test eax, eax
je 0x1400c7356
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x30], rax
jmp 0x1400c735f
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x80], rax
call fcn.1400bd770
mov r9, qword [rsp + 0x90]
mov r8, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [rsp + 0x20], eax
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x38]
call fcn.1400d20c0
mov rdi, qword [rsp + 0x98]
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x98]
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x70]
add rsp, 0x58
pop rdi
pop rsi
ret

Function at 0x1400c80e0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
cmp qword [rsp + 0x40], 0xffffffffffffffff
jne 0x1400c8116
mov edx, 0x2719
mov rcx, qword [rsp + 0x60]
call fcn.14008f0a0
mov eax, 0xffffffff
jmp 0x1400c8195
mov r8, qword [rsp + 0x58]
mov edx, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jge 0x1400c813c
mov byte [rsp + 0x20], 1
jmp 0x1400c8141
mov byte [rsp + 0x20], 0
movzx edx, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x60]
call fcn.1400c6ca0
cmp dword [rsp + 0x24], 0
jl 0x1400c8191
cmp dword [rsp + 0x50], 0x8004667e
jne 0x1400c8191
mov rax, qword [rsp + 0x58]
cmp dword [rax], 0
je 0x1400c817f
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
or eax, 1
mov rcx, qword [rsp + 0x48]
mov byte [rcx], al
jmp 0x1400c8191
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
and eax, 0xfffffffc
mov rcx, qword [rsp + 0x48]
mov byte [rcx], al
mov eax, dword [rsp + 0x24]
add rsp, 0x38
ret
Function at 0x1400c8880
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
mov r9d, 0xffffffff
xor r8d, r8d
lea rdx, [rsp + 0x20]
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.1400d1c50
movzx eax, al
test eax, eax
je 0x1400c88ec
xor edx, edx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x1400c8919
xor r8d, r8d
mov rax, qword [rsp + 0x40]
mov rdx, qword [rax + 8]
lea rcx, [fcn.1400863f0]
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov edx, 0xffffffff
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add rsp, 0x38
ret
Function at 0x1400c9660
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x4a8
mov rax, qword [0x1404e6228]
xor rax, rsp
mov qword [rsp + 0x490], rax
mov dword [rsp + 0x280], 0
mov dword [rsp + 0x40], 0
jmp 0x1400c96a4
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x280]
cmp dword [rsp + 0x40], eax
jae 0x1400c96cb
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x4c0]
cmp qword [rsp + rax*8 + 0x288], rcx
jne 0x1400c96c9
jmp 0x1400c96cb
jmp 0x1400c969a
mov eax, dword [rsp + 0x280]
cmp dword [rsp + 0x40], eax
jne 0x1400c9706
cmp dword [rsp + 0x280], 0x40
jae 0x1400c9706
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x4c0]
mov qword [rsp + rax*8 + 0x288], rcx
mov eax, dword [rsp + 0x280]
inc eax
mov dword [rsp + 0x280], eax
xor eax, eax
test eax, eax
jne 0x1400c9690
mov dword [rsp + 0x70], 0
mov dword [rsp + 0x44], 0
jmp 0x1400c9728
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x70]
cmp dword [rsp + 0x44], eax
jae 0x1400c9749
mov eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x4c0]
cmp qword [rsp + rax*8 + 0x78], rcx
jne 0x1400c9747
jmp 0x1400c9749
jmp 0x1400c971e
mov eax, dword [rsp + 0x70]
cmp dword [rsp + 0x44], eax
jne 0x1400c9775
cmp dword [rsp + 0x70], 0x40
jae 0x1400c9775
mov eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x4c0]
mov qword [rsp + rax*8 + 0x78], rcx
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
xor eax, eax
test eax, eax
jne 0x1400c9714
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x54], 0
mov rax, qword [rsp + 0x4c0]
inc rax
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x280]
xor edx, edx
mov ecx, eax
call qword [sym.imp.WS2_32.dll_select]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0
jne 0x1400c97c9
xor al, al
jmp 0x1400c986c
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x58], 4
mov rax, qword [rsp + 0x4c8]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x1007
mov r8d, 0xffff
xor edx, edx
mov rcx, qword [rsp + 0x4c0]
call fcn.1400c74a0
test eax, eax
jne 0x1400c986a
cmp dword [rsp + 0x48], 0
je 0x1400c984b
call fcn.1400c6fa0
mov r8, rax
mov edx, dword [rsp + 0x48]
lea rcx, [rsp + 0x60]
call fcn.1400aa390
mov rdi, qword [rsp + 0x4c8]
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
jmp 0x1400c986a
mov rcx, qword [rsp + 0x4c8]
call fcn.140089d00
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0x4c8]
call fcn.1400bc760
mov al, 1
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.1401a6870
add rsp, 0x4a8
pop rdi
pop rsi
ret
Function at 0x1400cb660
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x4c], eax
mov dword [rsp + 0x44], 0
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x48], eax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x4c]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_WSARecv]
mov dword [rsp + 0x40], eax
mov dl, 1
mov rcx, qword [rsp + 0x80]
call fcn.1400c6ca0
mov rcx, qword [rsp + 0x80]
call fcn.1400bc320
cmp eax, 0x40
jne 0x1400cb6ff
mov edx, 0x2746
mov rcx, qword [rsp + 0x80]
call fcn.14008f0a0
jmp 0x1400cb757
mov rcx, qword [rsp + 0x80]
call fcn.1400bc320
cmp eax, 0x4d2
jne 0x1400cb727
mov edx, 0x274d
mov rcx, qword [rsp + 0x80]
call fcn.14008f0a0
jmp 0x1400cb757
mov rcx, qword [rsp + 0x80]
call fcn.1400bc320
cmp eax, 0x2738
je 0x1400cb74f
mov rcx, qword [rsp + 0x80]
call fcn.1400bc320
cmp eax, 0xea
jne 0x1400cb757
mov dword [rsp + 0x40], 0
cmp dword [rsp + 0x40], 0
je 0x1400cb765
mov eax, 0xffffffff
jmp 0x1400cb788
mov rcx, qword [rsp + 0x80]
call fcn.140089d00
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0x80]
call fcn.1400bc760
mov eax, dword [rsp + 0x44]
add rsp, 0x58
ret

Function at 0x1400cef70
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
cmp qword [rsp + 0x58], 0
jne 0x1400cf00b
cmp qword [rsp + 0x60], 0
jne 0x1400cf00b
cmp qword [rsp + 0x68], 0
jne 0x1400cf00b
cmp qword [rsp + 0x70], 0
je 0x1400cf00b
mov rax, qword [rsp + 0x70]
imul eax, dword [rax], 0x3e8
mov dword [rsp + 0x3c], eax
mov rcx, qword [rsp + 0x70]
mov eax, dword [rcx + 4]
cdq
mov ecx, 0x3e8
idiv ecx
mov ecx, dword [rsp + 0x3c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jne 0x1400cefe1
mov dword [rsp + 0x34], 1
mov ecx, dword [rsp + 0x34]
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsp + 0x78]
call fcn.140089d00
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0x78]
call fcn.1400bc760
xor eax, eax
jmp 0x1400cf08f
cmp qword [rsp + 0x70], 0
je 0x1400cf042
mov rax, qword [rsp + 0x70]
cmp dword [rax], 0
jne 0x1400cf042
mov rax, qword [rsp + 0x70]
cmp dword [rax + 4], 0
jle 0x1400cf042
mov rax, qword [rsp + 0x70]
cmp dword [rax + 4], 0x3e8
jge 0x1400cf042
mov rax, qword [rsp + 0x70]
mov dword [rax + 4], 0x3e8
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_select]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jge 0x1400cf077
mov byte [rsp + 0x30], 1
jmp 0x1400cf07c
mov byte [rsp + 0x30], 0
movzx edx, byte [rsp + 0x30]
mov rcx, qword [rsp + 0x78]
call fcn.1400c6ca0
mov eax, dword [rsp + 0x38]
add rsp, 0x48
ret
Function at 0x1400cf0a0
Capabilities:
Send data
Send data on socket

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x40], 0
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x48]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_WSASend]
mov dword [rsp + 0x4c], eax
mov dl, 1
mov rcx, qword [rsp + 0x80]
call fcn.1400c6ca0
mov rcx, qword [rsp + 0x80]
call fcn.1400bc320
cmp eax, 0x40
jne 0x1400cf13d
mov edx, 0x2746
mov rcx, qword [rsp + 0x80]
call fcn.14008f0a0
jmp 0x1400cf163
mov rcx, qword [rsp + 0x80]
call fcn.1400bc320
cmp eax, 0x4d2
jne 0x1400cf163
mov edx, 0x274d
mov rcx, qword [rsp + 0x80]
call fcn.14008f0a0
cmp dword [rsp + 0x4c], 0
je 0x1400cf171
mov eax, 0xffffffff
jmp 0x1400cf194
mov rcx, qword [rsp + 0x80]
call fcn.140089d00
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0x80]
call fcn.1400bc760
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret

Function at 0x1400cf360
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x20], r9
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
cmp qword [rsp + 0x40], 0xffffffffffffffff
jne 0x1400cf396
mov edx, 0x2719
mov rcx, qword [rsp + 0x58]
call fcn.14008f0a0
xor al, al
jmp 0x1400cf45e
movzx eax, byte [rsp + 0x50]
test eax, eax
jne 0x1400cf3c4
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
and eax, 1
test eax, eax
je 0x1400cf3c4
mov edx, 0x2726
mov rcx, qword [rsp + 0x58]
call fcn.14008f0a0
xor al, al
jmp 0x1400cf45e
movzx eax, byte [rsp + 0x50]
test eax, eax
je 0x1400cf3d7
mov dword [rsp + 0x24], 1
jmp 0x1400cf3df
mov dword [rsp + 0x24], 0
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x2c], eax
lea r8, [rsp + 0x2c]
mov edx, 0x8004667e
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
jge 0x1400cf40e
mov byte [rsp + 0x20], 1
jmp 0x1400cf413
mov byte [rsp + 0x20], 0
movzx edx, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x58]
call fcn.1400c6ca0
cmp dword [rsp + 0x28], 0
jl 0x1400cf45c
movzx eax, byte [rsp + 0x50]
test eax, eax
je 0x1400cf446
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
or eax, 2
mov rcx, qword [rsp + 0x48]
mov byte [rcx], al
jmp 0x1400cf458
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
and eax, 0xfffffffd
mov rcx, qword [rsp + 0x48]
mov byte [rcx], al
mov al, 1
jmp 0x1400cf45e
xor al, al
add rsp, 0x38
ret
Function at 0x1400cfe90
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x48
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rsp + 0x60]
mov edx, dword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0xffffffffffffffff
jne 0x1400cfee0
mov byte [rsp + 0x30], 1
jmp 0x1400cfee5
mov byte [rsp + 0x30], 0
movzx edx, byte [rsp + 0x30]
mov rcx, qword [rsp + 0x68]
call fcn.1400c6ca0
cmp qword [rsp + 0x38], 0xffffffffffffffff
jne 0x1400cff03
mov rax, qword [rsp + 0x38]
jmp 0x1400cff3a
cmp dword [rsp + 0x50], 0x17
jne 0x1400cff35
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov r8d, 0x1b
mov edx, 0x29
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rax, qword [rsp + 0x38]
add rsp, 0x48
ret

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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call fcn.140085fd0
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 8]
call fcn.1400d3030
movzx eax, byte [rsp + 0x88]
test eax, eax
je 0x1400d05a2
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x90]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 8]
call fcn.1400c99d0
jmp 0x1400d06a6
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call fcn.1400c8660
movzx eax, al
test eax, eax
jne 0x1400d05dc
xor r9d, r9d
mov r8d, 0x2719
mov rdx, qword [rsp + 0x90]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 8]
call fcn.1400c99d0
jmp 0x1400d06a6
mov dword [rsp + 0x44], 0
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x48], eax
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x78]
mov rdx, qword [rsp + 0x70]
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_WSARecv]
mov dword [rsp + 0x4c], eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0x40
jne 0x1400d064b
mov dword [rsp + 0x40], 0x2746
jmp 0x1400d065d
cmp dword [rsp + 0x40], 0x4d2
jne 0x1400d065d
mov dword [rsp + 0x40], 0x274d
cmp dword [rsp + 0x4c], 0
je 0x1400d0690
cmp dword [rsp + 0x40], 0x3e5
je 0x1400d0690
mov r9d, dword [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x90]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 8]
call fcn.1400c99d0
jmp 0x1400d06a6
mov rdx, qword [rsp + 0x90]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 8]
call fcn.1400c9b80
add rsp, 0x58
ret
Function at 0x1400d0750
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call fcn.140085fd0
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 8]
call fcn.1400d3030
movzx eax, byte [rsp + 0x88]
test eax, eax
je 0x1400d07b2
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x90]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 8]
call fcn.1400c99d0
jmp 0x1400d089b
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call fcn.1400c8660
movzx eax, al
test eax, eax
jne 0x1400d07ec
xor r9d, r9d
mov r8d, 0x2719
mov rdx, qword [rsp + 0x90]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 8]
call fcn.1400c99d0
jmp 0x1400d089b
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x78]
mov rdx, qword [rsp + 0x70]
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_WSASend]
mov dword [rsp + 0x48], eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0x4d2
jne 0x1400d0852
mov dword [rsp + 0x40], 0x274d
cmp dword [rsp + 0x48], 0
je 0x1400d0885
cmp dword [rsp + 0x40], 0x3e5
je 0x1400d0885
mov r9d, dword [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x90]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 8]
call fcn.1400c99d0
jmp 0x1400d089b
mov rdx, qword [rsp + 0x90]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 8]
call fcn.1400c9b80
add rsp, 0x58
ret
Function at 0x1400d0c00
Capabilities:
Initialize winsock library

Disassembly:
mov byte [rsp + 0x18], r8b
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
sub rsp, 0x1e8
mov rax, qword [0x1404e6228]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov rax, qword [rsp + 0x1f0]
mov ecx, 1
lock xadd dword [rax], ecx
inc ecx
mov eax, ecx
cmp eax, 1
jne 0x1400d0c8d
movzx eax, byte [rsp + 0x1f8]
and rax, 0xff
movzx eax, al
movzx ecx, byte [rsp + 0x200]
and rcx, 0xff
movzx ecx, cl
shl ecx, 8
or eax, ecx
lea rdx, [rsp + 0x30]
movzx ecx, ax
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x1f0]
add rax, 4
mov ecx, dword [rsp + 0x20]
xchg dword [rax], ecx
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1401a6870
add rsp, 0x1e8
ret

Function at 0x1400d2f90
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x48
mov dword [rsp + 0x28], 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
jne 0x1400d2fde
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x24], eax
call fcn.1400c6fa0
mov r8, rax
mov edx, dword [rsp + 0x24]
lea rcx, [rsp + 0x30]
call fcn.1400aa390
lea rdx, [0x14031aee8]
lea rcx, [rsp + 0x30]
call fcn.1400d1cd0
mov eax, dword [rsp + 0x20]
add rsp, 0x48
ret
Function at 0x1400e3190
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov r8d, 0x20
xor edx, edx
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsp + 0x70]
movzx eax, word [rax + 0xc]
cmp qword [rsp + 0x80], rax
jb 0x1400e31d4
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x38], rax
jmp 0x1400e323f
mov rax, qword [rsp + 0x70]
movzx eax, word [rax + 0xc]
mov ecx, eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov qword [rsp + 0x38], rax
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x38]
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsp + 0x70]
movzx eax, word [rax + 0xc]
sub rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x38]
add rdx, rcx
mov rcx, rdx
mov r8, rax
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsp + 0x70]
movzx eax, word [rax + 0xc]
mov qword [rsp + 0x80], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, dword [rsp + 0x80]
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x1400e329c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x1400e329c
lea rdx, [0x14031ed78]
mov rcx, qword [rsp + 0x70]
call fcn.1400e3ab0
mov dword [rsp + 0x34], 0xffffffff
jmp 0x1400e32de
mov r9d, 1
lea r8, [rsp + 0x34]
lea rdx, [rsp + 0x40]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x1400e32de
lea rdx, [0x14031ed88]
mov rcx, qword [rsp + 0x70]
call fcn.1400e3ab0
mov dword [rsp + 0x34], 0xffffffff
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x38], rax
je 0x1400e32f4
mov rcx, qword [rsp + 0x38]
call fcn.1402f8b10
mov eax, dword [rsp + 0x34]
add rsp, 0x68
ret
Function at 0x1400e3310
Capabilities:
Read file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x48]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x70]
cmp dword [rax + 0x24], 0
jne 0x1400e33f5
mov rax, qword [rsp + 0x70]
mov dword [rax + 0x24], 1
mov rax, qword [rsp + 0x70]
mov r8, qword [rax + 0x10]
xor edx, edx
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 0x28]
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rax, qword [rsp + 0x70]
add rax, 0x30
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
mov rax, qword [rsp + 0x70]
mov r8d, dword [rax + 0x10]
mov rax, qword [rsp + 0x70]
mov rdx, qword [rax + 0x28]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jne 0x1400e33f5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x1400e33f5
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_CancelIo]
mov rax, qword [rsp + 0x70]
mov dword [rax + 0x24], 0
jmp 0x1400e3539
cmp dword [rsp + 0x88], 0
jl 0x1400e3423
mov edx, dword [rsp + 0x88]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x1400e3423
xor eax, eax
jmp 0x1400e355c
mov rax, qword [rsp + 0x70]
add rax, 0x30
mov r9d, 1
lea r8, [rsp + 0x30]
mov rdx, rax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x70]
mov dword [rax + 0x24], 0
cmp dword [rsp + 0x34], 0
je 0x1400e3539
cmp dword [rsp + 0x30], 0
jbe 0x1400e3539
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx + 0x28]
movsx eax, byte [rcx + rax]
test eax, eax
jne 0x1400e34f1
cmp dword [rsp + 0x30], 0
jbe 0x1400e3499
mov eax, dword [rsp + 0x30]
dec eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
cmp qword [rsp + 0x80], rax
jbe 0x1400e34b2
mov eax, dword [rsp + 0x30]
mov qword [rsp + 0x48], rax
jmp 0x1400e34bf
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x28]
inc rax
mov r9, qword [rsp + 0x38]
mov r8, rax
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x78]
call fcn.1400e2530
jmp 0x1400e3539
mov eax, dword [rsp + 0x30]
cmp qword [rsp + 0x80], rax
jbe 0x1400e350a
mov eax, dword [rsp + 0x30]
mov qword [rsp + 0x50], rax
jmp 0x1400e3517
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov r8, qword [rsp + 0x38]
mov rax, qword [rsp + 0x70]
mov rdx, qword [rax + 0x28]
mov rcx, qword [rsp + 0x78]
call sub.VCRUNTIME140.dll_memcpy
cmp dword [rsp + 0x34], 0
jne 0x1400e3558
lea rdx, [0x14031ed98]
mov rcx, qword [rsp + 0x70]
call fcn.1400e3ab0
mov eax, 0xffffffff
jmp 0x1400e355c
mov eax, dword [rsp + 0x38]
add rsp, 0x68
ret