joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800223a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp qword [rsp + 0x58], 0
jne 0x1800223c2
xor eax, eax
jmp 0x180022525
mov rax, qword [rsp + 0x58]
mov qword [rsp], rax
mov rax, qword [rsp]
mov qword [rsp + 0x18], rax
cmp qword [rsp + 0x18], 0
jne 0x1800223e3
xor eax, eax
jmp 0x180022525
mov rax, qword [rsp + 0x18]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x18002241e
mov rax, qword [rsp + 0x18]
movzx eax, word [rax]
mov rcx, qword [rsp + 0x20]
add eax, dword [rcx]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx]
cmp eax, dword [rcx]
je 0x180022425
xor eax, eax
jmp 0x180022525
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [rsp + 8], rax
cmp qword [rsp + 8], 0
jne 0x180022458
xor eax, eax
jmp 0x180022525
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x10], 0
jmp 0x1800224b5
mov rax, qword [rsp + 0x10]
inc rax
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x14]
cmp qword [rsp + 0x10], rax
jae 0x180022523
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x10]
mov eax, dword [rax + rcx*4]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x60]
sub rcx, rax
movzx edx, byte [rax]
cmp dl, byte [rax + rcx]
jne 0x1800224f6
inc rax
test dl, dl
jne 0x1800224e3
xor eax, eax
jmp 0x1800224fb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x180022521
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x10]
movzx eax, word [rax + rcx*2]
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
jmp 0x180022525
jmp 0x1800224a8
xor eax, eax
add rsp, 0x48
ret
Function at 0x1800348d0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x278
mov eax, dword [rsp + 0x280]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x30], 0x238
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0xffffffffffffffff
jne 0x18003490d
xor al, al
jmp 0x18003495b
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x18003494e
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0x38], eax
jne 0x18003493a
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x18003495b
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x180034921
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
add rsp, 0x278
ret
Function at 0x1800373f0
Capabilities:
Check if file exists
Get common file path
Get file attributes
Move file

Disassembly:
mov byte [rsp + 8], cl
sub rsp, 0x518
mov edx, 0x104
lea rcx, [rsp + 0x100]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x180037419
xor al, al
jmp 0x1800375a9
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0x70]
call fcn.1800056f0
nop
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x22]
call fcn.180037630
mov rcx, rax
call fcn.18003a610
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.180009e20
lea rdx, [rsp + 0xdc]
lea rcx, [rsp + 0x23]
call fcn.1800376d0
mov rcx, rax
call fcn.18003a5d0
mov r8, rax
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.180007e50
nop
lea rdx, [rsp + 0xc4]
lea rcx, [rsp + 0x24]
call fcn.180037770
mov rcx, rax
call fcn.18003a590
mov r8, rax
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x90]
call fcn.180007e50
movzx eax, byte [rsp + 0x520]
test eax, eax
je 0x18003752a
lea rcx, [rsp + 0x50]
call fcn.180005490
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180037518
lea rcx, [rsp + 0x90]
call fcn.180005490
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x50]
call fcn.180005490
mov qword [rsp + 0x38], rax
mov r8d, 9
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x180037518
mov dword [rsp + 0x28], 1
jmp 0x180037520
mov dword [rsp + 0x28], 0
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x2c], eax
jmp 0x180037565
lea rcx, [rsp + 0x50]
call fcn.180005490
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x90]
call fcn.180005490
mov qword [rsp + 0x48], rax
mov r8d, 9
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0
je 0x180037573
mov byte [rsp + 0x20], 1
jmp 0x180037578
mov byte [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
mov byte [rsp + 0x21], al
lea rcx, [rsp + 0x90]
call fcn.180005580
nop
lea rcx, [rsp + 0x50]
call fcn.180005580
nop
lea rcx, [rsp + 0x70]
call fcn.180005580
movzx eax, byte [rsp + 0x21]
add rsp, 0x518
ret
Function at 0x180037d80
Capabilities:
Get system information on windows

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x48
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
call fcn.18002d6e0
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x20], 0x1000
mov eax, dword [rsp + 0x20]
mov r8d, eax
mov edx, 8
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x180037df2
lea r9, [rsp + 0x2c]
mov r8d, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rsp + 0x24], eax
jmp 0x180037df9
xor eax, eax
jmp 0x180037e7b
cmp dword [rsp + 0x24], 0xc0000004
jne 0x180037e43
mov r8, qword [rsp + 0x30]
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x20]
shl eax, 1
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0x64
jle 0x180037e43
mov dword [rsp + 0x24], 0xc0000157
jmp 0x180037e51
cmp dword [rsp + 0x24], 0xc0000004
je 0x180037daf
cmp dword [rsp + 0x24], 0
jl 0x180037e5f
mov rax, qword [rsp + 0x30]
jmp 0x180037e7b
cmp qword [rsp + 0x30], 0
je 0x180037e79
mov r8, qword [rsp + 0x30]
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
xor eax, eax
add rsp, 0x48
ret
Function at 0x180038b50
Capabilities:
Get common file path

