joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000eda0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [rcx + 0x10]
mov r10d, ecx
and r10d, 7
je 0x14000edd4
cmp ecx, r10d
jge 0x14000edc2
mov rcx, rbx
call fcn.14000e5a0
mov eax, dword [rbx + 0x14]
mov ecx, r10d
shr eax, cl
sub dword [rbx + 0x10], r10d
mov ecx, dword [rbx + 0x10]
mov dword [rbx + 0x14], eax
xor r8d, r8d
mov eax, ecx
test ecx, ecx
jle 0x14000ee0e
mov ecx, dword [rbx + 0x14]
lea rdx, [rsp + 0x30]
movzx r9d, cl
nop dword [rax]
shr ecx, 8
inc r8d
mov byte [rdx], r9b
lea rdx, [rdx + 1]
sub eax, 8
mov dword [rbx + 0x14], ecx
movzx r9d, cl
test eax, eax
jg 0x14000edf0
mov dword [rbx + 0x10], eax
test eax, eax
jns 0x14000ee36
mov rax, qword gs:[0x58]
mov edx, Ordinal_41
mov rcx, qword [rax]
lea rax, str.zlib_corrupt
mov qword [rdx + rcx], rax
xor eax, eax
add rsp, 0x20
pop rbx
ret
movsxd rcx, r8d
cmp rcx, 4
jge 0x14000ee65
mov r8, qword [rbx + 8]
mov rax, qword [rbx]
cmp rax, r8
jb 0x14000ee4f
xor dl, dl
jmp 0x14000ee58
movzx edx, byte [rax]
inc rax
mov qword [rbx], rax
mov byte [rsp + rcx + 0x30], dl
inc rcx
cmp rcx, 4
jl 0x14000ee46
movzx eax, byte [rsp + 0x30]
movzx r8d, byte [rsp + 0x31]
movzx ecx, byte [rsp + 0x33]
shl r8d, 8
add r8d, eax
shl ecx, 8
movzx eax, byte [rsp + 0x32]
add ecx, eax
mov eax, r8d
xor eax, 0xffff
cmp ecx, eax
jne 0x14000ee12
mov rcx, qword [rbx]
mov qword [rsp + 0x38], rdi
mov edi, r8d
add rcx, rdi
cmp rcx, qword [rbx + 8]
jbe 0x14000eecf
mov rax, qword gs:[0x58]
mov edx, Ordinal_41
mov rcx, qword [rax]
lea rax, str.read_past_buffer
mov qword [rdx + rcx], rax
mov rdi, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rdx, qword [rbx + 0x18]
lea rax, [r8 + rdx]
cmp rax, qword [rbx + 0x28]
jbe 0x14000eee9
mov rcx, rbx
call fcn.14000e6f0
test eax, eax
je 0x14000eec2
mov rdx, qword [rbx]
mov r8, rdi
mov rcx, qword [rbx + 0x18]
call fcn.1400f6170
add qword [rbx], rdi
mov eax, 1
add qword [rbx + 0x18], rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
Function at 0x14001d9e0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
movsxd rdi, edx
mov r14, rcx
mov ebx, edi
mov esi, edi
mov ebp, edi
shr ebx, 0x18
mov edx, edi
shr esi, 0x10
mov r8d, edi
shr ebp, 8
mov r9d, edi
shr edx, 8
shr r8d, 0x10
movzx r10d, dil
shr r9d, 0x18
cmp dword [rcx + 0xc8], 0
jg 0x14001da50
mov r8d, 0x70d
lea rdx, str.E:CodecppOcean2Ocean2guiimguiimgui.h
lea rcx, str.Size___0
call fcn.14010101c
movzx r10d, dil
movzx edx, bpl
movzx r8d, sil
movzx r9d, bl
movsxd rcx, dword [r14 + 0xc8]
mov rax, qword [r14 + 0xd0]
mov ebx, dword [rax + rcx*4 - 4]
not ebx
movzx eax, r10b
movzx ecx, bl
lea r10, [0x140209d10]
xor rcx, rax
shr ebx, 8
movzx eax, dl
xor ebx, dword [r10 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, r8b
xor ebx, dword [r10 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, r9b
xor ebx, dword [r10 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
mov rax, qword [0x140237828]
xor ebx, dword [r10 + rcx*4]
not ebx
cmp dword [rax + 0x3e74], ebx
jne 0x14001dac5
mov dword [rax + 0x3e78], ebx
cmp dword [rax + 0x3ec0], ebx
jne 0x14001dad4
mov byte [rax + 0x3ec4], 1
cmp dword [rax + 0x3e5c], ebx
jne 0x14001daeb
mov r8, rdi
mov edx, 4
mov ecx, ebx
call fcn.140031720
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x14002a960
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140234cc0]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x140237828]
mov edi, ecx
cmp byte [rbx + 0x41cd], 0
jne 0x14002a9c1
cmp byte [rbx + 0x41ce], 0
jne 0x14002a9c1
movsx r9d, word [rbx + 0x52ae]
lea r8, str.Tooltip__02d
mov edx, reloc.WS2_32.dll_recv
lea rcx, [rsp + 0x20]
call fcn.14001afa0
test dil, 1
je 0x14002aae8
jmp 0x14002aa4a
movss xmm1, dword [rbx + 0x3830]
lea r8, str.Tooltip__02d
movaps xmm0, xmm1
lea rcx, [rsp + 0x20]
mulss xmm0, dword [0x1402149a4]
xor eax, eax
mulss xmm1, dword [0x140214994]
addss xmm0, dword [rbx + 0xd0c]
lea edx, [rax + 0x10]
addss xmm1, dword [rbx + 0xd10]
mov qword [rbx + 0x3f48], rax
mov dword [rbx + 0x3f34], 1
movss dword [rbx + 0x3f40], xmm0
movss dword [rbx + 0x3f44], xmm1
movss xmm0, dword [rbx + 0x388c]
mulss xmm0, dword [0x1402148f4]
or dword [rbx + 0x3f30], 0x41
movss dword [rbx + 0x3f90], xmm0
movsx r9d, word [rbx + 0x52ae]
call fcn.14001afa0
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x14002aaa0
lea r11, [0x140209d10]
nop word [rax + rax]
cmp r9b, 0x23
jne 0x14002aa83
cmp byte [r8], r9b
jne 0x14002aa83
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x14002aa70
not ecx
call fcn.140022db0
test rax, rax
je 0x14002aae8
cmp byte [rax + 0x8e], 0
je 0x14002aae8
mov byte [rax + 0x95], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xb0], 1
lea rcx, [rsp + 0x20]
inc word [rbx + 0x52ae]
mov edx, reloc.WS2_32.dll_recv
movsx r9d, word [rbx + 0x52ae]
call fcn.14001afa0
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.1400255d0
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400f1ec0
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1400302b0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [0x140237828]
cmp byte [rbx + 0x52f9], 0
jne 0x1400303f2
cmp dword [rbx + 0x5320], 0
je 0x1400302fa
mov r8d, 0x2cfe
lea rdx, str.E:CodecppOcean2Ocean2guiimguiimgui.cpp
lea rcx, str.g.SettingsWindows.empty__
call fcn.14010101c
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x1400303eb
lea rdx, [0x14014405c]
call fcn.14001b0d0
mov rdi, rax
test rax, rax
je 0x1400303eb
mov rcx, rax
call fcn.1400fea70
mov ebp, eax
cmp eax, 0xffffffff
je 0x1400303e3
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 2]
call fcn.1400fef54
test eax, eax
jne 0x1400303e3
mov rcx, rdi
call fcn.1400fea70
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x1400303e3
xor r8d, r8d
mov edx, ebp
mov rcx, rdi
call fcn.1400fef54
test eax, eax
jne 0x1400303e3
cmp rsi, 0xffffffffffffffff
je 0x1400303e3
mov rax, qword [0x140237828]
test rax, rax
je 0x140030385
inc dword [rax + 0xec]
mov rcx, rsi
call fcn.140101128
mov rbp, rax
test rax, rax
je 0x1400303e3
mov r9, rdi
mov r8, rsi
mov edx, 1
mov rcx, rax
call fcn.1401007d0
mov rcx, rdi
cmp rax, rsi
je 0x1400303b7
call fcn.1400fec54
jmp 0x1400303c7
call fcn.1400fec54
mov rdx, rsi
mov rcx, rbp
call fcn.140030590
mov rax, qword [0x140237828]
test rax, rax
je 0x1400303d9
dec dword [rax + 0xec]
mov rcx, rbp
call fcn.14010055c
jmp 0x1400303eb
mov rcx, rdi
call fcn.1400fec54
mov byte [rbx + 0x52f9], 1
movss xmm0, dword [rbx + 0x52fc]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x14003047f
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x52fc], xmm0
jb 0x14003047f
mov rdi, qword [rbx + 0x20]
xor ebp, ebp
test rdi, rdi
je 0x140030472
mov rax, qword [0x140237828]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
mov dword [rax + 0x52fc], ebp
call fcn.140030a80
lea rdx, [0x140211be8]
mov rcx, rdi
mov rsi, rax
call fcn.14001b0d0
mov rdi, rax
test rax, rax
je 0x140030479
mov r8, qword [rsp + 0x30]
lea edx, [rbp + 1]
mov r9, rax
mov rcx, rsi
call fcn.140102110
mov rcx, rdi
call fcn.1400fec54
jmp 0x140030479
mov byte [rbx + 0xd4], 1
mov dword [rbx + 0x52fc], ebp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400524b0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov eax, 0x13e0
call fcn.1400f2b80
sub rsp, rax
mov rax, qword [0x140234cc0]
xor rax, rsp
mov qword [rsp + 0x13d0], rax
call fcn.1400f48e0
mov dword [rsp + 0x44], eax
mov edx, 1
mov dword [rsp + 0x13c4], 0xffffffff
nop dword [rax]
nop word [rax + rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rsp + rdx*4 + 0x44], eax
inc rdx
cmp rdx, 0x270
jb 0x140052500
xor ebx, ebx
mov dword [rsp + 0x40], 0x270
mov edi, 0x80000000
lea esi, [rbx - 1]
lea rcx, [rsp + 0x40]
call fcn.140007060
mov ecx, eax
mov eax, 0xa36e71a3
mul ecx
shr edx, 8
cmp edx, 0xa36e71
jae 0x140052531
mov eax, 0xa36e71a3
mul ecx
shr edx, 8
imul eax, edx, 0x191
sub ecx, eax
movd xmm1, ecx
cvtdq2ps xmm1, xmm1
nop dword [rax + rax]
lea rcx, [rsp + 0x40]
call fcn.140007060
mov ecx, eax
mov eax, 0x75f50b53
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 9
cmp eax, 0x5d7d42
jae 0x140052570
mov eax, 0x75f50b53
movss dword [rsp + 0x28], xmm1
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
mov rdx, qword [0x140237a28]
shr eax, 9
imul eax, eax, 0x2bd
sub ecx, eax
cmp rdx, qword [0x140237a30]
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
movss dword [rsp + 0x24], xmm0
je 0x1400525e6
movsd xmm0, qword [rsp + 0x24]
movsd qword [rdx], xmm0
add qword [0x140237a28], 8
jmp 0x1400525f7
lea r8, [rsp + 0x24]
lea rcx, [0x140237a20]
call fcn.1400528a0
lea rcx, [rsp + 0x40]
call fcn.140007060
mov ecx, eax
and eax, 1
and ecx, 0xfffffffe
lea rcx, [rsp + 0x40]
lea eax, [rax*2 - 1]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
call fcn.140007060
mov rdx, qword [0x140237a40]
mov ecx, eax
and ecx, 0xfffffffe
bt eax, 0
mov eax, 1
movss dword [rsp + 0x30], xmm1
cmovae eax, esi
cmp rdx, qword [0x140237a48]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rsp + 0x2c], xmm0
je 0x140052669
movsd xmm0, qword [rsp + 0x2c]
movsd qword [rdx], xmm0
add qword [0x140237a40], 8
jmp 0x14005267a
lea r8, [rsp + 0x2c]
lea rcx, [0x140237a38]
call fcn.1400528a0
lea rcx, [rsp + 0x40]
call fcn.140007060
mov ecx, eax
and eax, 1
and ecx, 0xfffffffe
lea ecx, [rax - 0x7ffffffd]
cmp ecx, edi
lea eax, [rcx - 0x80000000]
lea edx, [rcx + rdi]
cmovae edx, eax
mov rax, qword [0x140237a58]
cmp rax, qword [0x140237a60]
mov dword [rsp + 0x20], edx
je 0x1400526c0
mov dword [rax], edx
add qword [0x140237a58], 4
jmp 0x1400526d4
lea r8, [rsp + 0x20]
mov rdx, rax
lea rcx, [0x140237a50]
call fcn.140052710
inc ebx
cmp ebx, 0xa
jl 0x140052531
mov rcx, qword [rsp + 0x13d0]
xor rcx, rsp
call fcn.1400f1ec0
lea r11, [rsp + 0x13e0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140068520
Capabilities:
Hash data using djb2

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 0x1505
mov rax, qword [rsp + 0x20]
cmp qword [rsp + 0x50], rax
jae 0x1400685ab
mov rax, qword [rsp + 0x28]
shl rax, 5
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax]
mov byte [rsp + 0x30], al
mov rax, qword [rsp + 0x50]
inc rax
mov qword [rsp + 0x50], rax
movzx ecx, byte [rsp + 0x30]
call fcn.140085e30
movsx rax, al
mov rcx, qword [rsp + 0x28]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
jmp 0x14006854d
xor edx, edx
mov rax, qword [rsp + 0x28]
mov ecx, 0x100
div rcx
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x14007dd40
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
push rdi
sub rsp, 0x40
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 + 0x20], rax
cmp qword [rsp + 0x20], 0xffffffffffffffff
jne 0x14007ddeb
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0x2733
jne 0x14007dd9e
mov dword [rsp + 0x30], 1
jmp 0x14007dda6
mov dword [rsp + 0x30], 0
cmp dword [rsp + 0x30], 0
jne 0x14007ddb7
mov dword [rsp + 0x34], 0
jmp 0x14007ddbf
mov dword [rsp + 0x34], 1
movzx eax, byte [rsp + 0x34]
mov byte [rsp + 0x2c], al
mov rax, qword [rsp + 0x68]
mov qword [rax], 0
movzx eax, byte [rsp + 0x2c]
test eax, eax
je 0x14007dde4
mov eax, 0x51
jmp 0x14007ddfa
mov eax, gethostname
jmp 0x14007ddfa
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x20]
mov qword [rax], rcx
xor eax, eax
add rsp, 0x40
pop rdi
ret

