joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2d9e3ce4c0
Capabilities:
Hash data with md5

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x190
mov rax, qword [0x2d9e415008]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rsi, r9
lea rdx, [0x2d9e409dd0]
mov r9, r8
mov rbx, rcx
mov r8, rcx
lea rcx, [rsp + 0xb0]
call qword [sym.imp.USER32.dll_wsprintfW]
xor edi, edi
mov dword [rsp + 0x28], 0x67452301
mov qword [rsp + 0x20], rdi
lea rcx, [rsp + 0xb0]
or rax, 0xffffffffffffffff
mov dword [rsp + 0x2c], 0xefcdab89
mov dword [rsp + 0x30], 0x98badcfe
mov dword [rsp + 0x34], 0x10325476
cmp word [rcx + rax*2 + 2], di
lea rax, [rax + 1]
jne 0x2d9e3ce531
lea r8d, [rax + rax]
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x20]
call fcn.2d9e3bdee0
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0x20]
call fcn.2d9e3bdfb0
movzx r8d, di
lea r10, [rsp + 0x9c]
movzx ecx, byte [r10]
movzx edx, cl
movsx eax, r8w
shr cl, 4
and dl, 0xf
add cl, 0x30
lea r9d, [rax + rax]
movsxd rax, r9d
cmp cl, 0x39
jbe 0x2d9e3ce593
add cl, 7
mov byte [rsp + rax + 0x80], cl
add dl, 0x30
lea eax, [r9 + 1]
movsxd rcx, eax
cmp dl, 0x39
jbe 0x2d9e3ce5ac
add dl, 7
inc r8w
mov byte [rsp + rcx + 0x80], dl
inc r10
cmp r8w, 8
jl 0x2d9e3ce570
xor edx, edx
mov byte [rsp + 0x90], dil
mov r8d, 0xc8
mov rcx, rbx
call fcn.2d9e3e3840
nop dword [rax]
movzx eax, byte [rsp + rdi + 0x80]
lea ecx, [rax - 0x30]
cmp cl, 9
ja 0x2d9e3ce5f4
add al, 0x31
jmp 0x2d9e3ce5fe
lea ecx, [rax - 0x41]
cmp cl, 0x19
ja 0x2d9e3ce605
add al, 0x2c
mov byte [rsp + rdi + 0x80], al
movsx eax, byte [rsp + rdi + 0x80]
mov word [rbx + rdi*2], ax
inc rdi
cmp rdi, 0xa
jl 0x2d9e3ce5e0
sub rbx, 2
nop
cmp word [rbx + 2], 0
lea rbx, [rbx + 2]
jne 0x2d9e3ce620
xor ecx, ecx
nop dword [rax]
movzx eax, word [rsi + rcx*2]
mov word [rbx + rcx*2], ax
lea rcx, [rcx + 1]
test ax, ax
jne 0x2d9e3ce630
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.2d9e3da7d0
add rsp, 0x190
pop rdi
pop rsi
pop rbx
ret
Function at 0x2d9e3cf600
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push rbx
sub rsp, 0x740
mov rax, qword [0x2d9e415008]
xor rax, rsp
mov qword [rsp + 0x730], rax
mov rbx, rcx
lea rdx, [rsp + 0x310]
xor ecx, ecx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, 0x5c
lea rcx, [rsp + 0x310]
call fcn.2d9e3e3224
lea rdx, [0x2d9e409e20]
lea rcx, [rax + 2]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x2d9e3cf691
lea r8, [rsp + 0x100]
mov rcx, rbx
lea rdx, [rsp + 0x520]
call fcn.2d9e3cf4b0
test eax, eax
je 0x2d9e3cf826
xor edx, edx
lea rcx, [rsp + 0x520]
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x2d9e3cf6e6
mov r8d, 0x104
lea rdx, [rsp + 0x100]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, 0x2e
lea rcx, [rsp + 0x100]
call fcn.2d9e3e3224
add rax, 2
je 0x2d9e3cf826
movabs rcx, 0x7400610064
mov qword [rax], rcx
lea rcx, [rsp + 0x100]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x2d9e3cf826
xor edx, edx
mov qword [rsp + 0x758], rdi
mov r8d, 0xc8
lea rcx, [rsp + 0x30]
call fcn.2d9e3e3840
lea rcx, [rsp + 0x30]
call fcn.2d9e3ca9b0
mov ebx, eax
test eax, eax
jle 0x2d9e3cf725
mov ecx, eax
call fcn.2d9e3ca5a0
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.2d9e3ca760
jmp 0x2d9e3cf730
mov ecx, dword [0x2d9e417f00]
call fcn.2d9e3ca5a0
call fcn.2d9e3c91b0
xor r8d, r8d
mov dword [rsp + 0x20], 0
test eax, eax
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0x20]
setne r8b
inc r8d
call fcn.2d9e3cc3b0
mov rdi, rax
test rax, rax
je 0x2d9e3cf81e
mov ebx, dword [rsp + 0x20]
test ebx, ebx
je 0x2d9e3cf81e
mov edx, ebx
mov rcx, rax
call fcn.2d9e3cc2b0
mov edx, ebx
mov rcx, rdi
call fcn.2d9e3c8cb0
lea rcx, [0x2d9e407fd0]
call fcn.2d9e3cbfa0
add eax, 0xe0000001
test eax, 0xefffffff
jne 0x2d9e3cf7ad
xor edx, edx
lea rcx, [0x2d9e407fd0]
call fcn.2d9e3b8a60
lea rcx, [0x2d9e409a60]
call fcn.2d9e3cbfa0
add eax, 0xe0000001
test eax, 0xefffffff
jne 0x2d9e3cf7d3
xor edx, edx
lea rcx, [0x2d9e409a60]
call fcn.2d9e3b8a60
mov edx, ebx
mov rcx, rdi
call fcn.2d9e3cf0b0
test eax, eax
jg 0x2d9e3cf7ff
call fcn.2d9e3cee60
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov edx, ebx
mov rcx, rdi
call fcn.2d9e3cf0b0
test eax, eax
jle 0x2d9e3cf7e1
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
lea rcx, [rsp + 0x100]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdi, qword [rsp + 0x758]
mov rcx, qword [rsp + 0x730]
xor rcx, rsp
call fcn.2d9e3da7d0
add rsp, 0x740
pop rbx
ret
Function at 0x2d9e3cff90
Capabilities:
Resolve dns

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0xf0
mov rax, qword [0x2d9e415008]
xor rax, rsp
mov qword [rsp + 0xe8], rax
xor eax, eax
mov dword [r11 - 0x50], 0x100
mov qword [r8 + 2], rax
xor edi, edi
mov qword [r8 + 0xa], rax
movzx ebp, dx
mov qword [r8 + 0x12], rax
mov rsi, r8
mov word [r8 + 0x1a], ax
mov rdx, rcx
mov qword [r11 - 0x4c], rax
lea rcx, [rsp + 0x20]
mov qword [r11 - 0x44], rax
mov qword [r11 - 0x3c], rax
mov qword [r11 - 0x34], rax
mov qword [r11 - 0x2c], rax
mov dword [r11 - 0x24], eax
movzx eax, word [r8]
lea r8d, [rdi + 3]
mov dword [r11 - 0x4c], eax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x20], rax
mov qword [r11 - 0x58], rdi
call fcn.2d9e3d0690
mov rcx, qword [rsp + 0x20]
lea r9, [rsp + 0xb0]
lea r8, [rsp + 0xb8]
xor edx, edx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov rcx, qword [rsp + 0x20]
mov ebx, eax
lea rax, [rsp + 0x28]
cmp rcx, rax
je 0x2d9e3d0048
call fcn.2d9e3e4124
test ebx, ebx
je 0x2d9e3d0058
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
jmp 0x2d9e3d00be
mov rbx, qword [rsp + 0xb0]
mov rdx, rbx
test rbx, rbx
je 0x2d9e3d0095
mov eax, dword [rdx + 4]
cmp eax, 2
je 0x2d9e3d0080
cmp eax, 0x17
je 0x2d9e3d0080
mov rdx, qword [rdx + 0x28]
test rdx, rdx
jne 0x2d9e3d0068
jmp 0x2d9e3d0095
mov r8, qword [rdx + 0x10]
mov rcx, rsi
mov rdx, qword [rdx + 0x20]
call fcn.2d9e3e2bb0
mov edi, 1
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test edi, edi
je 0x2d9e3d00b1
movzx ecx, bp
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsi + 2], ax
jmp 0x2d9e3d00bc
mov ecx, 0x2af9
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, edi
mov rcx, qword [rsp + 0xe8]
xor rcx, rsp
call fcn.2d9e3da7d0
mov rbx, qword [rsp + 0x128]
add rsp, 0xf0
pop rdi
pop rsi
pop rbp
ret

