joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003a660
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x140158280]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
je 0x14003a6a0
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x14003a6a0
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
movzx eax, byte [rsi]
test al, al
je 0x14003a771
mov qword [rsp + 0x270], rbx
mov rcx, rsi
mov rbx, rsi
nop dword [rax]
cmp al, 0x2f
je 0x14003a6c8
cmp al, 0x5c
jne 0x14003a6cb
mov rbx, rcx
movzx eax, byte [rcx + 1]
inc rcx
test al, al
jne 0x14003a6c0
cmp rbx, rsi
je 0x14003a716
sub rbx, rsi
lea rcx, [rsp + 0x130]
mov rdx, rsi
mov r8, rbx
call fcn.14006eda0
cmp rbx, 0x104
jae 0x14003a792
lea rdx, [rsp + 0x130]
mov rcx, rdi
mov byte [rsp + rbx + 0x130], 0
call fcn.14003a660
mov byte [rsp + 0x20], 0
test rdi, rdi
je 0x14003a736
lea rcx, [rsp + 0x20]
or r9, 0xffffffffffffffff
mov r8, rdi
mov edx, 0x104
call fcn.140075a6c
lea rcx, [rsp + 0x20]
or r9, 0xffffffffffffffff
mov r8, rsi
mov edx, 0x104
call fcn.1400755fc
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x14003a769
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov rbx, qword [rsp + 0x270]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14006ed70
mov rsi, qword [rsp + 0x278]
add rsp, 0x250
pop rdi
ret
call fcn.14006eb1c
int3

