joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180002da4
Capabilities:
Allocate or change rwx memory

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r13
push r14
push r15
sub rsp, 0x40
mov rsi, r9
mov ebx, r8d
mov r12, rdx
mov r15, rcx
test byte [rcx + 8], 1
je 0x180002de1
movzx edx, word [rcx + 0x18]
mov rcx, r12
call fcn.1800041d4
jmp 0x180002ded
mov rdx, qword [rcx + 0x10]
mov rcx, r12
call fcn.18000412c
mov r14, rax
test rax, rax
je 0x180002fa7
and dword [rsp + 0x28], 0
lea r9, [rsp + 0x28]
mov edx, 4
lea r8d, [rdx + 0x3c]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180002f9f
mov qword [rsi + 0x30], r15
mov eax, dword [r14]
add rax, r12
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], r14
mov eax, dword [r14]
mov qword [rsi + 0x20], rax
mov r9, rsi
mov r8d, ebx
mov rdx, r12
mov rcx, r15
call fcn.180002714
mov dword [rsp + 0x20], eax
cmp eax, 1
jne 0x180002fb0
mov r13, qword [rsi + 0x10]
xor edi, edi
mov qword [rsp + 0x30], rdi
mov edx, 0x22000020
mov rcx, r12
call fcn.180004360
mov rcx, rax
mov qword [rsp + 0x38], rax
mov ebx, 0x25ff
test rcx, rcx
je 0x180002ece
test rdi, rdi
jne 0x180002ebc
mov edx, dword [rcx + 0x10]
cmp edx, 0xe
jb 0x180002ebc
mov rdi, qword [rcx + 8]
mov qword [rsp + 0x30], rdi
cmp word [rdi], bx
jne 0x180002ebc
cmp dword [rdi + 2], 0
jne 0x180002ebc
cmp qword [rdi + 6], r13
je 0x180002ebc
lea rax, [rdi + 0xe]
mov qword [rcx + 8], rax
lea eax, [rdx - 0xe]
mov dword [rcx + 0x10], eax
xor edi, edi
mov qword [rsp + 0x30], rdi
jmp 0x180002e79
mov rbx, qword [rcx]
call fcn.180001e84
mov rcx, rbx
mov qword [rsp + 0x38], rbx
jmp 0x180002e74
test rdi, rdi
je 0x180002f2d
lea r9, [rsp + 0x24]
mov edx, 0xe
lea r8d, [rdx + 0x32]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180002f2d
and dword [rdi + 2], 0
mov rax, qword [rsi + 0x28]
mov qword [rdi + 6], rax
mov word [rdi], bx
mov qword [rsi + 0x28], rdi
mov qword [r15 + 0x28], rdi
mov r8d, dword [rsp + 0x24]
mov eax, 0x20
cmp r8d, 0x40
cmovne r8d, eax
mov dword [rsp + 0x24], r8d
lea r9, [rsp + 0x24]
lea edx, [rax - 0x12]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rax, qword [rsi + 0x28]
sub rax, r12
mov dword [r14], eax
lea r9, [rsp + 0x28]
mov r8d, dword [rsp + 0x28]
mov edx, 4
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
or dword [rsi + 0x38], 0x102
lea rcx, [0x180035a80]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x180035ab0]
mov qword [rsi], rax
lea rdx, [0x180035ab0]
mov qword [rsi + 8], rdx
mov qword [rax + 8], rsi
mov qword [0x180035ab0], rsi
lea rcx, [0x180035a80]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rsi + 0x20]
add rcx, r12
mov qword [r15 + 0x30], rcx
xor eax, eax
jmp 0x180002fac
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180002fac
mov eax, 2
mov dword [rsp + 0x20], eax
jmp 0x180002fb6
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov r12, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
ret
Function at 0x1800036a8
Capabilities:
Allocate or change rwx memory
Map section object

Disassembly:
mov r11, rsp
sub rsp, 0x68
xor r9d, r9d
mov dword [rsp + 0x48], 0x40
mov dword [r11 - 0x28], r9d
lea rax, [r11 - 0x18]
mov dword [rsp + 0x38], 2
mov qword [r11 - 0x38], rax
lea rax, [r11 + 0x20]
mov qword [r11 - 0x40], rax
mov qword [r11 - 0x48], r9
mov qword [r11 - 0x18], r9
mov qword [r11 + 0x20], r9
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
add rsp, 0x68
ret