Function at 0x2d9e3d0460
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x2d9e415008]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x34], 1
mov rdi, rcx
mov dword [rsp + 0x30], 0
test edx, edx
jne 0x2d9e3d0497
lea r9, [rsp + 0x34]
jmp 0x2d9e3d04a1
cmp edx, 1
jne 0x2d9e3d04e1
lea r9, [rsp + 0x30]
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0xfffffffb
call qword [sym.imp.WS2_32.dll_setsockopt]
lea r9, [rsp + 0x30]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 4
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.WS2_32.dll_setsockopt]
or eax, ebx
jmp 0x2d9e3d0539
cmp edx, 2
jne 0x2d9e3d052b
lea r9, [rsp + 0x30]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0xfffffffb
call qword [sym.imp.WS2_32.dll_setsockopt]
lea r9, [rsp + 0x34]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 4
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.WS2_32.dll_setsockopt]
or eax, ebx
jmp 0x2d9e3d0539
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.2d9e3da7d0
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x2d9e3d05f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub rsp, 0x58
mov rax, qword [0x2d9e415008]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rcx, qword [rcx + 0xc0]
lea r9, [rsp + 0x44]
mov rax, rdx
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], rax
mov r8d, 1
lea rax, [rsp + 0x40]
mov qword [rdx + 0x58], rcx
mov dword [rdx + 0x28], 4
add rdx, 0x30
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x44], 0
call qword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x2d9e3d0672
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.2d9e3da7d0
add rsp, 0x58
ret
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.2d9e3da7d0
add rsp, 0x58
ret