Function at 0x14003b220
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r14
sub rsp, 0x20
cmp qword [rcx], 0
mov esi, r9d
mov r14d, r8d
mov rbp, rdx
mov rbx, rcx
jne 0x14003b331
cmp dword [rcx + 8], 0xffffffff
jne 0x14003b331
lea rdx, [rcx + 0x150]
mov ecx, 0x104
mov qword [rsp + 0x48], rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
or rax, 0xffffffffffffffff
nop dword [rax + rax]
cmp byte [rbx + rax + 0x151], 0
lea rax, [rax + 1]
jne 0x14003b270
movzx ecx, byte [rax + rbx + 0x14f]
cmp cl, 0x5c
je 0x14003b2ac
cmp cl, 0x2f
je 0x14003b2ac
lea r8, [0x140124db0]
lea rcx, [rbx + 0x150]
or r9, 0xffffffffffffffff
mov edx, 0x104
call fcn.1400758d8
mov rdi, qword [rsp + 0x48]
cmp esi, 1
jne 0x14003b2df
mov r9d, esi
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x14003b2df
mov eax, 0x2000000
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rsi
pop rbp
ret
lea r9, [rsp + 0x40]
mov r8d, esi
mov edx, r14d
mov rcx, rbp
call fcn.14003e2b0
test rax, rax
jne 0x14003b309
mov eax, dword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rsi
pop rbp
ret
mov rcx, rax
call fcn.14003ef50
xor ecx, ecx
mov edx, 0x200
test rax, rax
mov qword [rbx], rax
cmove ecx, edx
mov eax, ecx
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rsi
pop rbp
ret
mov eax, 0x1000000
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rsi
pop rbp
ret
Function at 0x14003e400
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rsi, r8
mov rdi, r9
mov rbp, rdx
mov r10, rcx
imul esi, edx
cmp byte [r9], 0
je 0x14003e450
mov rdx, rcx
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x48]
mov r8d, esi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14003e44a
mov byte [rdi + 0x10], 1
mov eax, dword [rsp + 0x48]
jmp 0x14003e481
mov edx, dword [r9 + 0x2c]
mov ecx, dword [r9 + 0x28]
mov qword [rsp + 0x40], rbx
lea eax, [rdx + rsi]
cmp eax, ecx
jbe 0x14003e468
sub ecx, edx
mov esi, ecx
add rdx, qword [r9 + 0x20]
mov r8d, esi
mov rcx, r10
call fcn.14006eda0
add dword [rdi + 0x2c], esi
mov rbx, qword [rsp + 0x40]
mov eax, esi
mov rsi, qword [rsp + 0x58]
xor edx, edx
div rbp
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14003e640
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 8
mov r10d, r8d
mov r9, rdx
test rdx, rdx
jne 0x14003e656
xor eax, eax
add rsp, 8
ret
mov qword [rsp], rbx
not ecx
lea rbx, [0x140129380]
cmp r10d, 8
jb 0x14003e747
mov r11, r10
shr r11, 3
nop dword [rax]
nop dword [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
shr ecx, 8
xor rdx, rax
add r9, 8
add r10d, 0xfffffff8
movzx eax, dl
mov edx, dword [rbx + rax*4]
xor edx, ecx
movzx ecx, byte [r9 - 7]
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 - 6]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 - 5]
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 - 4]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 - 3]
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 - 2]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 - 1]
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
mov ecx, dword [rbx + rax*4]
xor ecx, edx
dec r11
jne 0x14003e680
test r10d, r10d
je 0x14003e76f
nop dword [rax]
movzx edx, byte [r9]
mov eax, ecx
lea r9, [r9 + 1]
xor rdx, rax
shr eax, 8
movzx r8d, dl
mov ecx, dword [rbx + r8*4]
xor ecx, eax
dec r10d
jne 0x14003e750
mov rbx, qword [rsp]
not ecx
mov eax, ecx
add rsp, 8
ret
Function at 0x14003ed30
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
jne 0x14003ed4e
mov eax, 0xffffff9a
add rsp, 0x28
pop rdi
pop rsi
ret
cmp dword [rcx + 0x1c], 0
je 0x14003ed42
cmp qword [rcx + 0x80], 0
je 0x14003ed63
call fcn.14003e7e0
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x58]
mov rcx, rdi
call fcn.14003f5e0
test eax, eax
je 0x14003ed8a
mov eax, 0xffffff99
add rsp, 0x28
pop rdi
pop rsi
ret
mov ecx, 0xb0
mov qword [rsp + 0x48], rbx
call fcn.140073e64
mov rbx, rax
test rax, rax
jne 0x14003edb0
lea eax, [rbx - 0x68]
mov rbx, qword [rsp + 0x48]
add rsp, 0x28
pop rdi
pop rsi
ret
mov ecx, 0x4000
mov qword [rsp + 0x20], rbp
call fcn.140073e64
mov ecx, dword [rsp + 0x40]
xor ebp, ebp
mov dword [rbx + 0x68], ecx
mov ecx, dword [rsp + 0x50]
mov qword [rbx], rax
mov dword [rbx + 0x70], ebp
mov dword [rbx + 0x6c], ecx
test rax, rax
jne 0x14003edf6
mov rcx, rbx
call fcn.14007084c
mov rbx, qword [rsp + 0x48]
lea eax, [rbp - 0x68]
mov rbp, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
mov dword [rbx + 0x64], ebp
mov eax, dword [rdi + 0x40]
mov ecx, ebp
cmp dword [rdi + 0x38], ecx
mov dword [rbx + 0x78], eax
mov dword [rbx + 0x74], ebp
mov eax, dword [rdi + 0x38]
sete cl
mov dword [rbx + 0x90], eax
mov rax, qword [rdi]
mov qword [rbx + 0x88], rax
mov eax, dword [rdi + 0x10]
mov dword [rbx + 0x24], ebp
mov dword [rbx + 0x94], eax
test ecx, ecx
jne 0x14003ee4d
lea rcx, [rbx + 8]
mov qword [rbx + 0x38], rbp
mov qword [rbx + 0x40], rbp
mov qword [rbx + 0x48], rbp
call fcn.14003c6b0
test eax, eax
jne 0x14003ee4d
mov dword [rbx + 0x64], 1
mov eax, dword [rdi + 0x44]
mov dword [rbx + 0x7c], eax
mov eax, dword [rdi + 0x48]
mov dword [rbx + 0x80], eax
movzx eax, byte [rdi + 0x34]
and al, 1
mov byte [rbx + 0x98], al
mov eax, dword [rdi + 0x34]
shr eax, 3
test al, 1
je 0x14003ee78
movzx eax, byte [rdi + 0x3d]
jmp 0x14003ee7c
movzx eax, byte [rdi + 0x43]
mov byte [rbx + 0xac], al
movzx eax, byte [rbx + 0x98]
neg al
sbb ecx, ecx
and ecx, 0xc
mov dword [rbx + 0xa8], ecx
mov dword [rbx + 0x9c], 0x12345678
mov dword [rbx + 0xa0], 0x23456789
mov dword [rbx + 0xa4], 0x34567890
test rsi, rsi
je 0x14003ef22
lea r8, [0x140129380]
movzx eax, byte [rsi]
test al, al
je 0x14003ef22
mov edx, dword [rbx + 0x9c]
mov ecx, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
mov ecx, dword [r8 + rax*4]
xor ecx, edx
mov edx, dword [rbx + 0xa4]
movzx eax, cl
mov dword [rbx + 0x9c], ecx
add eax, dword [rbx + 0xa0]
imul ecx, eax, 0x8088405
inc ecx
mov dword [rbx + 0xa0], ecx
movzx eax, byte [rbx + 0xa3]
movzx ecx, dl
xor rcx, rax
shr edx, 8
mov eax, dword [r8 + rcx*4]
xor eax, edx
mov dword [rbx + 0xa4], eax
inc rsi
jne 0x14003eec0
mov ecx, dword [rdi + 0x7c]
mov eax, dword [rsp + 0x58]
mov dword [rbx + 0x10], ebp
mov rbp, qword [rsp + 0x20]
add eax, 0x1e
add ecx, eax
xor eax, eax
mov dword [rbx + 0x60], ecx
mov qword [rdi + 0x80], rbx
mov rbx, qword [rsp + 0x48]
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x140040040
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
sub rsp, 0x38
cmp byte [rcx], 0
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x30], rdi
mov edi, 1
mov r14, rdx
mov rbx, rcx
je 0x140040090
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x60]
lea rdx, [rsp + 0x50]
mov r8d, edi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14004008a
mov byte [rbx + 0x10], dil
mov ebp, dword [rsp + 0x60]
jmp 0x1400400c7
mov qword [rsp + 0x68], rsi
mov esi, dword [rcx + 0x2c]
mov ecx, dword [rcx + 0x28]
lea eax, [rsi + 1]
cmp eax, ecx
jbe 0x1400400a6
mov edi, ecx
sub edi, esi
mov rdx, rsi
lea rcx, [rsp + 0x50]
mov r8d, edi
add rdx, qword [rbx + 0x20]
mov ebp, edi
call fcn.14006eda0
lea eax, [rsi + rdi]
mov rsi, qword [rsp + 0x68]
mov dword [rbx + 0x2c], eax
mov rdi, qword [rsp + 0x30]
cmp ebp, 1
mov rbp, qword [rsp + 0x58]
jne 0x1400400e8
movzx eax, byte [rsp + 0x50]
mov dword [r14], eax
xor eax, eax
add rsp, 0x38
pop r14
pop rbx
ret
cmp byte [rbx], 0
je 0x1400400de
cmp byte [rbx + 0x10], 0
je 0x1400400de
or eax, 0xffffffff
add rsp, 0x38
pop r14
pop rbx
ret