Function at 0x180004458
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
movsxd r10, dword [rcx + 0x3c]
mov r11d, edx
add r10, rcx
movzx eax, word [r10 + 0x14]
lea r9, [r10 + 0x18]
movzx ebx, word [r10 + 6]
add r9, rax
xor r8d, r8d
cmp r11d, dword [r9 + 0xc]
jb 0x18000449c
mov ecx, dword [r10 + 0x3c]
lea edx, [rcx - 1]
add edx, dword [r9 + 0x10]
lea eax, [rcx - 1]
not eax
and edx, eax
add edx, dword [r9 + 0xc]
cmp r11d, edx
jb 0x1800044ac
add r9, 0x28
mov eax, 0xffff
add bx, ax
je 0x1800044b7
jmp 0x18000447b
mov r8d, dword [r9 + 0x14]
sub r8d, dword [r9 + 0xc]
add r8d, r11d
mov rbx, qword [rsp + 8]
mov eax, r8d
ret

Function at 0x180004a4c
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x20
and dword [rsp + 0x68], 0
mov r12, rcx
mov esi, 0x1000
mov r14, r8
mov ecx, esi
mov r15, rdx
mov edi, 8
call fcn.180001e70
mov rbx, rax
test rax, rax
je 0x180004af1
lea r9, [rsp + 0x68]
mov r8d, esi
mov rdx, rbx
mov rcx, r12
call sub.PSAPI.DLL_EnumProcessModules
mov ebp, eax
test eax, eax
je 0x180004ac7
mov ecx, dword [rsp + 0x68]
cmp esi, ecx
ja 0x180004acb
mov rcx, rbx
call fcn.180001e84
add esi, 0x1000
mov ecx, esi
call fcn.180001e70
mov rbx, rax
test rax, rax
jne 0x180004a89
mov ecx, dword [rsp + 0x68]
test rbx, rbx
je 0x180004af1
test ebp, ebp
je 0x180004ae1
shr ecx, 3
mov qword [r15], rbx
xor edi, edi
mov dword [r14], ecx
jmp 0x180004af1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
mov edi, eax
call fcn.180001e84
mov rbx, qword [rsp + 0x50]
mov eax, edi
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x180004b0c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rsi, rdx
mov rdi, rcx
lea rdx, [rsp + 0x40]
xor ebx, ebx
call fcn.180004588
test eax, eax
jne 0x180004bf3
mov rdx, rsi
mov rcx, rdi
call fcn.18000412c
test rax, rax
je 0x180004be9
sub eax, edi
mov rcx, rdi
mov edx, eax
call fcn.180004458
mov ebp, eax
test eax, eax
je 0x180004be9
mov rcx, qword [rsp + 0x40]
lea r8d, [rbx + 1]
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x180004be9
xor r9d, r9d
xor r8d, r8d
mov edx, ebp
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, ebp
jne 0x180004be0
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rbx
lea r8d, [rbx + 4]
mov rcx, rsi
lea rdx, [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180004be0
cmp dword [rsp + 0x80], 4
jne 0x180004be0
mov ebx, dword [rsp + 0x88]
add rbx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x40]
call fcn.180001e84
mov rax, rbx
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret

