joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400de5a0
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x4b8
mov rax, qword [0x14032d990]
xor rax, rsp
mov qword [rsp + 0x4a0], rax
mov dword [rsp + 0x290], 0
mov dword [rsp + 0x40], 0
jmp 0x1400de5e4
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x290]
cmp dword [rsp + 0x40], eax
jae 0x1400de60b
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x4d0]
cmp qword [rsp + rax*8 + 0x298], rcx
jne 0x1400de609
jmp 0x1400de60b
jmp 0x1400de5da
mov eax, dword [rsp + 0x290]
cmp dword [rsp + 0x40], eax
jne 0x1400de646
cmp dword [rsp + 0x290], 0x40
jae 0x1400de646
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x4d0]
mov qword [rsp + rax*8 + 0x298], rcx
mov eax, dword [rsp + 0x290]
inc eax
mov dword [rsp + 0x290], eax
xor eax, eax
test eax, eax
jne 0x1400de5d0
mov dword [rsp + 0x80], 0
mov dword [rsp + 0x44], 0
jmp 0x1400de66b
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x80]
cmp dword [rsp + 0x44], eax
jae 0x1400de692
mov eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x4d0]
cmp qword [rsp + rax*8 + 0x88], rcx
jne 0x1400de690
jmp 0x1400de692
jmp 0x1400de661
mov eax, dword [rsp + 0x80]
cmp dword [rsp + 0x44], eax
jne 0x1400de6cd
cmp dword [rsp + 0x80], 0x40
jae 0x1400de6cd
mov eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x4d0]
mov qword [rsp + rax*8 + 0x88], rcx
mov eax, dword [rsp + 0x80]
inc eax
mov dword [rsp + 0x80], eax
xor eax, eax
test eax, eax
jne 0x1400de657
mov dword [rsp + 0x68], 0
mov dword [rsp + 0x6c], 0
mov rax, qword [rsp + 0x4d0]
inc rax
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x80]
lea r8, [rsp + 0x290]
xor edx, edx
mov ecx, eax
call qword [sym.imp.WS2_32.dll_select]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
jne 0x1400de724
xor al, al
jmp 0x1400de7c7
mov dword [rsp + 0x60], 0
mov qword [rsp + 0x70], 4
mov rax, qword [rsp + 0x4d8]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x1007
mov r8d, 0xffff
xor edx, edx
mov rcx, qword [rsp + 0x4d0]
call fcn.1400db080
test eax, eax
jne 0x1400de7c5
cmp dword [rsp + 0x60], 0
je 0x1400de7a6
call fcn.1400daf60
mov r8, rax
mov edx, dword [rsp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.1400aadd0
mov rdi, qword [rsp + 0x4d8]
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
jmp 0x1400de7c5
mov rcx, qword [rsp + 0x4d8]
call fcn.1400e8520
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0x4d8]
call fcn.1400cb680
mov al, 1
mov rcx, qword [rsp + 0x4a0]
xor rcx, rsp
call fcn.14020f8d0
add rsp, 0x4b8
pop rdi
pop rsi
ret
Function at 0x1400dfbe0
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
sub rsp, 0x278
mov rax, qword [0x14032d990]
xor rax, rsp
mov qword [rsp + 0x260], rax
cmp qword [rsp + 0x280], 0xffffffffffffffff
jne 0x1400dfc33
mov edx, 0x2719
mov rcx, qword [rsp + 0x298]
call fcn.14007a060
mov eax, 0xffffffff
jmp 0x1400dfd97
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x34], 0
jmp 0x1400dfc4f
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x34], eax
jae 0x1400dfc70
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x280]
cmp qword [rsp + rax*8 + 0x58], rcx
jne 0x1400dfc6e
jmp 0x1400dfc70
jmp 0x1400dfc45
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x34], eax
jne 0x1400dfc9c
cmp dword [rsp + 0x50], 0x40
jae 0x1400dfc9c
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x280]
mov qword [rsp + rax*8 + 0x58], rcx
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
xor eax, eax
test eax, eax
jne 0x1400dfc3b
movzx eax, byte [rsp + 0x288]
and eax, 1
test eax, eax
je 0x1400dfccd
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x4c], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x40], rax
jmp 0x1400dfd1a
cmp dword [rsp + 0x290], 0
jl 0x1400dfd11
mov eax, dword [rsp + 0x290]
cdq
mov ecx, 0x3e8
idiv ecx
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x290]
cdq
mov ecx, 0x3e8
idiv ecx
mov eax, edx
imul eax, eax, 0x3e8
mov dword [rsp + 0x4c], eax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x40], rax
jmp 0x1400dfd1a
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x280]
inc rax
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov ecx, eax
call qword [sym.imp.WS2_32.dll_select]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jge 0x1400dfd54
mov byte [rsp + 0x30], 1
jmp 0x1400dfd59
mov byte [rsp + 0x30], 0
movzx edx, byte [rsp + 0x30]
mov rcx, qword [rsp + 0x298]
call fcn.1400dab00
cmp dword [rsp + 0x38], 0
jne 0x1400dfd93
movzx eax, byte [rsp + 0x288]
and eax, 1
test eax, eax
je 0x1400dfd93
mov edx, 0x2733
mov rcx, qword [rsp + 0x298]
call fcn.14007a060
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14020f8d0
add rsp, 0x278
ret
Function at 0x1400dfdb0
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
sub rsp, 0x278
mov rax, qword [0x14032d990]
xor rax, rsp
mov qword [rsp + 0x260], rax
cmp qword [rsp + 0x280], 0xffffffffffffffff
jne 0x1400dfe03
mov edx, 0x2719
mov rcx, qword [rsp + 0x298]
call fcn.14007a060
mov eax, 0xffffffff
jmp 0x1400dff66
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x34], 0
jmp 0x1400dfe1f
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x34], eax
jae 0x1400dfe40
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x280]
cmp qword [rsp + rax*8 + 0x58], rcx
jne 0x1400dfe3e
jmp 0x1400dfe40
jmp 0x1400dfe15
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x34], eax
jne 0x1400dfe6c
cmp dword [rsp + 0x50], 0x40
jae 0x1400dfe6c
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x280]
mov qword [rsp + rax*8 + 0x58], rcx
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
xor eax, eax
test eax, eax
jne 0x1400dfe0b
movzx eax, byte [rsp + 0x288]
and eax, 1
test eax, eax
je 0x1400dfe9d
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x4c], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x40], rax
jmp 0x1400dfeea
cmp dword [rsp + 0x290], 0
jl 0x1400dfee1
mov eax, dword [rsp + 0x290]
cdq
mov ecx, 0x3e8
idiv ecx
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x290]
cdq
mov ecx, 0x3e8
idiv ecx
mov eax, edx
imul eax, eax, 0x3e8
mov dword [rsp + 0x4c], eax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x40], rax
jmp 0x1400dfeea
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x280]
inc rax
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
lea r8, [rsp + 0x50]
xor edx, edx
mov ecx, eax
call qword [sym.imp.WS2_32.dll_select]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jge 0x1400dff23
mov byte [rsp + 0x30], 1
jmp 0x1400dff28
mov byte [rsp + 0x30], 0
movzx edx, byte [rsp + 0x30]
mov rcx, qword [rsp + 0x298]
call fcn.1400dab00
cmp dword [rsp + 0x38], 0
jne 0x1400dff62
movzx eax, byte [rsp + 0x288]
and eax, 1
test eax, eax
je 0x1400dff62
mov edx, 0x2733
mov rcx, qword [rsp + 0x298]
call fcn.14007a060
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14020f8d0
add rsp, 0x278
ret
Function at 0x1400e1bb0
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, 0x68
mov rax, qword [0x14032d990]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x48], 0
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x4c], eax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.WS2_32.dll_WSARecv]
mov dword [rsp + 0x40], eax
mov dl, 1
mov rcx, qword [rsp + 0x90]
call fcn.1400dab00
mov rcx, qword [rsp + 0x90]
call fcn.1400d9680
cmp eax, 0x40
jne 0x1400e1c64
mov edx, 0x2746
mov rcx, qword [rsp + 0x90]
call fcn.14007a060
jmp 0x1400e1cbc
mov rcx, qword [rsp + 0x90]
call fcn.1400d9680
cmp eax, 0x4d2
jne 0x1400e1c8c
mov edx, 0x274d
mov rcx, qword [rsp + 0x90]
call fcn.14007a060
jmp 0x1400e1cbc
mov rcx, qword [rsp + 0x90]
call fcn.1400d9680
cmp eax, 0x2738
je 0x1400e1cb4
mov rcx, qword [rsp + 0x90]
call fcn.1400d9680
cmp eax, 0xea
jne 0x1400e1cbc
mov dword [rsp + 0x40], 0
cmp dword [rsp + 0x40], 0
je 0x1400e1cca
mov eax, 0xffffffff
jmp 0x1400e1ced
mov rcx, qword [rsp + 0x90]
call fcn.1400e8520
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0x90]
call fcn.1400cb680
mov eax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14020f8d0
add rsp, 0x68
ret

