joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180024290
Capabilities:
Generate random numbers via winapi

Disassembly:
push rsi
sub rsp, 0x80
mov dword [rsp + 0x28], ecx
mov rsi, qword [0x18004bba8]
mov qword [rsp + 0x30], rsi
test rsi, rsi
jne 0x1800242f2
lea rdx, [0x18003cc24]
lea rcx, [rsp + 0x30]
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
test eax, eax
js 0x180024323
mov rcx, qword [rsp + 0x30]
xor eax, eax
lock cmpxchg qword [0x18004bba8], rcx
jne 0x1800242e2
mov rsi, qword [rsp + 0x30]
jmp 0x1800242f2
mov rsi, rax
mov rcx, qword [rsp + 0x30]
xor edx, edx
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0x10
xor r9d, r9d
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x180024323
mov rax, qword [rsp + 0x30]
add rsp, 0x80
pop rsi
ret
mov dword [rsp + 0x2c], eax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x60], rax
lea rax, [0x1800064c0]
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x2c]
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x78], rax
lea rax, [0x18003cc78]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 2
lea rax, [0x18003cc98]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 2
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 2
lea rdx, str.library_std_src_syswindows_rand.rsRNG_broken:___fallback_RNG_broken:
lea rcx, [rsp + 0x30]
call fcn.180036a10
ud2
Function at 0x180030c60
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x180030c90
xor eax, eax
jmp 0x180030d53
mov rbp, rbx
cmp word [rax], si
je 0x180030cb5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180030c9c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180030c98
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.180030bb0
movsxd r14, eax
test eax, eax
jne 0x180030cf3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180030c89
mov rcx, r14
call fcn.180031ee8
mov rdi, rax
test rax, rax
jne 0x180030d0c
xor ecx, ecx
call fcn.18002f218
jmp 0x180030ce8
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.180030bb0
test eax, eax
jne 0x180030d3d
mov rcx, rdi
call fcn.18002f218
jmp 0x180030d47
xor ecx, ecx
call fcn.18002f218
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140001230
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x140256ac0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x70]
call fcn.1400011e0
cmp dword [rsp + 0x78], eax
jae 0x140001263
xor eax, eax
jmp 0x14000138d
mov eax, dword [rsp + 0x78]
pxor xmm0, xmm0
cvtsi2sd xmm0, rax
divsd xmm0, qword [0x1401b6d68]
call fcn.14018b790
cvttsd2si rax, xmm0
imul eax, eax, 0x400
mov dword [rsp + 0x20], eax
mov byte [rsp + 0x30], 0x56
mov byte [rsp + 0x31], 0x69
mov byte [rsp + 0x32], reloc.OLEAUT32.dll_VarBstrFromDisp
mov byte [rsp + 0x33], reloc.WS2_32.dll_WSACleanup
mov byte [rsp + 0x34], 0x75
mov byte [rsp + 0x35], 0x61
mov byte [rsp + 0x36], WSASetLastError
mov byte [rsp + 0x37], 0x41
mov byte [rsp + 0x38], WSASetLastError
mov byte [rsp + 0x39], WSASetLastError
mov byte [rsp + 0x3a], reloc.WS2_32.dll_WSAGetLastError
mov byte [rsp + 0x3b], 0x63
mov byte [rsp + 0x3c], 0
lea rcx, [0x1401b6cf8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x20]
mov r9d, 4
mov r8d, 0x1000
mov edx, eax
xor ecx, ecx
call qword [rsp + 0x40]
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x70]
call fcn.1400011f0
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov r8d, eax
mov rax, qword [rsp + 0x70]
mov rdx, qword [rax + 8]
mov rcx, qword [rsp + 0x50]
call fcn.14018b3c0
mov rax, qword [rsp + 0x70]
cmp qword [rax + 8], 0
je 0x140001355
mov r8d, 0x8000
xor edx, edx
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov eax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x70]
add rax, qword [rcx + 8]
mov rcx, qword [rsp + 0x70]
mov qword [rcx + 0x10], rax
mov rax, qword [rsp + 0x70]
mov ecx, dword [rsp + 0x20]
mov dword [rax + 0x18], ecx
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x18]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14018b950
add rsp, 0x68
ret
Function at 0x1400013a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [0x140256ac0]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x90]
call fcn.1400011f0
cmp dword [rsp + 0x98], eax
jae 0x1400013dc
xor eax, eax
jmp 0x14000158b
mov eax, dword [rsp + 0x98]
pxor xmm0, xmm0
cvtsi2sd xmm0, rax
divsd xmm0, qword [0x1401b6d68]
call fcn.14018b790
cvttsd2si rax, xmm0
imul eax, eax, 0x400
mov dword [rsp + 0x20], eax
mov rcx, qword [rsp + 0x90]
call fcn.1400011e0
cmp dword [rsp + 0x20], eax
jae 0x140001422
xor eax, eax
jmp 0x14000158b
mov byte [rsp + 0x40], 0x56
mov byte [rsp + 0x41], 0x69
mov byte [rsp + 0x42], reloc.OLEAUT32.dll_VarBstrFromDisp
mov byte [rsp + 0x43], reloc.WS2_32.dll_WSACleanup
mov byte [rsp + 0x44], 0x75
mov byte [rsp + 0x45], 0x61
mov byte [rsp + 0x46], WSASetLastError
mov byte [rsp + 0x47], 0x41
mov byte [rsp + 0x48], WSASetLastError
mov byte [rsp + 0x49], WSASetLastError
mov byte [rsp + 0x4a], reloc.WS2_32.dll_WSAGetLastError
mov byte [rsp + 0x4b], 0x63
mov byte [rsp + 0x4c], 0
lea rcx, [0x1401b6d18]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x20]
mov r9d, 4
mov r8d, 0x1000
mov edx, eax
xor ecx, ecx
call qword [rsp + 0x28]
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x90]
call fcn.1400011f0
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov r8d, eax
mov rax, qword [rsp + 0x90]
mov rdx, qword [rax + 8]
mov rcx, qword [rsp + 0x58]
call fcn.14018b3c0
mov byte [rsp + 0x60], 0x56
mov byte [rsp + 0x61], 0x69
mov byte [rsp + 0x62], reloc.OLEAUT32.dll_VarBstrFromDisp
mov byte [rsp + 0x63], reloc.WS2_32.dll_WSACleanup
mov byte [rsp + 0x64], 0x75
mov byte [rsp + 0x65], 0x61
mov byte [rsp + 0x66], WSASetLastError
mov byte [rsp + 0x67], 0x46
mov byte [rsp + 0x68], reloc.OLEAUT32.dll_VarBstrFromDisp
mov byte [rsp + 0x69], 0x65
mov byte [rsp + 0x6a], 0x65
mov byte [rsp + 0x6b], 0
lea rcx, [0x1401b6d38]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x50], rax
mov r8d, 0x8000
xor edx, edx
mov rax, qword [rsp + 0x90]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x58]
mov qword [rax + 8], rcx
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x90]
add rax, qword [rcx + 8]
mov rcx, qword [rsp + 0x90]
mov qword [rcx + 0x10], rax
mov rax, qword [rsp + 0x90]
mov ecx, dword [rsp + 0x20]
mov dword [rax + 0x18], ecx
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 0x18]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14018b950
add rsp, 0x88
ret
Function at 0x140005d00
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x1e8
mov qword [rsp + 0x1d0], 0xfffffffffffffffe
mov rax, qword [0x140256ac0]
xor rax, rsp
mov qword [rsp + 0x1d8], rax
mov rcx, qword [rsp + 0x1f0]
call fcn.140006ee0
mov rax, qword [rsp + 0x1f0]
lea rcx, vtable.DeHJfsvDa.0
mov qword [rax], rcx
mov rax, qword [rsp + 0x1f0]
add rax, 0x40
mov rcx, rax
call fcn.140001000
nop
mov rax, qword [rsp + 0x1f0]
add rax, 0x60
mov rcx, rax
call fcn.140001000
nop
mov rax, qword [rsp + 0x1f0]
add rax, 0x80
mov rcx, rax
call fcn.140001000
nop
lea rdx, [0x1401b6ef0]
lea rcx, [0x1401b6f08]
call fcn.140006f50
lea rdx, [rsp + 0x30]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rcx, qword [rsp + 0x1f0]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x1f0]
add rax, 0x20
xor ecx, ecx
xchg dword [rax], ecx
mov rax, qword [rsp + 0x1f0]
mov qword [rax + 0xb0], 0xffffffffffffffff
mov rax, qword [rsp + 0x1f0]
mov qword [rax + 0xa0], 0
mov rax, qword [rsp + 0x1f0]
mov qword [rax + 0xa8], 0
mov rax, qword [rsp + 0x1f0]
mov dword [rax + 0x1c], 0
mov rax, qword [rsp + 0x1f0]
mov rcx, qword [rsp + 0x1d8]
xor rcx, rsp
call fcn.14018b950
add rsp, 0x1e8
ret