Disassembly:
push rdi
sub rsp, 0x660
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0xffffffffffffffff
mov r8d, 0x10ac0
lea rdx, [0x180356fc0]
lea rcx, [rsp + 0x58]
call fcn.1800c0670
nop
lea rcx, [rsp + 0x58]
call fcn.180005270
mov qword [rsp + 0x50], rax
mov qword [rsp + 0xa0], 0x10ac0
cmp qword [rsp + 0x50], 0
jne 0x180038bc2
mov qword [rsp + 0x70], 0xffffffffffffffff
lea rcx, [rsp + 0x58]
call fcn.180005290
mov rax, qword [rsp + 0x70]
jmp 0x180038de0
lea rax, [rsp + 0x250]
mov rdi, rax
xor eax, eax
mov ecx, 0x410
rep stosb byte [rdi], al
mov edx, 0x104
lea rcx, [rsp + 0x250]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x180038c15
lea rcx, [rsp + 0x58]
call fcn.18000dc80
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x58]
call fcn.180005290
mov rax, qword [rsp + 0x78]
jmp 0x180038de0
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x30]
call fcn.180038e90
mov rcx, rax
call fcn.18003a2d0
mov qword [rsp + 0x80], rax
lea rdx, [rsp + 0xd8]
lea rcx, [rsp + 0x31]
call fcn.180038e60
mov rcx, rax
call fcn.18003a2d0
mov qword [rsp + 0x88], rax
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x88]
call fcn.180037ce0
movzx eax, al
movzx eax, byte [0x18036c6e4]
test eax, eax
je 0x180038c86
xor ecx, ecx
call fcn.1800373f0
movzx eax, al
lea rdx, [rsp + 0x10e]
lea rcx, [rsp + 0x32]
call fcn.180038f30
mov rcx, rax
call fcn.18003a290
mov rdx, rax
lea rcx, [rsp + 0x250]
call fcn.18003a990
mov byte [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 0x10ac0
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x250]
call fcn.1800377a0
mov dword [rsp + 0x38], eax
lea rcx, [rsp + 0x58]
call fcn.18000dc80
mov eax, dword [rsp + 0x38]
lea rax, [rsp + 0x140]
mov rdi, rax
xor eax, eax
mov ecx, 0x104
rep stosb byte [rdi], al
lea rax, [rsp + 0x140]
mov rdi, rax
xor eax, eax
mov ecx, 0x104
rep stosb byte [rdi], al
mov edx, 0x104
lea rcx, [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea rdx, [rsp + 0xf8]
lea rcx, [rsp + 0x33]
call fcn.180038fd0
mov rcx, rax
call fcn.18003a250
mov rdx, rax
lea rcx, [rsp + 0x140]
call fcn.18003a9c0
movzx r9d, byte [0x18036c6e4]
mov r8b, 1
lea rdx, [rsp + 0x140]
lea rcx, str.VBoxDrv
call fcn.180037f30
mov dword [rsp + 0x48], eax
lea rdx, [rsp + 0xe8]
lea rcx, [rsp + 0x34]
call fcn.180038e90
mov rcx, rax
call fcn.18003a2d0
mov rdx, rax
lea rcx, [rsp + 0xa8]
call fcn.1800056f0
nop
lea rcx, [rsp + 0xa8]
call fcn.180037ba0
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0xa8]
call fcn.180005580
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x98], rax
lea rcx, [rsp + 0x58]
call fcn.180005290
mov rax, qword [rsp + 0x98]
add rsp, 0x660
pop rdi
ret
Function at 0x1800396b0
Capabilities:
Delete file
Get common file path