Function at 0x1400e6f70
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 0x1400e700b
cmp qword [rsp + 0x60], 0
jne 0x1400e700b
cmp qword [rsp + 0x68], 0
jne 0x1400e700b
cmp qword [rsp + 0x70], 0
je 0x1400e700b
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 0x1400e6fe1
mov dword [rsp + 0x34], 1
mov ecx, dword [rsp + 0x34]
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsp + 0x78]
call fcn.1400e8520
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0x78]
call fcn.1400cb680
xor eax, eax
jmp 0x1400e708f
cmp qword [rsp + 0x70], 0
je 0x1400e7042
mov rax, qword [rsp + 0x70]
cmp dword [rax], 0
jne 0x1400e7042
mov rax, qword [rsp + 0x70]
cmp dword [rax + 4], 0
jle 0x1400e7042
mov rax, qword [rsp + 0x70]
cmp dword [rax + 4], 0x3e8
jge 0x1400e7042
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 0x1400e7077
mov byte [rsp + 0x30], 1
jmp 0x1400e707c
mov byte [rsp + 0x30], 0
movzx edx, byte [rsp + 0x30]
mov rcx, qword [rsp + 0x78]
call fcn.1400dab00
mov eax, dword [rsp + 0x38]
add rsp, 0x48
ret
Function at 0x1400e7110
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, 0x68
mov rax, qword [0x14032d990]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x4c], 0
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0x4c]
mov r8d, dword [rsp + 0x44]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.WS2_32.dll_WSASend]
mov dword [rsp + 0x48], eax
mov dl, 1
mov rcx, qword [rsp + 0x90]
call fcn.1400dab00
mov rcx, qword [rsp + 0x90]
call fcn.1400d9680
cmp eax, 0x40
jne 0x1400e71c2
mov edx, 0x2746
mov rcx, qword [rsp + 0x90]
call fcn.14007a060
jmp 0x1400e71e8
mov rcx, qword [rsp + 0x90]
call fcn.1400d9680
cmp eax, 0x4d2
jne 0x1400e71e8
mov edx, 0x274d
mov rcx, qword [rsp + 0x90]
call fcn.14007a060
cmp dword [rsp + 0x48], 0
je 0x1400e71f6
mov eax, 0xffffffff
jmp 0x1400e7219
mov rcx, qword [rsp + 0x90]
call fcn.1400e8520
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0x90]
call fcn.1400cb680
mov eax, dword [rsp + 0x4c]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14020f8d0
add rsp, 0x68
ret