Function at 0x140005e50
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
lea rdx, str.DeHJfsvDa::Disconnect
lea rcx, [0x1401b6f0c]
call fcn.140006f50
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x20], 0
jne 0x140005e7c
jmp 0x140005f07
mov eax, 1
mov word [rsp + 0x30], ax
xor eax, eax
mov word [rsp + 0x32], ax
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x30]
mov r8d, 0x80
mov edx, 0xffff
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0xb0]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0xb0]
call qword [sym.imp.KERNEL32.dll_CancelIo]
mov rax, qword [rsp + 0x50]
add rax, 0x20
xor ecx, ecx
xchg dword [rax], ecx
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0xb0]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rax, qword [rsp + 0x50]
mov qword [rax + 0xb0], 0xffffffffffffffff
add rsp, 0x48
ret
Function at 0x140006900
Capabilities:
Send data
Send data on socket

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x24], 0
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x30], setsockopt
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x34], eax
jmp 0x14000695c
mov eax, dword [rsp + 0x68]
mov ecx, dword [rsp + 0x34]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x68]
cmp dword [rsp + 0x34], eax
jl 0x1400069fb
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x38], 0
jmp 0x140006986
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x38], eax
jge 0x1400069be
xor r9d, r9d
mov r8d, dword [rsp + 0x68]
mov rdx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0xb0]
call qword [sym.imp.WS2_32.dll_send]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jle 0x1400069bc
jmp 0x1400069be
jmp 0x14000697c
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x38], eax
jne 0x1400069d2
mov eax, 0xffffffff
jmp 0x140006a86
mov eax, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
jmp 0x14000694c
cmp dword [rsp + 0x34], 0
jle 0x140006a6f
mov dword [rsp + 0x3c], 0
jmp 0x140006a16
mov eax, dword [rsp + 0x3c]
inc eax
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x3c], eax
jge 0x140006a4e
xor r9d, r9d
mov r8d, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0xb0]
call qword [sym.imp.WS2_32.dll_send]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jle 0x140006a4c
jmp 0x140006a4e
jmp 0x140006a0c
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x3c], eax
jne 0x140006a5f
mov eax, 0xffffffff
jmp 0x140006a86
mov eax, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x20], eax
jne 0x140006a81
mov eax, dword [rsp + 0x20]
jmp 0x140006a86
mov eax, 0xffffffff
add rsp, 0x48
ret
Function at 0x140006f70
Capabilities:
Create thread
Set socket configuration