Function at 0x14007dfc0
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x170
lea rdi, [rsp + 0x20]
mov ecx, 0x54
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x180]
mov rax, qword [0x140234cc0]
xor rax, rsp
mov qword [rsp + 0x160], rax
xor eax, eax
test eax, eax
jne 0x14007e006
xor eax, eax
test eax, eax
jne 0x14007e00c
mov rax, qword [rsp + 0x180]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x20], rax
movsxd rax, dword [rsp + 0x188]
mov rcx, qword [rsp + 0x20]
mov rax, qword [rcx + rax*8 + 0x1e8]
mov qword [rsp + 0x28], rax
mov r8d, dword [rsp + 0x188]
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x180]
call fcn.14007e640
test eax, eax
je 0x14007e075
mov rax, qword [rsp + 0x1a0]
mov dword [rax], reloc.WLDAP32.dll_Ordinal_27
mov rax, 0xffffffffffffffff
jmp 0x14007e12d
xor r9d, r9d
mov r8d, dword [rsp + 0x198]
mov rdx, qword [rsp + 0x190]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_send]
cdqe
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x1a0]
mov dword [rax], 0
cmp qword [rsp + 0x30], 0xffffffffffffffff
jne 0x14007e128
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0x2733
jne 0x14007e0dd
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x1a0]
mov dword [rax], 0x51
jmp 0x14007e128
mov r8d, 0x100
lea rdx, [rsp + 0x50]
mov ecx, dword [rsp + 0x38]
call fcn.1400a20a0
mov r8, rax
lea rdx, str.Send_failure:__s
mov rcx, qword [rsp + 0x180]
call fcn.14007da70
mov rax, qword [rsp + 0x180]
mov ecx, dword [rsp + 0x38]
mov dword [rax + 0xdec], ecx
mov rax, qword [rsp + 0x1a0]
mov dword [rax], gethostname
mov rax, qword [rsp + 0x30]
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.1400f2a80
mov rax, rdi
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1400f1ec0
add rsp, 0x170
pop rdi
ret
Function at 0x14007e640
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
movsxd rax, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx + rax*8 + 0x1e8]
mov qword [rsp + 0x20], rax
movsxd rax, dword [rsp + 0x70]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x68]
lea rax, [rcx + rax + 0x230]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x10]
mov rax, qword [rax + 8]
sub rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x68]
mov rax, qword [rax + 0x418]
mov eax, dword [rax + 0x84]
and eax, 3
test eax, eax
je 0x14007e810
movsxd rax, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
lea rdx, [0x14007de10]
cmp qword [rcx + rax*8 + 0x210], rdx
jne 0x14007e810
mov rax, qword [rsp + 0x28]
cmp qword [rax], 0
je 0x14007e6f3
cmp qword [rsp + 0x30], 0
je 0x14007e810
xor r9d, r9d
mov r8, 0xffffffffffffffff
mov rdx, 0xffffffffffffffff
mov rcx, qword [rsp + 0x20]
call fcn.14009ad60
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0xffffffff
je 0x14007e810
mov eax, dword [rsp + 0x38]
and eax, 1
test eax, eax
je 0x14007e810
mov rax, qword [rsp + 0x28]
cmp qword [rax], 0
jne 0x14007e7a3
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x734]
shl eax, 1
cdqe
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 8]
call qword [section..data]
mov rcx, qword [rsp + 0x28]
mov qword [rcx], rax
mov rax, qword [rsp + 0x28]
cmp qword [rax], 0
jne 0x14007e77b
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x14007e812
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x10], 0
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x18], 0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x28]
cmp qword [rax], 0
je 0x14007e803
xor eax, eax
test eax, eax
jne 0x14007e7ae
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x28]
add rax, qword [rcx + 0x10]
xor r9d, r9d
mov r8d, dword [rsp + 0x30]
mov rdx, rax
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_recv]
cdqe
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jle 0x14007e801
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x10]
add rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 0x10], rax
jmp 0x14007e810
mov rax, qword [rsp + 0x28]
mov qword [rax + 8], 0
xor eax, eax
add rsp, 0x50
pop rdi
ret
Function at 0x1400800e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
lea rdi, [rsp + 0x20]
mov ecx, 8
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x50]
mov eax, Ordinal_27
imul rax, rax, 0
mov rcx, qword [rsp + 0x50]
movzx eax, byte [rcx + rax + 0x280]
test eax, eax
je 0x14008012e
mov rcx, qword [rsp + 0x50]
call fcn.140070f80
test eax, eax
jne 0x14008012c
xor al, al
jmp 0x140080184
jmp 0x140080182
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x50]
cmp qword [rcx + rax + 0x1e8], 0xffffffffffffffff
jne 0x14008014d
xor al, al
jmp 0x140080184
mov eax, 8
imul rax, rax, 0
mov r9d, 2
mov r8d, 1
lea rdx, [rsp + 0x24]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + rax + 0x1e8]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x140080182
xor al, al
jmp 0x140080184
mov al, 1
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.1400f2a80
mov rax, rdi
add rsp, 0x40
pop rdi
ret