Function at 0x1400e7640
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, 0x48
mov rax, qword [0x14032d990]
xor rax, rsp
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x50], 0xffffffffffffffff
jne 0x1400e7685
mov edx, 0x2719
mov rcx, qword [rsp + 0x68]
call fcn.14007a060
xor al, al
jmp 0x1400e774d
movzx eax, byte [rsp + 0x60]
test eax, eax
jne 0x1400e76b3
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax]
and eax, 1
test eax, eax
je 0x1400e76b3
mov edx, 0x2726
mov rcx, qword [rsp + 0x68]
call fcn.14007a060
xor al, al
jmp 0x1400e774d
movzx eax, byte [rsp + 0x60]
test eax, eax
je 0x1400e76c6
mov dword [rsp + 0x24], 1
jmp 0x1400e76ce
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 + 0x50]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
jge 0x1400e76fd
mov byte [rsp + 0x20], 1
jmp 0x1400e7702
mov byte [rsp + 0x20], 0
movzx edx, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x68]
call fcn.1400dab00
cmp dword [rsp + 0x28], 0
jl 0x1400e774b
movzx eax, byte [rsp + 0x60]
test eax, eax
je 0x1400e7735
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax]
or eax, 2
mov rcx, qword [rsp + 0x58]
mov byte [rcx], al
jmp 0x1400e7747
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax]
and eax, 0xfffffffd
mov rcx, qword [rsp + 0x58]
mov byte [rcx], al
mov al, 1
jmp 0x1400e774d
xor al, al
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14020f8d0
add rsp, 0x48
ret
Function at 0x1400e8550
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, 0x58
mov rax, qword [0x14032d990]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, dword [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0xffffffffffffffff
jne 0x1400e85af
mov byte [rsp + 0x30], 1
jmp 0x1400e85b4
mov byte [rsp + 0x30], 0
movzx edx, byte [rsp + 0x30]
mov rcx, qword [rsp + 0x78]
call fcn.1400dab00
cmp qword [rsp + 0x38], 0xffffffffffffffff
jne 0x1400e85d2
mov rax, qword [rsp + 0x38]
jmp 0x1400e8609
cmp dword [rsp + 0x60], 0x17
jne 0x1400e8604
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x40]
mov r8d, 0x1b
mov edx, 0x29
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14020f8d0
add rsp, 0x58
ret