Disassembly:
push rdi
sub rsp, 0x210
cmp qword [0x18018f2f8], 0xffffffffffffffff
je 0x1800396d0
mov rcx, qword [0x18018f2f8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rax, [rsp + 0x90]
mov rdi, rax
xor eax, eax
mov ecx, 0x104
rep stosb byte [rdi], al
lea rax, [rsp + 0x90]
mov rdi, rax
xor eax, eax
mov ecx, 0x104
rep stosb byte [rdi], al
mov edx, 0x104
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x21]
call fcn.180038fd0
mov rcx, rax
call fcn.18003a250
mov rdx, rax
lea rcx, [rsp + 0x90]
call fcn.18003a9c0
movzx eax, byte [0x18036c6e4]
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x22]
call fcn.1800398a0
mov rcx, rax
call fcn.18003a1d0
mov qword [rsp + 0x38], rax
movzx r9d, byte [rsp + 0x20]
xor r8d, r8d
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x38]
call fcn.180037f30
mov dword [rsp + 0x24], eax
movzx eax, byte [0x18036c6e4]
test eax, eax
je 0x180039792
mov cl, 1
call fcn.1800373f0
movzx eax, al
jmp 0x180039822
lea rax, [rsp + 0x40]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
xor eax, eax
mov word [rsp + 0x28], ax
xor eax, eax
mov word [rsp + 0x2a], ax
mov qword [rsp + 0x30], 0
lea rdx, [rsp + 0x1a0]
lea rcx, [rsp + 0x23]
call fcn.180039930
mov rcx, rax
call fcn.18003a190
mov rdx, rax
lea rcx, [rsp + 0x28]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov dword [rsp + 0x40], 0x30
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x58], 0x40
lea rax, [rsp + 0x28]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_NtDeleteFile]
add rsp, 0x210
pop rdi
ret
Function at 0x18003a050
Capabilities:
Check os version

Disassembly:
push rdi
sub rsp, 0x150
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x114
rep stosb byte [rdi], al
mov edx, 0x114
lea rcx, [rsp + 0x30]
call fcn.180036ea0
mov dword [rsp + 0x30], 0x114
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_RtlGetVersion]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x18003a09d
mov eax, dword [rsp + 0x20]
jmp 0x18003a0fc
cmp dword [rsp + 0x34], 6
jae 0x18003a0ab
mov eax, 1
jmp 0x18003a0fc
mov eax, dword [rsp + 0x3c]
mov dword [0x18036c6f4], eax
call fcn.180036f80
mov byte [0x18036c6e4], al
movzx eax, byte [0x18036c6e4]
mov dword [rsp + 0x24], 2
call fcn.180038b50
mov qword [0x18018f2f8], rax
cmp qword [0x18018f2f8], 0xffffffffffffffff
je 0x18003a0f3
call fcn.180039960
mov dword [rsp + 0x24], eax
call fcn.1800396b0
call fcn.1800396b0
mov eax, dword [rsp + 0x24]
add rsp, 0x150
pop rdi
ret

Function at 0x18003ae50
Capabilities:
Enumerate processes