Function at 0x1400801b0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x90
lea rdi, [rsp + 0x30]
mov ecx, Ordinal_27
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xa0]
mov dword [rsp + 0x34], 0x4020
mov dword [rsp + 0x54], 0
mov dword [rsp + 0x74], 4
cmp dword [0x140235e50], 0
jne 0x140080231
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov ecx, 6
call fcn.1400d84a0
movzx eax, al
test eax, eax
je 0x140080227
mov dword [0x140235e50], 2
jmp 0x140080231
mov dword [0x140235e50], 1
cmp dword [0x140235e50], 2
jne 0x14008023c
jmp 0x14008029a
lea rax, [rsp + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x54]
mov r8d, 0x1001
mov edx, 0xffff
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x140080274
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x54], eax
jle 0x140080274
jmp 0x14008029a
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov r8d, 0x1001
mov edx, 0xffff
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.1400f2a80
add rsp, 0x90
pop rdi
ret
Function at 0x140080570
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x210
lea rdi, [rsp + 0x20]
mov ecx, 0x7c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x220]
mov rax, qword [0x140234cc0]
xor rax, rsp
mov qword [rsp + 0x208], rax
mov dword [rsp + 0x1e4], 0x80
mov r8d, 0x80
xor edx, edx
lea rcx, [rsp + 0x150]
call fcn.1400f5db0
lea r8, [rsp + 0x1e4]
lea rdx, [rsp + 0x150]
mov rcx, qword [rsp + 0x228]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x14008063e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x1f4], eax
mov r8d, 0x100
lea rdx, [rsp + 0x30]
mov ecx, dword [rsp + 0x1f4]
call fcn.1400a20a0
mov r9, rax
mov r8d, dword [rsp + 0x1f4]
lea rdx, str.getsockname___failed_with_errno__d:__s
mov rcx, qword [rsp + 0x220]
call fcn.14007da70
jmp 0x1400806af
mov r9, qword [rsp + 0x238]
mov r8, qword [rsp + 0x230]
mov edx, dword [rsp + 0x1e4]
lea rcx, [rsp + 0x150]
call fcn.14007ff30
movzx eax, al
test eax, eax
jne 0x1400806af
call fcn.1400fde88
mov r8d, 0x100
lea rdx, [rsp + 0x30]
mov ecx, dword [rax]
call fcn.1400a20a0
mov qword [rsp + 0x200], rax
call fcn.1400fde88
mov rcx, qword [rsp + 0x200]
mov r9, rcx
mov r8d, dword [rax]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov rcx, qword [rsp + 0x220]
call fcn.14007da70
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.1400f2a80
mov rcx, qword [rsp + 0x208]
xor rcx, rsp
call fcn.1400f1ec0
add rsp, 0x210
pop rdi
ret
Function at 0x140080df0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xd0
lea rdi, [rsp + 0x50]
mov ecx, reloc.WLDAP32.dll_Ordinal_32
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xe0]
mov rax, qword [0x140234cc0]
xor rax, rsp
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xe0]
movzx eax, byte [rax + 0xb44]
test eax, eax
je 0x140080e4d
mov dword [rsp + 0xc0], 1
jmp 0x140080e58
mov dword [rsp + 0xc0], 0
mov eax, dword [rsp + 0xc0]
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x54]
mov r8d, 8
mov edx, 0xffff
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x140080eae
mov r8, qword [rsp + 0xe8]
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d
mov rcx, qword [rsp + 0xe0]
call fcn.14007d930
jmp 0x140080f86
mov dword [rsp + 0x78], 1
mov rax, qword [rsp + 0xe0]
mov ecx, dword [rax + 0xaa4]
call fcn.140082550
mov dword [rsp + 0x54], eax
imul eax, dword [rsp + 0x54], 0x3e8
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x7c], eax
mov rax, qword [rsp + 0xe0]
mov ecx, dword [rax + 0xaa8]
call fcn.140082550
mov dword [rsp + 0x54], eax
imul eax, dword [rsp + 0x54], 0x3e8
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x80], eax
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0xa4]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, listen
lea r8, [rsp + 0x78]
mov edx, 0x98000004
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x140080f86
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r9d, eax
mov r8d, dword [rsp + 0xe8]
lea rdx, str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d
mov rcx, qword [rsp + 0xe0]
call fcn.14007d930
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.1400f2a80
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.1400f1ec0
add rsp, 0xd0
pop rdi
ret
Function at 0x140082330
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x180
lea rdi, [rsp + 0x30]
mov ecx, 0x54
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x190]
mov rax, qword [0x140234cc0]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x44], 6
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov r8d, 1
mov edx, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x198]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x1400823d5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.1400a20a0
mov r8, rax
lea rdx, str.Could_not_set_TCP_NODELAY:__s
mov rcx, qword [rsp + 0x190]
call fcn.14007d930
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_bind
call fcn.1400f2a80
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1400f1ec0
add rsp, 0x180
pop rdi
ret

Function at 0x1400826c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x20
mov rcx, qword [rsp + 0x40]
call fcn.140082520
mov r8d, eax
mov rdx, qword [rsp + 0x38]
mov ecx, dword [rsp + 0x30]
call fcn.14010f7fc
cdqe
add rsp, 0x20
pop rdi
ret