Disassembly:
mov qword [rsp + 0x20], r9
mov word [rsp + 0x18], r8w
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x58], 0x598
mov rax, qword [rsp + 0x70]
cmp dword [rax + 0x21c], 0
jne 0x140006fb0
mov rax, qword [rsp + 0x70]
mov ecx, dword [rsp + 0x58]
mov dword [rax + 0x23c], ecx
jmp 0x140006fde
mov rax, qword [rsp + 0x70]
mov ecx, dword [rsp + 0x58]
cmp dword [rax + 0x21c], ecx
jbe 0x140006fc8
xor eax, eax
jmp 0x1400071cc
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x70]
mov ecx, dword [rcx + 0x21c]
mov dword [rax + 0x23c], ecx
mov rax, qword [rsp + 0x70]
mov dword [rax + 0x8c], 0
mov rcx, qword [rsp + 0x70]
call fcn.1400071e0
mov rax, qword [rsp + 0x70]
add rax, 0x48
mov dword [rsp + 0x20], 1
xor r9d, r9d
mov r8d, 5
mov edx, 1
mov rcx, rax
call fcn.14000a3c0
mov dword [rsp + 0x54], 0
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.14000a350
lea rcx, [0x140258958]
call fcn.140008210
mov rcx, qword [rsp + 0x70]
mov qword [rcx + 0x68], rax
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x68], 0
jne 0x14000706b
lea rcx, [0x140258958]
call fcn.140008210
mov rcx, qword [rsp + 0x70]
mov qword [rcx + 0x68], rax
mov dword [rsp + 0x50], 0x40000
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x50]
mov r8d, 0x1001
mov edx, 0xffff
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 0x58]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0x50], 0x40000
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x50]
mov r8d, 0x1002
mov edx, 0xffff
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 0x58]
call qword [sym.imp.WS2_32.dll_setsockopt]
movzx r8d, word [rsp + 0x80]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call fcn.140007320
test eax, eax
je 0x140007160
mov rax, qword [rsp + 0x70]
add rax, 0x80
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x70]
lea r8, [0x140007650]
xor edx, edx
xor ecx, ecx
call fcn.14018c73c
mov rcx, qword [rsp + 0x70]
mov qword [rcx + 0x78], rax
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x78], 0
je 0x140007142
mov dword [rsp + 0x54], 1
mov rax, qword [rsp + 0x70]
add rax, 0x40
mov rcx, rax
call fcn.14000a580
jmp 0x14000715e
mov r9d, 0x65f
lea r8, [0x1401b7058]
mov edx, 8
mov rcx, qword [rsp + 0x70]
call fcn.1400086b0
jmp 0x14000717f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r9d, eax
lea r8, str.FEWkMZwZu::Start
mov edx, VariantTimeToDosDateTime
mov rcx, qword [rsp + 0x70]
call fcn.1400086b0
cmp dword [rsp + 0x54], 0
jne 0x1400071c8
mov rax, qword [rsp + 0x70]
add rax, 0x48
mov dword [rsp + 0x20], 1
xor r9d, r9d
mov r8d, 5
xor edx, edx
mov rcx, rax
call fcn.14000a3c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x5c], eax
mov rcx, qword [rsp + 0x70]
call fcn.1400082a0
mov ecx, dword [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [rsp + 0x54]
add rsp, 0x68
ret
Function at 0x140007950
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x58]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x140007999
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0x2733
jne 0x140007999
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret

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

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
xor eax, eax
cmp eax, 1
je 0x14000800a
xor r9d, r9d
mov r8d, 0x598
mov rax, qword [rsp + 0x50]
mov rdx, qword [rax + 0xa0]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x58]
call qword [sym.imp.WS2_32.dll_recv]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jle 0x140007f9e
cmp dword [rsp + 0x30], 0x10
jne 0x140007f1e
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [0x1401b7048]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0xa0]
call fcn.14018c910
test eax, eax
jne 0x140007f1e
mov rax, qword [rsp + 0x50]
add rax, 0x48
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 5
mov edx, 1
mov rcx, rax
call fcn.14000a3c0
xor eax, eax
jmp 0x14000800f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsp + 0x50]
add rax, 0x268
mov rcx, qword [rsp + 0x50]
mov ecx, dword [rcx + 0x244]
mov dword [rsp + 0x20], ecx
mov rcx, qword [rsp + 0x50]
mov r9, qword [rcx + 0x250]
mov r8d, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rcx + 0xa0]
mov rcx, rax
call fcn.1400095e0
cmp eax, 2
jne 0x140007f9c
mov ecx, 0x4c7
call fcn.14000a320
mov rcx, qword [rsp + 0x50]
add rcx, 0x48
mov dword [rsp + 0x20], 1
mov r9d, eax
mov r8d, 4
mov edx, 1
call fcn.14000a3c0
xor eax, eax
jmp 0x14000800f
jmp 0x140008005
cmp dword [rsp + 0x30], 0xffffffff
jne 0x140008005
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0x2733
jne 0x140007fbd
jmp 0x14000800a
cmp dword [rsp + 0x34], 0x2744
je 0x140007fd1
cmp dword [rsp + 0x34], 0x2746
jne 0x140007fd8
jmp 0x140007e89
mov rax, qword [rsp + 0x50]
add rax, 0x48
mov dword [rsp + 0x20], 1
mov r9d, dword [rsp + 0x34]
mov r8d, 4
mov edx, 1
mov rcx, rax
call fcn.14000a3c0
xor eax, eax
jmp 0x14000800f
jmp 0x140007e89
mov eax, 1
add rsp, 0x48
ret
Function at 0x140008020
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov qword [rsp + 0x68], 0xfffffffffffffffe
xor eax, eax
cmp eax, 1
je 0x1400081f5
mov rcx, qword [rsp + 0x90]
call fcn.140008230
mov rcx, qword [rsp + 0x90]
add rcx, 0xb8
mov r8, rax
mov rdx, rcx
lea rcx, [rsp + 0x30]
call fcn.1400096d0
nop
lea rcx, [rsp + 0x30]
call fcn.140009690
movzx eax, al
test eax, eax
je 0x1400081da
lea rcx, [rsp + 0x30]
call fcn.1400096c0
mov rcx, rax
call fcn.140001e50
mov dword [rsp + 0x70], eax
lea rcx, [rsp + 0x30]
call fcn.1400096c0
mov rcx, rax
call fcn.14000a310
xor r9d, r9d
mov ecx, dword [rsp + 0x70]
mov r8d, ecx
mov rdx, rax
mov rax, qword [rsp + 0x90]
mov rcx, qword [rax + 0x58]
call qword [sym.imp.WS2_32.dll_send]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jle 0x14000811e
mov rax, qword [rsp + 0x90]
add rax, 0x1b8
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140002040
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 0x218]
sub eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x90]
mov dword [rcx + 0x218], eax
lea rcx, [rsp + 0x48]
call fcn.1400020a0
jmp 0x1400081d8
cmp dword [rsp + 0x40], 0xffffffff
jne 0x1400081d8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0x2733
jne 0x140008194
mov rax, qword [rsp + 0x90]
add rax, 0x1b8
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.140002040
nop
lea rcx, [rsp + 0x30]
call fcn.140009660
mov rcx, qword [rsp + 0x90]
add rcx, 0x1e0
mov rdx, rax
call fcn.140009310
nop
lea rcx, [rsp + 0x58]
call fcn.1400020a0
nop
lea rcx, [rsp + 0x30]
call fcn.140009700
jmp 0x1400081f5
mov rax, qword [rsp + 0x90]
add rax, 0x48
mov dword [rsp + 0x20], 1
mov r9d, dword [rsp + 0x50]
mov r8d, 3
mov edx, 1
mov rcx, rax
call fcn.14000a3c0
mov dword [rsp + 0x60], 0
lea rcx, [rsp + 0x30]
call fcn.140009700
mov eax, dword [rsp + 0x60]
jmp 0x1400081fa
jmp 0x1400081e6
lea rcx, [rsp + 0x30]
call fcn.140009700
jmp 0x1400081f5
lea rcx, [rsp + 0x30]
call fcn.140009700
jmp 0x140008035
mov eax, 1
add rsp, 0x88
ret

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

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rcx, qword [rsp + 0x30]
call fcn.14000a600
test eax, eax
jne 0x140008579
jmp 0x1400085af
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x54], 0
je 0x1400085a3
xor r9d, r9d
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [0x1401b7048]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x58]
call qword [sym.imp.WS2_32.dll_send]
xor edx, edx
mov rcx, qword [rsp + 0x30]
call fcn.14000a630
add rsp, 0x28
ret
Function at 0x140008a30
Capabilities:
Create thread

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
lea rcx, [0x1401b70b8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0x30], rax
lea rdx, [0x1401b70d8]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
lea rdx, str.FEWkMZwZu::Connect
lea rcx, [0x1401b70d4]
call fcn.140006f50
call qword [sym.imp.WINMM.dll_timeGetTime]
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x1c], eax
mov rax, qword [rsp + 0x80]
add rax, 0x20
xor ecx, ecx
xchg dword [rax], ecx
mov rax, qword [rsp + 0x80]
add rax, 0x30
mov r8d, 0xa
xor edx, edx
mov rcx, rax
call fcn.14018c0a0
mov rax, qword [rsp + 0x80]
add rax, 0x1c
mov rcx, qword [rsp + 0x80]
add rcx, 0x30
mov r8d, 8
mov rdx, rax
call fcn.14018b3c0
mov rax, qword [rsp + 0x80]
mov byte [rax + 0x38], 0xca
mov rax, qword [rsp + 0x80]
mov byte [rax + 0x39], 1
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x8c]
cmp eax, 3
je 0x140008b24
mov rcx, qword [rsp + 0x80]
call fcn.1400082a0
mov word [rsp + 0x20], 0
xor r9d, r9d
movzx r8d, word [rsp + 0x90]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call fcn.140006f70
mov dword [rsp + 0x44], eax
mov edx, 0x1770
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x64], 0
je 0x140008b86
cmp dword [rsp + 0x64], 0x102
je 0x140008be1
cmp dword [rsp + 0x64], 0xffffffff
je 0x140008bf2
jmp 0x140008c03
mov rax, qword [rsp + 0x80]
add rax, 0x20
mov ecx, 1
xchg dword [rax], ecx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x80]
lea r8, [0x140008c10]
xor edx, edx
xor ecx, ecx
call fcn.14018c73c
mov rcx, qword [rsp + 0x80]
mov qword [rcx + 0x360], rax
mov al, 1
jmp 0x140008c09
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
xor al, al
jmp 0x140008c09
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
xor al, al
jmp 0x140008c09
xor al, al
jmp 0x140008c09
add rsp, 0x78
ret
Function at 0x14000a9f0
Capabilities:
Initialize winsock library