Function at 0x2d9e3d0f20
Capabilities:
Connect socket
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor edi, edi
mov rsi, rdx
mov rbx, rcx
test r8d, r8d
je 0x2d9e3d0fa0
mov rdx, qword [rcx + 0x30]
lea r8d, [rdi + 0x30]
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x2d9e3d0f8e
cmp word [rsi], 2
mov eax, 0x1c
mov rcx, qword [rbx + 0x28]
mov r8d, 0x10
cmovne r8d, eax
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x2d9e3d0f89
cmp eax, 0xffffffff
jne 0x2d9e3d0f8e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x2d9e3d0f8e
mov edi, 1
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp word [rdx], 2
mov eax, 0x1c
mov rcx, qword [rcx + 0x28]
mov r8d, 0x10
cmovne r8d, eax
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x2d9e3d0f8e
mov rdx, qword [rbx + 0x30]
mov r8d, 0x23
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x2d9e3d0f8e
mov dword [rbx + 0x68], 1
xor ecx, ecx
mov dword [rbx + 0x6c], 1
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0xf8]
cmp eax, 2
jne 0x2d9e3d102c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x4c7
test eax, eax
cmove eax, ecx
mov ecx, eax
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [rbx + 0x28]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x2d9e3d0f89
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x2d9e3d0f89
test eax, eax
je 0x2d9e3d0f89
mov ecx, 0x80004005
call fcn.2d9e3b8cb0
int3
Function at 0x2d9e3d15a0
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [rdx + 0x14]
mov rbx, rcx
test eax, eax
je 0x2d9e3d15d0
mov dword [rcx + 0x20], eax
xor eax, eax
mov dword [rcx + 0x18], 1
mov dword [rcx + 0x1c], 2
mov dword [rcx + 0x24], 1
add rsp, 0x20
pop rbx
ret
mov rdx, qword [rcx + 0x30]
mov r8d, 0x23
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x2d9e3d160f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbx + 0x18], 1
mov dword [rbx + 0x1c], 2
mov dword [rbx + 0x24], 1
mov dword [rbx + 0x20], eax
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov dword [rbx + 0x68], 1
xor ecx, ecx
mov dword [rbx + 0x6c], 1
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0xf8]
cmp eax, 2
je 0x2d9e3d1669
mov rcx, qword [rbx + 0x28]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x2d9e3d165e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x2d9e3d165e
test eax, eax
jne 0x2d9e3d1693
mov eax, 1
add rsp, 0x20
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x4c7
mov dword [rbx + 0x1c], 5
test eax, eax
cmove eax, ecx
xor ecx, ecx
mov dword [rbx + 0x18], ecx
mov dword [rbx + 0x24], ecx
mov dword [rbx + 0x20], eax
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov ecx, 0x80004005
call fcn.2d9e3b8cb0
int3

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov eax, dword [rcx + 0x1fc]
mov rbx, rcx
test eax, eax
jne 0x2d9e3d17aa
xor esi, esi
mov r8d, dword [rbx + 0x40]
xor r9d, r9d
mov rdx, qword [rbx + 0x80]
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test eax, eax
jle 0x2d9e3d1770
mov dword [rbx + 0x200], esi
cmp eax, 0x10
jne 0x2d9e3d1713
mov rax, qword [rbx + 0x80]
mov rcx, qword [rax]
cmp rcx, qword [0x2d9e409ed0]
jne 0x2d9e3d1713
mov rcx, qword [rax + 8]
cmp rcx, qword [0x2d9e409ed8]
je 0x2d9e3d17bf
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rbx]
mov r8d, edi
mov rdx, qword [rbx + 0x80]
mov rcx, rbx
call qword [rax + pe_nt_image_headers64]
cmp eax, 2
jne 0x2d9e3d179c
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 0x4c7
cmove eax, ecx
mov dword [rbx + 0x18], 1
mov dword [rbx + 0x1c], 4
mov dword [rbx + 0x20], eax
xor eax, eax
mov dword [rbx + 0x24], 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp edi, 0xffffffff
jne 0x2d9e3d1792
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x2d9e3d17aa
lea ecx, [rax - 0x2744]
test ecx, 0xfffffffd
jne 0x2d9e3d1746
jmp 0x2d9e3d179c
test edi, edi
jne 0x2d9e3d179c
mov dword [rbx + 0x200], esi
mov eax, dword [rbx + 0x1fc]
test eax, eax
je 0x2d9e3d16c2
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov dword [rbx + 0x24], esi
xor eax, eax
mov rsi, qword [rsp + 0x38]
mov dword [rbx + 0x18], 1
mov qword [rbx + 0x1c], 5
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x2d9e3d1880
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rsi, rcx
lea r14, [rcx + 0x98]
call fcn.2d9e3d1a20
mov rdi, rax
test rax, rax
je 0x2d9e3d195e
nop dword [rax]
nop word [rax + rax]
mov r8d, dword [rdi + 0x30]
xor r9d, r9d
sub r8d, dword [rdi + 0x28]
mov rdx, qword [rdi + 0x28]
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.WS2_32.dll_send]
mov ebp, eax
test eax, eax
jle 0x2d9e3d191d
lea rcx, [rsi + 0x198]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
sub dword [rsi + 0x1f8], ebp
lea rcx, [rsi + 0x198]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r9, qword [rsi]
mov r8d, ebp
mov rdx, qword [rdi + 0x28]
mov rcx, rsi
call qword [r9 + 0x108]
jmp 0x2d9e3d1922
cmp ebp, 0xffffffff
je 0x2d9e3d197c
lea rcx, [r14 + 0x30]
mov rdx, rdi
call fcn.2d9e3cfd50
test eax, eax
jne 0x2d9e3d1943
mov rcx, qword [rdi]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rsi
lea r14, [rsi + 0x98]
call fcn.2d9e3d1a20
mov rdi, rax
test rax, rax
jne 0x2d9e3d18c0
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x2d9e3d19de
lea rcx, [rsi + 0x198]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rsi + 0x1c8]
test rax, rax
je 0x2d9e3d19b3
mov qword [rax + 0x10], rdi
mov rax, qword [rsi + 0x1c8]
mov qword [rdi + 8], rax
jmp 0x2d9e3d19c2
mov qword [rdi + 0x10], rax
mov qword [rdi + 8], rax
mov qword [rsi + 0x1d0], rdi
inc dword [rsi + 0x1c0]
lea rcx, [rsi + 0x198]
mov qword [rsi + 0x1c8], rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x2d9e3d195e
lea rcx, [r14 + 0x30]
mov dword [rsi + 0x18], 1
mov rdx, rdi
mov dword [rsi + 0x1c], 3
mov dword [rsi + 0x20], eax
mov dword [rsi + 0x24], 1
call fcn.2d9e3cfd50
test eax, eax
jne 0x2d9e3d1a17
mov rcx, qword [rdi]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
jmp 0x2d9e3d1963
Function at 0x2d9e3d1ad0
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rcx, rbx
mov edi, eax
call fcn.2d9e3d0c30
test eax, eax
jne 0x2d9e3d1afc
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov edx, edi
mov rcx, rbx
call fcn.2d9e3d1d10
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x80]
xor edi, edi
test eax, eax
je 0x2d9e3d1b38
cmp dword [rbx + 0x24], edi
je 0x2d9e3d1b35
mov rcx, qword [rbx + 0x28]
lea r8d, [rdi + 0x10]
xor r9d, r9d
lea rdx, [0x2d9e409ed0]
call qword [sym.imp.WS2_32.dll_send]
mov dword [rbx + 0x68], edi
cmp dword [rbx + 0x18], edi
je 0x2d9e3d1b50
mov rax, qword [rbx]
mov rcx, rbx
mov r8d, dword [rbx + 0x20]
mov edx, dword [rbx + 0x1c]
call qword [rax + 0x120]
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x2d9e3d1b63
call qword [sym.imp.WS2_32.dll_WSACloseEvent]
mov qword [rbx + 0x30], rdi
mov rcx, qword [rbx + 0x28]
cmp rcx, 0xffffffffffffffff
je 0x2d9e3d1b8a
mov edx, 1
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rbx + 0x28], 0xffffffffffffffff
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 0x170]
mov rbx, qword [rsp + 0x30]
mov eax, 1
add rsp, 0x20
pop rdi
ret