Function at 0x1400402a0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov r9d, dword [rcx + 8]
mov r10, rcx
movzx r11d, dl
mov edx, dword [rcx]
mov r8d, r9d
and r8d, 0xfffd
mov ecx, edx
shr edx, 8
or r8d, 2
mov eax, r8d
xor eax, 1
imul eax, r8d
lea r8, [0x140129380]
shr eax, 8
xor r11b, al
movsx rax, r11b
xor rcx, rax
movzx eax, cl
mov ecx, dword [r8 + rax*4]
xor ecx, edx
movzx eax, cl
mov dword [r10], ecx
add eax, dword [r10 + 4]
imul ecx, eax, 0x8088405
inc ecx
mov dword [r10 + 4], ecx
movzx eax, byte [r10 + 7]
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
mov eax, dword [r8 + rcx*4]
xor eax, r9d
mov dword [r10 + 8], eax
movzx eax, r11b
ret
Function at 0x140041310
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1e8]
sub rsp, 0x2c0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140158280]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov rbx, rcx
mov qword [rsp + 0x50], rcx
xor edi, edi
mov dword [rsp + 0x40], edi
call fcn.140016610
mov rcx, rax
mov eax, edi
test rcx, rcx
setne al
test eax, eax
jne 0x14004137d
mov ecx, 0x80004005
call fcn.14000f440
int3
mov rax, qword [rcx]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rbx], rax
mov dword [rsp + 0x40], 1
mov byte [rbp - 0x50], 0
xor edx, edx
mov r8d, 0x1ff
lea rcx, [rbp - 0x4f]
call fcn.140071640
mov dword [rsp + 0x30], 0x200
mov dword [rbp - 0x70], 0x740066
mov dword [rbp - 0x5a], 0x700061
mov dword [rbp - 0x6c], 0x43005c
mov r10d, reloc.WS2_32.dll_WSAGetLastError
mov dword [rbp - 0x76], 0x73006f
mov dword [rsp + 0x78], 0x410057
mov dword [rbp - 0x68], 0x790072
lea r8d, [r10 + 3]
mov dword [rbp - 0x80], 0x4d005c
mov dword [rbp - 0x64], 0x740070
mov dword [rbp - 0x7c], 0x630069
lea r15d, [r10 - 0x22]
mov dword [rbp - 0x60], 0x67006f
mov dword [rsp + 0x7c], 0x450052
mov dword [rsp + 0x70], 0x4f0053
mov word [rbp - 0x78], r8w
mov dword [rsp + 0x74], 0x540046
mov word [rbp - 0x5c], r8w
mov dword [rbp - 0x54], 0x79
mov word [rbp - 0x72], r10w
mov r13d, 0x68
mov word [rbp - 0x56], r13w
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rsp + 0x70]
mov rcx, 0xffffffff80000002
call fcn.140036d90
test eax, eax
jne 0x140041553
mov dword [rsp + 0x60], 0x6e0069
mov dword [rsp + 0x6c], 0x64
mov dword [rsp + 0x64], 0x470065
mov dword [rsp + 0x5a], 0x630061
mov dword [rsp + 0x68], 0x690075
mov word [rsp + 0x58], r15w
mov word [rsp + 0x5e], r13w
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
xor r8d, r8d
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x38]
call fcn.140036f70
test eax, eax
je 0x140041521
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20119
xor r8d, r8d
lea rdx, [rsp + 0x70]
mov rcx, 0xffffffff80000002
call fcn.140036d90
test eax, eax
jne 0x140041553
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
xor r8d, r8d
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x38]
call fcn.140036f70
test eax, eax
jne 0x140041553
lea rax, [rbp - 0x50]
or rcx, 0xffffffffffffffff
nop dword [rax]
inc rcx
cmp word [rax + rcx*2], 0
jne 0x140041530
mov r8d, ecx
lea rdx, [rbp - 0x50]
mov rcx, rbx
call fcn.140042400
mov rcx, qword [rsp + 0x38]
call fcn.1400367f0
mov rax, rbx
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.14006ed70
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140073e08
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140073c70
Function at 0x1400a7580
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x140158280]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov eax, 0x202
mov word [rsp + 0x20], ax
lea rdx, [rsp + 0x30]
movzx ecx, word [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x1400a75c5
mov eax, 2
jmp 0x1400a7634
movzx eax, word [rsp + 0x30]
and rax, 0xff
movzx eax, al
movzx ecx, word [rsp + 0x20]
and rcx, 0xff
movzx ecx, cl
cmp eax, ecx
jne 0x1400a760f
movzx eax, word [rsp + 0x30]
shr rax, 8
and rax, 0xff
movzx eax, al
movzx ecx, word [rsp + 0x20]
shr rcx, 8
and rcx, 0xff
movzx ecx, cl
cmp eax, ecx
je 0x1400a761c
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
jmp 0x1400a7634
call fcn.1400c95d0
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x1400a7632
mov eax, dword [rsp + 0x24]
jmp 0x1400a7634
xor eax, eax
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.14006ed70
add rsp, 0x1e8
ret
Function at 0x1400bd030
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov eax, 0x80
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
movzx eax, byte [rcx + rax + 0x2c0]
test eax, eax
je 0x1400bd067
mov rcx, qword [rsp + 0x40]
call fcn.1400c5010
test eax, eax
jne 0x1400bd065
xor al, al
jmp 0x1400bd0bd
jmp 0x1400bd0bb
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
cmp qword [rcx + rax + 0x238], 0xffffffffffffffff
jne 0x1400bd086
xor al, al
jmp 0x1400bd0bd
mov eax, 8
imul rax, rax, 0
mov r9d, 2
mov r8d, 1
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + rax + 0x238]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x1400bd0bb
xor al, al
jmp 0x1400bd0bd
mov al, 1
add rsp, 0x38
ret
Function at 0x1400bd550
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x34], 0x4020
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x38], 4
cmp dword [0x140168c90], 0
jne 0x1400bd5af
mov r9d, 3
mov r8d, 2
xor edx, edx
mov ecx, 6
call fcn.1400ffdb0
movzx eax, al
test eax, eax
je 0x1400bd5a5
mov dword [0x140168c90], 2
jmp 0x1400bd5af
mov dword [0x140168c90], 1
cmp dword [0x140168c90], 2
jne 0x1400bd5ba
jmp 0x1400bd612
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
mov r8d, 0x1001
mov edx, 0xffff
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1400bd5ef
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x30], eax
jle 0x1400bd5ef
jmp 0x1400bd612
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov r8d, 0x1001
mov edx, 0xffff
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x48
ret