Function at 0x1400e8f80
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, 0x68
mov rax, qword [0x14032d990]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call fcn.1400939c0
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call fcn.1400ec5e0
movzx eax, byte [rsp + 0x98]
test eax, eax
je 0x1400e8ff1
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0xa0]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call fcn.1400de9a0
jmp 0x1400e90fb
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call fcn.1400dc210
movzx eax, al
test eax, eax
jne 0x1400e902b
xor r9d, r9d
mov r8d, 0x2719
mov rdx, qword [rsp + 0xa0]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call fcn.1400de9a0
jmp 0x1400e90fb
mov dword [rsp + 0x48], 0
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x4c], eax
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov rax, qword [rsp + 0x78]
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_WSARecv]
mov dword [rsp + 0x44], eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0x40
jne 0x1400e90a0
mov dword [rsp + 0x40], 0x2746
jmp 0x1400e90b2
cmp dword [rsp + 0x40], 0x4d2
jne 0x1400e90b2
mov dword [rsp + 0x40], 0x274d
cmp dword [rsp + 0x44], 0
je 0x1400e90e5
cmp dword [rsp + 0x40], 0x3e5
je 0x1400e90e5
mov r9d, dword [rsp + 0x48]
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0xa0]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call fcn.1400de9a0
jmp 0x1400e90fb
mov rdx, qword [rsp + 0xa0]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call fcn.1400dea80
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14020f8d0
add rsp, 0x68
ret
Function at 0x1400e9110
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, 0x68
mov rax, qword [0x14032d990]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call fcn.1400939c0
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call fcn.1400ec5e0
movzx eax, byte [rsp + 0x98]
test eax, eax
je 0x1400e9181
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0xa0]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call fcn.1400de9a0
jmp 0x1400e9270
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call fcn.1400dc210
movzx eax, al
test eax, eax
jne 0x1400e91bb
xor r9d, r9d
mov r8d, 0x2719
mov rdx, qword [rsp + 0xa0]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call fcn.1400de9a0
jmp 0x1400e9270
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov rax, qword [rsp + 0x78]
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_WSASend]
mov dword [rsp + 0x44], eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0x4d2
jne 0x1400e9227
mov dword [rsp + 0x40], 0x274d
cmp dword [rsp + 0x44], 0
je 0x1400e925a
cmp dword [rsp + 0x40], 0x3e5
je 0x1400e925a
mov r9d, dword [rsp + 0x48]
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0xa0]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call fcn.1400de9a0
jmp 0x1400e9270
mov rdx, qword [rsp + 0xa0]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call fcn.1400dea80
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14020f8d0
add rsp, 0x68
ret
Function at 0x1400e96e0
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 [0x14032d990]
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 0x1400e976d
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.14020f8d0
add rsp, 0x1e8
ret