Function at 0x2d9e3d2500
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rbx, rcx
test r8d, r8d
je 0x2d9e3d2580
mov rdx, qword [rcx + 0x30]
mov r8d, 0x30
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x2d9e3d25fa
cmp word [rdi], 2
mov eax, 0x1c
mov rcx, qword [rbx + 0x28]
mov r8d, 0x10
cmovne r8d, eax
mov rdx, rdi
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x2d9e3d2570
cmp eax, 0xffffffff
jne 0x2d9e3d25fa
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x2d9e3d25fa
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
cmp word [rdx], 2
mov eax, 0x1c
mov rcx, qword [rcx + 0x28]
mov r8d, 0x10
cmovne r8d, eax
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x2d9e3d25fa
mov rdx, qword [rbx + 0x30]
mov r8d, 0x23
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x2d9e3d25fa
mov dword [rbx + 0x68], 1
xor ecx, ecx
mov dword [rbx + 0x6c], 1
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0xf8]
cmp eax, 2
jne 0x2d9e3d2570
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x4c7
test eax, eax
cmove eax, ecx
mov ecx, eax
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x2d9e3d2a00
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov eax, dword [rcx + 0x1fc]
mov rbx, rcx
test eax, eax
jne 0x2d9e3d2aee
nop dword [rax + rax]
mov r8d, dword [rbx + 0x40]
xor r9d, r9d
mov rdx, qword [rbx + 0x80]
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test eax, eax
jle 0x2d9e3d2a97
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r9, qword [rbx]
mov r8d, edi
mov rdx, qword [rbx + 0x80]
mov rcx, rbx
call qword [r9 + pe_nt_image_headers64]
cmp eax, 2
jne 0x2d9e3d2aa0
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 0x4c7
cmove eax, ecx
mov dword [rbx + 0x18], 1
mov dword [rbx + 0x1c], 4
mov dword [rbx + 0x20], eax
xor eax, eax
mov dword [rbx + 0x24], 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
cmp edi, 0xffffffff
je 0x2d9e3d2ae1
test edi, edi
je 0x2d9e3d2abe
mov eax, dword [rbx + 0x1fc]
test eax, eax
je 0x2d9e3d2a20
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov dword [rbx + 0x18], 1
xor eax, eax
mov qword [rbx + 0x1c], 5
mov dword [rbx + 0x24], 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x2d9e3d2a72
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov eax, dword [rdx + 0x30]
mov r14, r8
mov rdi, rdx
mov rsi, rcx
cmp eax, dword [rdx + 0x28]
je 0x2d9e3d2cf8
nop
mov r8d, dword [rsi + 0x40]
mov eax, dword [rdi + 0x30]
sub eax, dword [rdi + 0x28]
mov rdx, qword [rdi + 0x28]
cmp eax, r8d
mov rcx, qword [rsi + 0x28]
cmovl r8d, eax
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
mov ebp, eax
test eax, eax
jle 0x2d9e3d2ce7
lea rcx, [rsi + 0x198]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
sub dword [rsi + 0x1f8], ebp
lea rcx, [rsi + 0x198]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsi]
mov r8d, ebp
mov rdx, qword [rdi + 0x28]
mov rcx, rsi
call qword [rax + 0x108]
mov eax, dword [rdi + 0x30]
sub eax, dword [rdi + 0x28]
cmp eax, ebp
cmovl ebp, eax
movsxd rax, ebp
add qword [rdi + 0x28], rax
jmp 0x2d9e3d2cec
cmp ebp, 0xffffffff
je 0x2d9e3d2d18
mov eax, dword [rdi + 0x30]
cmp eax, dword [rdi + 0x28]
jne 0x2d9e3d2c70
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x2d9e3d2d2e
mov dword [r14], 1
jmp 0x2d9e3d2cf8
mov dword [rsi + 0x20], eax
xor eax, eax
mov dword [rsi + 0x18], 1
mov dword [rsi + 0x1c], 3
mov dword [rsi + 0x24], 1
jmp 0x2d9e3d2cfd
Function at 0x2d9e3d5d80
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x68
mov rax, qword [0x2d9e415008]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov eax, dword [0x2d9e419ea8]
test eax, eax
jne 0x2d9e3d5df7
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword [rsp + 0x40]
lea eax, [rax*2 + 2]
cmp eax, 0x200
jae 0x2d9e3d5de8
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword [rsp + 0x40]
lea eax, [rax*2 + 2]
mov dword [0x2d9e419ea8], eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.2d9e3da7d0
add rsp, 0x68
ret
mov dword [0x2d9e419ea8], 0x200
mov eax, 0x200
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.2d9e3da7d0
add rsp, 0x68
ret