Function at 0x180004cc8
Capabilities:
Allocate or change rwx memory
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x500
mov r14d, r8d
mov rsi, rdx
mov rdi, rcx
xor edx, edx
mov r8d, 0x4d0
lea rcx, [rsp + 0x30]
call sub.ntdll.dll_memset
mov rcx, qword [rdi]
xor edx, edx
mov r9d, 0x3000
mov dword [rsp + 0x60], 0x100003
mov r8d, 0x318
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
xor ebx, ebx
mov rbp, rax
test rax, rax
je 0x180004e04
mov rcx, qword [rdi + 8]
lea rdx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_NtGetContextThread]
test eax, eax
jns 0x180004d4a
mov ebx, 5
jmp 0x180004e0c
mov rax, qword [rsp + 0x128]
lea rdx, [0x18000a439]
mov qword [rsi], rax
lea rcx, [rsi + 0x218]
lea rax, [rbp + 0x218]
mov qword [rsp + 0xa8], rbp
mov qword [rsp + 0x128], rax
test r14b, 0x10
lea rax, [0x18000a410]
mov r8d, 0x100
cmove rdx, rax
call sub.ntdll.dll_memcpy
lea rax, [rsi + 0x18]
cmp qword [rsi + 0x10], rax
jne 0x180004da6
lea rax, [rbp + 0x18]
mov qword [rsi + 0x10], rax
mov rcx, qword [rdi]
lea rax, [rsp + 0x520]
mov r9d, 0x318
mov qword [rsp + 0x20], rax
mov r8, rsi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x180004e04
mov rcx, qword [rdi + 8]
lea rdx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_NtSetContextThread]
test eax, eax
js 0x180004d40
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
jmp 0x180004e0c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea r11, [rsp + 0x500]
mov eax, ebx
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x180004ec4
Capabilities:
Get file size
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
push r14
push r15
sub rsp, 0x40
xor edi, edi
mov r14, r8
and qword [rax - 0x28], rdi
mov r15, rdx
mov dword [rax - 0x30], 0x80
xor r9d, r9d
mov edx, 0x80000000
mov dword [rax - 0x38], 3
lea r8d, [rdi + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x180004f6e
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test eax, eax
jne 0x180004f25
mov ebx, 0xe8
jmp 0x180004f76
lea ecx, [rbx + 1]
call fcn.180001e70
mov rdi, rax
test rax, rax
je 0x180004f6e
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x78]
mov r8d, ebx
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180004f6e
cmp ebx, dword [rsp + 0x78]
je 0x180004f60
mov ebx, 0x1e
jmp 0x180004f76
mov byte [rbx + rdi], 0
mov qword [r15], rdi
mov dword [r14], ebx
xor ebx, ebx
jmp 0x180004f76
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp rsi, 0xffffffffffffffff
je 0x180004f85
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
je 0x180004f96
test ebx, ebx
je 0x180004f96
mov rcx, rdi
call fcn.180001e84
mov rsi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x180008bcc
Capabilities:
Initialize winsock library

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, 0x1c0
mov r14, rdx
mov rsi, rcx
mov ecx, 0x202
lea rdx, [rsp + 0x20]
mov rbp, r8
mov edi, 8
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov rcx, qword [0x180035658]
lea r8d, [rdi + 0x68]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x180008c64
xor edx, edx
lea r8d, [rdi + 0x68]
mov rcx, rax
call sub.ntdll.dll_memset
lea rcx, [rbx + 0x40]
mov rdx, r14
lea r8d, [rdi + 8]
call sub.ntdll.dll_memcpy
mov rcx, rbp
call qword [sym.imp.SHLWAPI.dll_StrDupA]
mov qword [rbx + 0x38], rax
test rax, rax
je 0x180008c64
mov rcx, rbx
call fcn.18000c7b8
mov edi, eax
test eax, eax
jne 0x180008c64
mov qword [rsi], rbx
jmp 0x180008c6c
mov rcx, rbx
call sym.vncdll64.dll_VncStopServer
lea r11, [rsp + 0x1c0]
mov eax, edi
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x18000a200
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor edi, edi
mov esi, ecx
mov rcx, qword [0x180035658]
xor edx, edx
mov ebp, edi
lea r8d, [rdi + 0x20]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x18000a317
mov qword [rax + 8], rax
mov qword [rax], rax
mov dword [rax + 0x18], esi
call qword [sym.imp.KERNEL32.dll_GetVersion]
call fcn.18000add8
cmp eax, 6
ja 0x18000a275
call fcn.18000add8
cmp eax, 6
jne 0x18000a267
call fcn.18000ade0
cmp eax, 1
ja 0x18000a275
lea rdx, [0x180009e84]
mov ecx, 5
jmp 0x18000a281
lea rdx, [0x1800098d0]
mov ecx, 4
mov r9d, esi
xor r8d, r8d
call qword [sym.imp.USER32.dll_SetWindowsHookExA]
mov qword [rbx + 0x10], rax
cmp rax, rdi
je 0x18000a30d
lea rcx, [0x1800357c8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [0x1800357b8]
lea rdx, [0x1800357b8]
cmp rcx, rdx
je 0x18000a2c8
mov eax, dword [rbx + 0x18]
cmp dword [rcx + 0x18], eax
je 0x18000a2fe
ja 0x18000a2c8
mov rcx, qword [rcx]
cmp rcx, rdx
jne 0x18000a2b9
mov rax, qword [rcx]
mov qword [rbx], rax
mov qword [rbx + 8], rcx
mov qword [rax + 8], rbx
mov qword [rcx], rbx
lea rcx, [0x1800357c8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebp, ebp
je 0x18000a31c
mov rcx, qword [0x180035658]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18000a31c
mov rax, qword [rbx + 0x10]
mov ebp, 1
mov qword [rcx + 0x10], rax
jmp 0x18000a2d9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x18000a2ea
mov edi, 8
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x18000a64c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor r8d, r8d
xor edx, edx
mov rsi, rcx
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
test eax, eax
je 0x18000a69e
lea ecx, [rax + rax]
call fcn.180001e70
mov rbx, rax
test rax, rax
je 0x18000a69e
mov r8d, edi
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x18000a69e
mov rcx, rbx
call fcn.180001e84
xor ebx, ebx
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x18000a918
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor r15d, r15d
mov edi, r8d
mov dword [rsp + 0x78], r15d
mov rbp, rdx
mov r14, rcx
mov esi, r15d
mov rbx, rdx
test rdx, rdx
je 0x18000a949
test r8d, r8d
jne 0x18000a9a6
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
lea r9, [rsp + 0x78]
mov qword [rsp + 0x20], r15
mov r8d, 1
lea rdx, [rsp + 0x68]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18000a9ab
cmp dword [rsp + 0x78], 1
jne 0x18000a9ab
mov al, byte [rsp + 0x68]
cmp al, 0xa
je 0x18000a991
cmp al, 0xd
jne 0x18000a997
test esi, esi
jne 0x18000a9ab
jmp 0x18000a9a6
movsx eax, al
mov esi, 1
mov word [rbx], ax
add rbx, 2
add edi, 0xffffffff
jne 0x18000a95c
mov word [rbx], r15w
sub rbx, rbp
sar rbx, 1
mov eax, ebx
jmp 0x18000a94b

Function at 0x18000ae44
Capabilities:
Hash data with crc32

Disassembly:
or r11d, 0xffffffff
mov r8d, r11d
jmp 0x18000ae7a
movsx r9d, byte [rcx]
add edx, r11d
inc rcx
mov r10d, 8
mov eax, r9d
xor eax, r8d
shr r8d, 1
test al, 1
je 0x18000ae71
xor r8d, 0xedb88320
shr r9d, 1
sub r10, 1
jne 0x18000ae5d
test edx, edx
jne 0x18000ae4d
mov eax, r8d
ret

Function at 0x18000ae84
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp dword [0x180035818], 0
mov rdi, rcx
mov ebx, edx
jne 0x18000aea1
call fcn.18000aee8
or r8d, 0xffffffff
test ebx, ebx
je 0x18000aed5
mov rdx, rbx
movzx ecx, byte [rdi]
lea r9, [0x180035ac0]
mov eax, r8d
inc rdi
xor rcx, rax
movzx eax, cl
mov ecx, r8d
shr ecx, 8
mov r8d, dword [r9 + rax*4]
xor r8d, ecx
sub rdx, 1
jne 0x18000aeac
mov rbx, qword [rsp + 0x30]
not r8d
mov eax, r8d
add rsp, 0x20
pop rdi
ret

Function at 0x18000afd0
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov edx, 1
mov rdi, rcx
lea ecx, [rdx + 1]
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18000b046
mov r8d, 0x10
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x18000b046
lea r9, [rsp + 0x48]
mov dword [rsp + 0x48], 1
lea edx, [rax + 6]
mov dword [rsp + 0x20], 4
lea r8d, [rax + 1]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x18000b046
mov edx, 0x7530
mov rcx, rbx
call fcn.18000c840
jmp 0x18000b061
mov edx, 2
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
or rbx, 0xffffffffffffffff
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x18000b070
Capabilities:
Connect socket
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x50
and dword [rax - 0x20], 0
mov rbp, rcx
xor eax, eax
mov rcx, rdx
mov qword [rsp + 0x3c], rax
mov rsi, r9
mov dword [rsp + 0x44], eax
mov ebx, r8d
call fcn.18000af40
mov rdi, rax
test rax, rax
je 0x18000b1c5
mov edx, 1
mov dword [rax + 8], ebx
lea ecx, [rdx + 1]
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18000b193
mov r8d, 0x10
mov rdx, rbp
mov rcx, rax
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x18000b193
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], 1
lea edx, [rax + 6]
mov dword [rsp + 0x20], 4
lea r8d, [rax + 1]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x18000b193
mov edx, 0x7530
mov rcx, rbx
call fcn.18000c840
mov r8d, dword [rdi]
xor r9d, r9d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_send]
cmp dword [rdi], eax
jne 0x18000b193
xor r9d, r9d
lea rdx, [rsp + 0x38]
mov rcx, rbx
lea r8d, [r9 + 0x10]
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0x10
jne 0x18000b193
cmp dword [rsp + 0x38], 0x99
jne 0x18000b193
test rsi, rsi
je 0x18000b169
movzx eax, word [rsp + 0x44]
mov word [rsi], ax
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x18000b17e
movzx eax, word [rsp + 0x40]
mov word [rcx], ax
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x18000b1ae
mov eax, dword [rsp + 0x3c]
mov dword [rcx], eax
jmp 0x18000b1ae
mov edx, 2
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
or rbx, 0xffffffffffffffff
mov rcx, qword [0x180035658]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rax, rbx
jmp 0x18000b1c9
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x18000b2c8
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xa0
mov rbx, rcx
mov rcx, qword [rcx + 0x28]
jmp 0x18000b339
mov eax, dword [rsp + 0xb0]
test eax, eax
jle 0x18000b358
mov rcx, qword [rbx + 0x28]
lea rdx, [rsp + 0x20]
mov r8d, 0x80
cmp eax, r8d
cmovl r8d, eax
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test eax, eax
jle 0x18000b335
lea r8, [rbx + 0x41d6]
mov edx, eax
lea rcx, [rsp + 0x20]
call fcn.18000c918
mov eax, dword [rsp + 0xb0]
sub eax, edi
mov dword [rsp + 0xb0], eax
test eax, eax
jg 0x18000b2e9
mov rcx, qword [rbx + 0x28]
and dword [rsp + 0xb0], 0
lea r8, [rsp + 0xb0]
mov edx, 0x4004667f
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x18000b2de
xor eax, eax
mov rbx, qword [rsp + 0xb8]
add rsp, 0xa0
pop rdi
ret
Function at 0x18000b7ac
Capabilities:
Encrypt data using rc4 ksa

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, 0x30
cmp byte [rcx + 0x63], 0
mov r14, rdx
mov ebp, r8d
mov rbx, rcx
jne 0x18000b7e4
call fcn.18000c5b0
test eax, eax
jne 0x18000b7e4
xor eax, eax
jmp 0x18000b926
cmp byte [rbx + 0x73], 0
jne 0x18000b7dd
cmp byte [rbx + 0x63], 0
lea rdi, [rbx + 0x90]
je 0x18000b8d1
mov cl, byte [rbx + 0x80]
mov esi, 1
mov r8, qword [rdi]
shl esi, cl
test r8, r8
je 0x18000b81f
mov rcx, qword [0x180035658]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x180035658]
xor edx, edx
movsxd rsi, esi
mov r8, rsi
shl r8, 2
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rdi], rax
test rax, rax
je 0x18000b906
xor r9d, r9d
test rsi, rsi
jle 0x18000b906
lea r10, [rax + 1]
movzx r8d, word [rbx + 0x88]
xor edx, edx
mov cl, byte [rbx + 0x8c]
mov eax, r9d
sar eax, cl
and eax, r8d
imul eax, eax, 0xff
div r8d
xor edx, edx
mov byte [r10 - 1], al
mov eax, r9d
movzx r8d, word [rbx + 0x84]
mov cl, byte [rbx + 0x8a]
sar eax, cl
and eax, r8d
imul eax, eax, 0xff
div r8d
xor edx, edx
mov byte [r10 + 1], al
mov eax, r9d
movzx r8d, word [rbx + 0x86]
inc r9d
mov cl, byte [rbx + 0x8b]
sar eax, cl
and eax, r8d
imul eax, eax, 0xff
div r8d
mov byte [r10], al
lea r10, [r10 + 4]
sub rsi, 1
jne 0x18000b854
jmp 0x18000b906
lea rdx, [rbx + 0x60]
mov dword [rsp + 0x22], 0xff0100
lea r8, [rsp + 0x20]
mov word [rsp + 0x20], 0x1820
mov rcx, rdi
mov dword [rsp + 0x26], 0xff00ff
mov word [rsp + 0x2a], 0x810
mov byte [rsp + 0x2c], 0
call qword [0x1800336f8]
mov rdx, qword [rdi]
test rdx, rdx
je 0x18000b7dd
mov r8, rbp
mov rcx, r14
shl r8, 2
call sub.ntdll.dll_memcpy
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

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

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, 0x20
mov esi, r8d
mov rbp, rdx
mov r14, rcx
xor ebx, ebx
mov rcx, qword [r14 + 0x28]
xor r9d, r9d
mov r8d, esi
mov rdx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rdi, eax
test eax, eax
je 0x18000bd73
cmp edi, 0xffffffff
je 0x18000bd69
lea r8, [r14 + 0x41d6]
mov edx, edi
mov rcx, rbp
call fcn.18000c918
add rbp, rdi
sub esi, edi
je 0x18000bd78
jmp 0x18000bd30
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x18000bd78
mov ebx, 0x4d4
mov rbp, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x18000be28
Capabilities:
Get socket status
Send data
Send data on socket

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, 0x240
movsxd rsi, r8d
mov r14, rdx
mov rbp, rcx
xor ebx, ebx
and dword [rsp + 0x30], ebx
lea rcx, [rsp + 0x38]
xor edx, edx
mov r8d, 0x200
call sub.ntdll.dll_memset
mov ecx, esi
call fcn.180001e70
mov rdi, rax
test rax, rax
je 0x18000bef0
mov r8, rsi
mov rdx, r14
mov rcx, rdi
call sub.ntdll.dll_memcpy
lea r8, [rbp + 0x40d4]
mov edx, esi
mov rcx, rdi
call fcn.18000c918
mov rax, qword [rbp + 0x28]
lea r8, [rsp + 0x30]
and qword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x38], rax
or ecx, 0xffffffff
mov dword [rsp + 0x30], 1
call qword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x18000bee6
mov rcx, qword [rbp + 0x28]
mov r8d, esi
movsxd rdx, ebx
sub r8d, ebx
add rdx, rdi
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x18000bee6
add ebx, eax
cmp ebx, esi
jl 0x18000be93
mov rcx, rdi
call fcn.180001e84
mov eax, ebx
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret

Function at 0x18000c7b8
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
call fcn.18001fa64
mov ebx, eax
test eax, eax
jne 0x18000c825
lea rcx, [rdi + 0x10]
mov qword [rdi + 8], rdi
mov qword [rdi], rdi
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor r9d, r9d
lea edx, [rbx + 1]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rdi + 0x60], rax
test rax, rax
je 0x18000c832
and qword [rsp + 0x28], 0
lea r8, [0x18000b36c]
and dword [rsp + 0x20], ebx
mov r9, rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rdi + 0x58], rax
test rax, rax
je 0x18000c832
mov ebx, dword [rdi + 0x68]
cmp ebx, 0xffffffff
jne 0x18000c832
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x18000c840
Capabilities:
Set socket configuration

Disassembly:
mov dword [rsp + 0x10], edx
push rbx
sub rsp, 0x30
lea r9, [rsp + 0x48]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1006
mov rbx, rcx
call qword [sym.imp.WS2_32.dll_setsockopt]
lea r9, [rsp + 0x48]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1005
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x30
pop rbx
ret