Disassembly:
mov byte [rsp + 0x20], r9b
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x40
lea rbp, [rsp + 0x20]
mov rax, qword [0x140256ac0]
xor rax, rbp
mov qword [rbp + 0x10], rax
mov rax, qword [rbp + 0x38]
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x14000aa41
mov eax, dword [rsp]
mov eax, OleTranslateColor
sub rsp, rax
lea rax, [rsp + 0x20]
mov ecx, dword [rax]
mov qword [rbp], rax
movzx eax, byte [rbp + 0x48]
and rax, 0xff
movzx eax, al
movzx ecx, byte [rbp + 0x40]
and rcx, 0xff
movzx ecx, cl
shl ecx, 8
or eax, ecx
mov rdx, qword [rbp]
movzx ecx, ax
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov rcx, qword [rbp + 0x30]
mov dword [rcx], eax
mov rax, qword [rbp + 0x30]
mov rcx, qword [rbp + 0x10]
xor rcx, rbp
call fcn.14018b950
lea rsp, [rbp + 0x20]
pop rbp
ret

Function at 0x14000afe0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x40]
lea r8, [0x14000ad40]
xor edx, edx
xor ecx, ecx
call fcn.14018c73c
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 0x30], rax
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsp + 0x40]
call fcn.140005900
add rsp, 0x38
ret