Function at 0x2d9e3d6640
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x2d9e415008]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor esi, esi
mov rbx, rcx
mov edi, esi
cmp dword [rcx + 0x18], esi
jbe 0x2d9e3d66ae
nop word [rax + rax]
mov qword [rsp + 0x28], rsi
lea r8, [0x2d9e3d76e0]
mov r9, rbx
mov dword [rsp + 0x20], esi
xor edx, edx
xor ecx, ecx
call fcn.2d9e3e4db4
mov qword [rsp + 0x30], rax
test rax, rax
je 0x2d9e3d66d0
lea rcx, [rbx + 0x98]
lea rdx, [rsp + 0x30]
call fcn.2d9e3d9190
inc edi
cmp edi, dword [rbx + 0x18]
jb 0x2d9e3d6670
mov eax, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.2d9e3da7d0
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov dword [rbx + 0x74], 8
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
jmp 0x2d9e3d66b3

Function at 0x2d9e3d7b50
Capabilities:
Set socket configuration

Disassembly:
push rbx
push rbp
push rsi
push r14
sub rsp, 0x48
mov rax, qword [0x2d9e415008]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbp, r8
mov dword [rsp + 0x30], 0
mov rsi, r9
mov dword [rsp + 0x20], 4
mov r14, rcx
lea r9, [rsp + 0x30]
mov edx, 0xffff
mov r8d, 0x7010
mov rcx, qword [rbp + 0xc0]
call qword [sym.imp.WS2_32.dll_setsockopt]
lea rcx, [rbp + 0x68]
mov dword [rbp + 0x58], 1
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [rbp + 0x40], 0
jne 0x2d9e3d7c15
lea rcx, [rbp + 0x68]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor r9d, r9d
mov dword [rsp + 0x20], 0
xor r8d, r8d
mov rdx, rbp
mov rcx, r14
call fcn.2d9e3d6b60
lea rcx, [r14 + 0x100]
mov rdx, rsi
call fcn.2d9e3cfd50
test eax, eax
jne 0x2d9e3d7bfe
mov rcx, qword [rsi + 0x20]
mov r8, rsi
xor edx, edx
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.2d9e3da7d0
add rsp, 0x48
pop r14
pop rsi
pop rbp
pop rbx
ret
xor ecx, ecx
mov qword [rsp + 0x40], rdi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [r14]
mov rdx, rbp
mov rcx, r14
call qword [rax + 0x1b8]
lea rcx, [rbp + 0x68]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp edi, 2
mov rdi, qword [rsp + 0x40]
je 0x2d9e3d7bc0
mov r8, rsi
mov rdx, rbp
mov rcx, r14
call fcn.2d9e3d7ed0
jmp 0x2d9e3d7bfe