Disassembly:
mov byte [rsp + 0x18], r8b
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x2b0
movzx eax, byte [rsp + 0x2d0]
test eax, eax
jne 0x18003ae80
mov rax, qword [rsp + 0x2c0]
mov dword [rax], 0
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0x238
rep stosb byte [rdi], al
mov dword [rsp + 0x70], 0x238
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0xffffffffffffffff
jne 0x18003aeba
xor al, al
jmp 0x18003afcc
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x18003afbf
lea rdx, [rsp + 0x9c]
lea rcx, [rsp + 0x48]
call fcn.1800056f0
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x2c0]
add rax, 0x78
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call fcn.1800262d0
cmp rax, 0xffffffffffffffff
je 0x18003af26
mov dword [rsp + 0x28], 1
jmp 0x18003af2e
mov dword [rsp + 0x28], 0
movzx eax, byte [rsp + 0x28]
mov byte [rsp + 0x20], al
lea rcx, [rsp + 0x48]
call fcn.180005580
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x18003afa0
movzx eax, byte [rsp + 0x2d0]
test eax, eax
je 0x18003af6c
mov rax, qword [rsp + 0x2c0]
mov ecx, dword [rsp + 0x78]
cmp dword [rax], ecx
jne 0x18003af6a
mov al, 1
jmp 0x18003afcc
jmp 0x18003afa0
cmp dword [rsp + 0x2c8], 0
je 0x18003af83
mov eax, dword [rsp + 0x78]
cmp dword [rsp + 0x2c8], eax
je 0x18003afa0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x2c0]
mov ecx, dword [rsp + 0x78]
mov dword [rax], ecx
mov al, 1
jmp 0x18003afcc
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jne 0x18003aed9
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
add rsp, 0x2b0
pop rdi
ret
Function at 0x180044c90
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x218
mov rax, qword [rsp + 0x220]
mov byte [rax], 0
lea rdx, [rsp + 0x70]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x180044cef
call fcn.1800339b0
lea r9, str.WSAStartup_failed
mov r8, rax
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.1800438c0
lea rdx, [0x180189e00]
lea rcx, [rsp + 0x40]
call fcn.1800def48
movzx eax, word [rsp + 0x70]
and rax, 0xff
movzx eax, al
cmp eax, 2
jne 0x180044d19
movzx eax, word [rsp + 0x70]
shr rax, 8
and rax, 0xff
movzx eax, al
cmp eax, 2
je 0x180044d41
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea rdx, str.Invalid_WinSock_version
lea rcx, [rsp + 0x28]
call fcn.180043880
lea rdx, [0x180189e70]
lea rcx, [rsp + 0x28]
call fcn.1800def48
mov rax, qword [rsp + 0x220]
mov byte [rax], 1
mov rax, qword [rsp + 0x220]
add rsp, 0x218
ret

Function at 0x180044f40
Capabilities:
Connect socket

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_connect]
add rsp, 0x28
ret

Function at 0x180044f70
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, 0x28
mov r9d, dword [rsp + 0x48]
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_send]
add rsp, 0x28
ret

Function at 0x180044fb0
Capabilities:
Receive data
Receive 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, 0x28
mov r9d, dword [rsp + 0x48]
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_recv]
add rsp, 0x28
ret
Function at 0x180047380
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x1aa0
call fcn.1800dcb90
sub rsp, rax
mov dword [rsp + 0x40], 0
add bh, al
test byte [rax + rax*4], ah
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax - 0x73], cl
test byte [rax + rdx], ah
or byte [rax], al
add byte [rax - 0x75], cl
clc

Function at 0x180061110
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
cmp dword [0x18036c710], 0
jne 0x18006114b
lea rdx, [rsp + 0x30]
mov cx, 2
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x18006114b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x20], eax
mov ecx, dword [rsp + 0x20]
call fcn.1800edfa4
mov qword [rsp + 0x28], rax
mov eax, dword [0x18036c710]
inc eax
mov dword [0x18036c710], eax
add rsp, 0x1d8
ret