Function at 0x1400ec510
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x58
mov rax, qword [0x14032d990]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x28], 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
jne 0x1400ec57c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x24], eax
mov edx, reloc.WS2_32.dll_recv
lea rcx, [rsp + 0x30]
call fcn.1400c8640
call fcn.1400daf60
mov r8, rax
mov edx, dword [rsp + 0x24]
lea rcx, [rsp + 0x30]
call fcn.1400aadd0
lea rdx, [0x1402701d0]
lea rcx, [rsp + 0x30]
call fcn.1400ea1e0
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14020f8d0
add rsp, 0x58
ret

Function at 0x1400ed630
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 3
mov edx, 0x80000000
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0xffffffffffffffff
je 0x1400ed6cd
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0xffffffff
jne 0x1400ed6a9
mov dword [rsp + 0x40], 0
cmp qword [rsp + 0x48], 0
je 0x1400ed6cd
cmp qword [rsp + 0x48], 0xffffffffffffffff
je 0x1400ed6cd
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x48], 0
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret
Function at 0x1400ed6e0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x14032d990]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 3
mov edx, 0x80000000
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0xffffffffffffffff
je 0x1400ed7e8
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0xffffffff
jne 0x1400ed77b
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400ed7c4
mov eax, dword [rsp + 0x40]
mov edx, eax
mov rcx, qword [rsp + 0x78]
call fcn.1400e5f70
xor edx, edx
mov rcx, qword [rsp + 0x78]
call fcn.1400b1e50
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov r8d, dword [rsp + 0x40]
mov rdx, rax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400ed7c4
mov dword [rsp + 0x50], 0
cmp qword [rsp + 0x48], 0
je 0x1400ed7e8
cmp qword [rsp + 0x48], 0xffffffffffffffff
je 0x1400ed7e8
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x48], 0
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14020f8d0
add rsp, 0x68
ret

Function at 0x1400ed800
Capabilities:
Read file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x14032d990]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x48], 0
cmp dword [rsp + 0x88], 0
je 0x1400ed919
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 3
mov edx, 0x80000000
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0xffffffffffffffff
je 0x1400ed919
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rsp + 0x80]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1400ed8f5
mov eax, dword [rsp + 0x88]
mov edx, eax
mov rcx, qword [rsp + 0x78]
call fcn.1400e5f70
xor edx, edx
mov rcx, qword [rsp + 0x78]
call fcn.1400b1e50
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x88]
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400ed8f5
mov dword [rsp + 0x48], 0
cmp qword [rsp + 0x40], 0
je 0x1400ed919
cmp qword [rsp + 0x40], 0xffffffffffffffff
je 0x1400ed919
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x40], 0
mov eax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14020f8d0
add rsp, 0x68
ret