Function at 0x1400bd620
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
mov rax, qword [rax]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x34], 6
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x30]
mov r8d, 1
mov edx, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x1400bd699
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, qword [rsp + 0x50]
call fcn.140101900
mov r8, rax
lea rdx, str.Could_not_set_TCP_NODELAY:__s_n
mov rcx, qword [rsp + 0x38]
call fcn.1400c2b50
jmp 0x1400bd6aa
lea rdx, str.TCP_NODELAY_set_n
mov rcx, qword [rsp + 0x38]
call fcn.1400c2b50
add rsp, 0x48
ret
Function at 0x1400bdf90
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [0x140158280]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x90]
movzx eax, byte [rax + 0x7e4]
test eax, eax
je 0x1400bdfcd
mov dword [rsp + 0x54], 1
jmp 0x1400bdfd5
mov dword [rsp + 0x54], 0
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x50]
mov r8d, 8
mov edx, 0xffff
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x1400be028
mov r8, qword [rsp + 0x98]
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
mov rcx, qword [rsp + 0x90]
call fcn.1400c2b50
jmp 0x1400be0fa
mov dword [rsp + 0x60], 1
mov rax, qword [rsp + 0x90]
mov ecx, dword [rax + 0x7e8]
call fcn.1400dac60
mov dword [rsp + 0x50], eax
imul eax, dword [rsp + 0x50], 0x3e8
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x64], eax
mov rax, qword [rsp + 0x90]
mov ecx, dword [rax + 0x7ec]
call fcn.1400dac60
mov dword [rsp + 0x50], eax
imul eax, dword [rsp + 0x50], 0x3e8
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x68], eax
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rsp + 0x60]
mov edx, 0x98000004
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x1400be0fa
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r9d, eax
mov r8d, dword [rsp + 0x98]
lea rdx, str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
mov rcx, qword [rsp + 0x90]
call fcn.1400c2b50
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14006ed70
add rsp, 0x88
ret
Function at 0x1400be560
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x168
mov rax, qword [0x140158280]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rax, qword [rsp + 0x170]
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x170]
cmp dword [rax + 0xbc], 2
jne 0x1400be5a9
jmp 0x1400be7c4
mov rax, qword [rsp + 0x170]
movzx eax, byte [rax + 0x552]
test eax, eax
jne 0x1400be7b7
mov rax, qword [rsp + 0x170]
movzx eax, byte [rax + 0x56e]
test eax, eax
jne 0x1400be7b7
mov dword [rsp + 0x20], 0x80
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0xd0]
mov rcx, qword [rsp + 0x178]
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x1400be637
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x24], eax
mov edx, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x170]
call fcn.140101900
mov r9, rax
mov r8d, dword [rsp + 0x24]
lea rdx, str.getpeername___failed_with_errno__d:__s
mov rcx, qword [rsp + 0x30]
call fcn.1400c3080
jmp 0x1400be7c4
mov dword [rsp + 0x20], 0x80
mov r8d, 0x80
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.140071640
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x178]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1400be6a6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x28], eax
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x170]
call fcn.140101900
mov r9, rax
mov r8d, dword [rsp + 0x28]
lea rdx, str.getsockname___failed_with_errno__d:__s
mov rcx, qword [rsp + 0x30]
call fcn.1400c3080
jmp 0x1400be7c4
mov rax, qword [rsp + 0x170]
add rax, 0x1b4
mov rcx, qword [rsp + 0x170]
add rcx, 0x186
mov r8, rax
mov rdx, rcx
lea rcx, [rsp + 0xd0]
call fcn.1400bd6c0
movzx eax, al
test eax, eax
jne 0x1400be71c
call fcn.14007769c
mov edx, dword [rax]
mov rcx, qword [rsp + 0x170]
call fcn.140101900
mov qword [rsp + 0x40], rax
call fcn.14007769c
mov rcx, qword [rsp + 0x40]
mov r9, rcx
mov r8d, dword [rax]
lea rdx, str.ssrem_inet_ntop___failed_with_errno__d:__s
mov rcx, qword [rsp + 0x30]
call fcn.1400c3080
jmp 0x1400be7c4
mov rax, qword [rsp + 0x170]
add rax, 0x186
mov rcx, qword [rsp + 0x170]
add rcx, 0x88
mov r8d, reloc.WLDAP32.dll_Ordinal_46
mov rdx, rax
call fcn.14006eda0
mov rax, qword [rsp + 0x170]
add rax, 0x1e8
mov rcx, qword [rsp + 0x170]
add rcx, 0x1b8
mov r8, rax
mov rdx, rcx
lea rcx, [rsp + 0x50]
call fcn.1400bd6c0
movzx eax, al
test eax, eax
jne 0x1400be7b7
call fcn.14007769c
mov edx, dword [rax]
mov rcx, qword [rsp + 0x170]
call fcn.140101900
mov qword [rsp + 0x38], rax
call fcn.14007769c
mov rcx, qword [rsp + 0x38]
mov r9, rcx
mov r8d, dword [rax]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov rcx, qword [rsp + 0x30]
call fcn.1400c3080
jmp 0x1400be7c4
mov rcx, qword [rsp + 0x170]
call fcn.1400be120
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14006ed70
add rsp, 0x168
ret
Function at 0x1400c1f20
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x34], 0
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x2b8], 0
je 0x1400c1f83
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x208]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
mov edx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x50]
call qword [rax + 0x2b8]
mov dword [rsp + 0x34], eax
jmp 0x1400c1ff1
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jl 0x1400c1ff1
cmp dword [rsp + 0x30], 2
jle 0x1400c1f9b
jmp 0x1400c1ff1
movsxd rax, dword [rsp + 0x58]
imul rax, rax, 3
lea rcx, [0x14013b3e8]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x50]
mov r9, qword [rcx + 0x200]
mov r8d, 1
mov edx, 2
mov rcx, rax
call fcn.1400700b0
mov rax, qword [rsp + 0x50]
mov r9, qword [rax + 0x200]
mov r8d, 1
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call fcn.1400700b0
mov eax, dword [rsp + 0x34]
add rsp, 0x48
ret

Function at 0x1400c2000
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, 0x48
xor r9d, r9d
mov r8d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_recv]
cdqe
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0xffffffffffffffff
jne 0x1400c2082
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0x2733
jne 0x1400c205d
mov dword [rsp + 0x20], 1
jmp 0x1400c2065
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x1400c207b
mov eax, 0x51
jmp 0x1400c2091
mov eax, gethostname
jmp 0x1400c2091
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x30]
mov qword [rax], rcx
xor eax, eax
add rsp, 0x48
ret