Function at 0x180061180
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
lea rcx, [0x18017ce60]
mov qword [rax], rcx
mov rax, qword [rsp + 0x50]
mov qword [rax + 8], 0
call fcn.180061110
xor r8d, r8d
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov rcx, qword [rsp + 0x50]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x50]
cmp qword [rax + 8], 0xffffffffffffffff
jne 0x1800611ea
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x20], eax
mov ecx, dword [rsp + 0x20]
call fcn.1800edfa4
mov qword [rsp + 0x38], rax
mov ecx, 4
call fcn.1800dbf60
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180061218
mov rax, qword [rsp + 0x28]
mov dword [rax], 1
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
jmp 0x180061221
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rax, qword [rsp + 0x50]
add rsp, 0x48
ret
Function at 0x180061420
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x468
mov dword [rsp + 0x24], 0
mov rcx, qword [rsp + 0x478]
call fcn.180005bf0
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x24]
or eax, 1
mov dword [rsp + 0x24], eax
xor eax, eax
cmp eax, 1
je 0x18006151c
mov dword [rsp + 0x20], 0
lea r8, [rsp + 0x20]
mov edx, 0x4004667f
mov rax, qword [rsp + 0x470]
mov rcx, qword [rax + 8]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x18006148e
jmp 0x18006151c
cmp dword [rsp + 0x20], 0
jne 0x18006149a
jmp 0x18006151c
cmp dword [rsp + 0x20], 0x400
jbe 0x1800614ac
mov dword [rsp + 0x20], 0x400
xor r9d, r9d
mov r8d, dword [rsp + 0x20]
lea rdx, [rsp + 0x60]
mov rax, qword [rsp + 0x470]
mov rcx, qword [rax + 8]
call qword [sym.imp.WS2_32.dll_recv]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
jg 0x1800614d8
jmp 0x18006151c
lea rcx, [rsp + 0x38]
call fcn.180005bf0
nop
movsxd rax, dword [rsp + 0x28]
mov r8, rax
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.18002bea0
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x478]
call fcn.180051c40
nop
lea rcx, [rsp + 0x38]
call fcn.1800059c0
jmp 0x180061456
mov rax, qword [rsp + 0x478]
add rsp, 0x468
ret

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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x30]
call fcn.180005bf0
nop
xor eax, eax
cmp eax, 1
je 0x180061631
xor r9d, r9d
mov r8d, 1
lea rdx, [rsp + 0x20]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 8]
call qword [sym.imp.WS2_32.dll_recv]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0xffffffff
je 0x1800615bb
cmp dword [rsp + 0x28], 0
je 0x18006158d
jmp 0x1800615e8
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x68]
call fcn.180005a70
mov eax, dword [rsp + 0x24]
or eax, 1
mov dword [rsp + 0x24], eax
lea rcx, [rsp + 0x30]
call fcn.1800059c0
mov rax, qword [rsp + 0x68]
jmp 0x18006163b
lea rdx, [0x180140e17]
mov rcx, qword [rsp + 0x68]
call fcn.180005af0
mov eax, dword [rsp + 0x24]
or eax, 1
mov dword [rsp + 0x24], eax
lea rcx, [rsp + 0x30]
call fcn.1800059c0
mov rax, qword [rsp + 0x68]
jmp 0x18006163b
movzx edx, byte [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.180051be0
movsx eax, byte [rsp + 0x20]
cmp eax, 0xa
jne 0x18006162c
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x68]
call fcn.180005a70
mov eax, dword [rsp + 0x24]
or eax, 1
mov dword [rsp + 0x24], eax
lea rcx, [rsp + 0x30]
call fcn.1800059c0
mov rax, qword [rsp + 0x68]
jmp 0x18006163b
jmp 0x180061551
lea rcx, [rsp + 0x30]
call fcn.1800059c0
add rsp, 0x58
ret

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

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor r9d, r9d
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call qword [sym.imp.WS2_32.dll_send]
add rsp, 0x28
ret
Function at 0x180061680
Capabilities:
Set socket configuration

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
mov rcx, qword [rsp + 0x70]
call fcn.180061180
mov rax, qword [rsp + 0x70]
lea rcx, [0x18017ce68]
mov qword [rax], rcx
lea rax, [rsp + 0x48]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WS2_32.dll_recv
rep stosb byte [rdi], al
lea rax, [rsp + 0x48]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WS2_32.dll_recv
rep stosb byte [rdi], al
mov eax, 2
mov word [rsp + 0x48], ax
movzx ecx, word [rsp + 0x78]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x4a], ax
xor r8d, r8d
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov rcx, qword [rsp + 0x70]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x70]
cmp qword [rax + 8], 0xffffffffffffffff
jne 0x180061732
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x20], eax
mov ecx, dword [rsp + 0x20]
call fcn.1800edfa4
mov qword [rsp + 0x38], rax
jmp 0x1800617c5
cmp dword [rsp + 0x88], 1
jne 0x18006175d
mov dword [rsp + 0x24], 1
lea r8, [rsp + 0x24]
mov edx, 0x8004667e
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x48]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call qword [sym.imp.WS2_32.dll_bind]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0xffffffff
jne 0x1800617ab
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x2c], eax
mov ecx, dword [rsp + 0x2c]
call fcn.1800edfa4
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x1800617c5
mov edx, dword [rsp + 0x80]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call qword [sym.imp.WS2_32.dll_listen]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret