joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140013210
Capabilities:
Set registry value

Disassembly:
sub rsp, 0xc8
mov dword [rsp + 0xa4], 0
mov dword [rsp + 0x6c], 1
mov dword [rsp + 0x60], 2
mov dword [rsp + 0x58], 3
mov dword [rsp + 0x68], 4
mov dword [rsp + 0x44], 5
mov dword [rsp + 0xbc], 6
mov dword [rsp + 0x74], 7
mov dword [rsp + 0x64], 8
mov dword [rsp + 0x7c], 9
mov dword [rsp + 0x70], 0xa
mov dword [rsp + 0x88], send
mov dword [rsp + 0xb8], reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov dword [rsp + 0x5c], reloc.WS2_32.dll_listen
mov dword [rsp + 0x78], reloc.WS2_32.dll_ntohl
mov dword [rsp + 0x40], reloc.WS2_32.dll_ntohs
mov dword [rsp + 0xa0], reloc.WS2_32.dll_recv
mov dword [rsp + 0x9c], reloc.WS2_32.dll_recvfrom
mov dword [rsp + 0x98], send
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str..eev
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140013305
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140013444
lea r8, [rsp + 0x80]
lea rdx, [0x14008d198]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
lea rax, [0x14008d1a8]
mov qword [rsp + 0xa8], rax
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cdqe
shl rax, 1
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0xa8]
mov r8d, 1
xor edx, edx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r8, [rsp + 0x38]
mov rdx, qword [rsp + 0xa8]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov dword [rsp + 0x20], gethostbyname
lea r9, str.MountainHeather_File
mov r8d, 1
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueW]
lea r8, [rsp + 0x48]
lea rdx, [0x14008d1f0]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
lea r8, [rsp + 0x30]
lea rdx, [0x14008d200]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
lea r8, [rsp + 0x50]
lea rdx, [0x14008d210]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
lea rax, str.wscript.exe___E:vbscript___1_
mov qword [rsp + 0x90], rax
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cdqe
shl rax, 1
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x90]
mov r8d, 1
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0xc8
ret
Function at 0x140013d10
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x148
mov qword [rsp + 0x130], 0xfffffffffffffffe
lea rdx, str.vmcompute.exe
lea rcx, [rsp + 0x108]
call fcn.1400144c0
nop
lea rcx, [rsp + 0x108]
call fcn.140013e80
movzx eax, al
test eax, eax
jne 0x140013d59
mov dword [rsp + 0x138], 1
jmp 0x140013d64
mov dword [rsp + 0x138], 0
movzx eax, byte [rsp + 0x138]
mov byte [rsp + 0x100], al
lea rcx, [rsp + 0x108]
call fcn.140004120
movzx eax, byte [rsp + 0x100]
test eax, eax
je 0x140013e77
mov r8d, 0x68
xor edx, edx
lea rcx, [rsp + 0x90]
call fcn.140055c80
mov dword [rsp + 0x90], WSAGetLastError
mov dword [rsp + 0xcc], 1
xor eax, eax
mov word [rsp + 0xd0], ax
mov r8d, 0x18
xor edx, edx
lea rcx, [rsp + 0x78]
call fcn.140055c80
lea rdx, str.powershell.exe_Enable_WindowsOptionalFeature__FeatureName__Containers_DisposableClientVM___All__Online
lea rcx, [rsp + 0x50]
call fcn.1400144c0
nop
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.140014560
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x90]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140013e6d
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x50]
call fcn.140004120
add rsp, 0x148
ret

Function at 0x140013e80
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x278
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x260], rax
mov dword [rsp + 0x20], 0x238
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x260]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x140013ed0
mov rcx, qword [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x140013f21
lea rdx, [rsp + 0x4c]
mov rcx, qword [rsp + 0x280]
call fcn.14001d2b0
movzx eax, al
test eax, eax
je 0x140013efb
mov rcx, qword [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x140013f21
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x260]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x140013ed0
mov rcx, qword [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
add rsp, 0x278
ret
Function at 0x140019a40
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xd8
mov qword [rsp + 0xa0], 0xfffffffffffffffe
mov rax, qword [rsp + 0xe0]
cmp qword [rax + 0x80], 0
je 0x140019a7d
mov rax, qword [rsp + 0xe0]
movzx eax, byte [rax + 0x8a]
test eax, eax
jne 0x140019a89
mov al, 1
jmp 0x140019cf8
mov dword [rsp + 0x30], 8
call fcn.140015ce0
mov rcx, qword [rsp + 0xe0]
mov rcx, qword [rcx]
mov qword [rsp + 0xa8], rcx
movzx edx, ax
mov rcx, qword [rsp + 0xe0]
mov rax, qword [rsp + 0xa8]
call qword [rax + 0x18]
mov word [rsp + 0x70], ax
call fcn.140015ce0
mov word [rsp + 0x72], ax
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x72]
call fcn.140015d90
movzx eax, al
test eax, eax
je 0x140019aeb
xor al, al
jmp 0x140019cf8
xor r8d, r8d
mov edx, 8
lea rcx, [rsp + 0x40]
call fcn.1400084c0
nop
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x40]
call fcn.140008530
mov rcx, rax
call fcn.14000d5b0
mov qword [rsp + 0xb0], rax
lea rcx, [rsp + 0x40]
call fcn.140004860
mov rcx, qword [rsp + 0xb0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xb8], rax
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x40]
call fcn.140008530
mov rcx, rax
call fcn.14000d5b0
mov rcx, qword [rsp + 0xe0]
add rcx, 0x8c
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x20], rdx
mov rdx, qword [rsp + 0xb8]
mov r9, rdx
mov r8, rax
mov rdx, rcx
mov rax, qword [rsp + 0xe0]
mov rcx, qword [rax + 0x80]
call fcn.140008980
mov dword [rsp + 0xc0], eax
cmp dword [rsp + 0xc0], 0
je 0x140019bc3
cmp dword [rsp + 0xc0], 1
je 0x140019bd2
cmp dword [rsp + 0xc0], 3
je 0x140019cb0
jmp 0x140019ccc
mov rax, qword [rsp + 0xe0]
mov byte [rax + 0x8a], 0
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x40]
call fcn.140008530
mov rcx, rax
call fcn.14000d5b0
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jbe 0x140019c65
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x40]
call fcn.140008530
mov rcx, rax
call fcn.14000d5b0
mov rcx, qword [rsp + 0xe0]
mov r9, qword [rcx + 0x98]
mov r8, qword [rsp + 0x68]
mov edx, 1
mov rcx, rax
call fcn.14005736c
cmp qword [rsp + 0x68], rax
je 0x140019c65
mov byte [rsp + 0x98], 0
lea rcx, [rsp + 0x40]
call fcn.140004070
movzx eax, byte [rsp + 0x98]
jmp 0x140019cf8
mov rax, qword [rsp + 0xe0]
movzx eax, byte [rax + 0x8a]
test eax, eax
jne 0x140019c94
mov byte [rsp + 0x99], 1
lea rcx, [rsp + 0x40]
call fcn.140004070
movzx eax, byte [rsp + 0x99]
jmp 0x140019cf8
cmp qword [rsp + 0x68], 0
jne 0x140019cae
xor r8d, r8d
mov edx, 8
lea rcx, [rsp + 0x40]
call fcn.140006c40
jmp 0x140019ce8
mov byte [rsp + 0x9a], 1
lea rcx, [rsp + 0x40]
call fcn.140004070
movzx eax, byte [rsp + 0x9a]
jmp 0x140019cf8
mov byte [rsp + 0x9b], 0
lea rcx, [rsp + 0x40]
call fcn.140004070
movzx eax, byte [rsp + 0x9b]
jmp 0x140019cf8
jmp 0x140019afe
add rsp, 0xd8
ret
Function at 0x14001ebd0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x270
jne 0x14001ebf2
mov rcx, qword [rsp + 0x40]
call fcn.14001ee70
jmp 0x14001ec09
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x4e0
jb 0x14001ec09
mov rcx, qword [rsp + 0x40]
call fcn.14001eca0
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax*4 + 4]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
inc eax
mov rcx, qword [rsp + 0x40]
mov dword [rcx], eax
mov eax, dword [rsp + 0x20]
shr eax, 0xb
mov rcx, qword [rsp + 0x40]
and eax, dword [rcx + 0x1384]
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shl eax, 7
and eax, 0x9d2c5680
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shl eax, 0xf
and eax, 0xefc60000
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shr eax, 0x12
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x14001eca0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov dword [rsp], 0
jmp 0x14001ecba
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
cmp dword [rsp], 0xe3
jge 0x14001ed4c
mov eax, dword [rsp]
add eax, 0x270
cdqe
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax*4 + 4]
and eax, 0x80000000
mov ecx, dword [rsp]
add ecx, 0x271
movsxd rcx, ecx
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rdx + rcx*4 + 4]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 8], eax
mov eax, dword [rsp + 8]
and eax, 1
test eax, eax
je 0x14001ed13
mov dword [rsp + 0x10], 0x9908b0df
jmp 0x14001ed1b
mov dword [rsp + 0x10], 0
mov eax, dword [rsp + 8]
shr eax, 1
xor eax, dword [rsp + 0x10]
mov ecx, dword [rsp]
add ecx, 0x3fd
movsxd rcx, ecx
mov rdx, qword [rsp + 0x30]
xor eax, dword [rdx + rcx*4 + 4]
movsxd rcx, dword [rsp]
mov rdx, qword [rsp + 0x30]
mov dword [rdx + rcx*4 + 4], eax
jmp 0x14001ecb2
jmp 0x14001ed56
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
cmp dword [rsp], 0x26f
jge 0x14001ede8
mov eax, dword [rsp]
add eax, 0x270
cdqe
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax*4 + 4]
and eax, 0x80000000
mov ecx, dword [rsp]
add ecx, 0x271
movsxd rcx, ecx
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rdx + rcx*4 + 4]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0xc], eax
mov eax, dword [rsp + 0xc]
and eax, 1
test eax, eax
je 0x14001edaf
mov dword [rsp + 0x14], 0x9908b0df
jmp 0x14001edb7
mov dword [rsp + 0x14], 0
mov eax, dword [rsp + 0xc]
shr eax, 1
xor eax, dword [rsp + 0x14]
mov ecx, dword [rsp]
sub ecx, 0xe3
movsxd rcx, ecx
mov rdx, qword [rsp + 0x30]
xor eax, dword [rdx + rcx*4 + 4]
movsxd rcx, dword [rsp]
mov rdx, qword [rsp + 0x30]
mov dword [rdx + rcx*4 + 4], eax
jmp 0x14001ed4e
mov eax, dword [rsp]
add eax, 0x270
cdqe
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax*4 + 4]
and eax, 0x80000000
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rcx + 4]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 4], eax
mov eax, dword [rsp + 4]
and eax, 1
test eax, eax
je 0x14001ee27
mov dword [rsp + 0x18], 0x9908b0df
jmp 0x14001ee2f
mov dword [rsp + 0x18], 0
mov eax, dword [rsp + 4]
shr eax, 1
xor eax, dword [rsp + 0x18]
mov rcx, qword [rsp + 0x30]
xor eax, dword [rcx + 0x634]
movsxd rcx, dword [rsp]
mov rdx, qword [rsp + 0x30]
mov dword [rdx + rcx*4 + 4], eax
mov rax, qword [rsp + 0x30]
mov dword [rax], 0
add rsp, 0x28
ret
Function at 0x14001ee70
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov dword [rsp], 0x270
jmp 0x14001ee8a
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
cmp dword [rsp], 0x4e0
jge 0x14001ef1c
mov eax, dword [rsp]
sub eax, 0x270
cdqe
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx + rax*4 + 4]
and eax, 0x80000000
mov ecx, dword [rsp]
sub ecx, 0x26f
movsxd rcx, ecx
mov rdx, qword [rsp + 0x20]
mov ecx, dword [rdx + rcx*4 + 4]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 4], eax
mov eax, dword [rsp + 4]
and eax, 1
test eax, eax
je 0x14001eee3
mov dword [rsp + 8], 0x9908b0df
jmp 0x14001eeeb
mov dword [rsp + 8], 0
mov eax, dword [rsp + 4]
shr eax, 1
xor eax, dword [rsp + 8]
mov ecx, dword [rsp]
sub ecx, 0xe3
movsxd rcx, ecx
mov rdx, qword [rsp + 0x20]
xor eax, dword [rdx + rcx*4 + 4]
movsxd rcx, dword [rsp]
mov rdx, qword [rsp + 0x20]
mov dword [rdx + rcx*4 + 4], eax
jmp 0x14001ee82
add rsp, 0x18
ret
Function at 0x140028260
Capabilities:
Set socket configuration

Disassembly:
jmp 0x1400332f0
mov dword [rsp + 0x10], edx
sub rsp, 0x38
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0x1002
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret

Function at 0x140028270
Capabilities:
Set socket configuration

Disassembly:
jmp 0x140033320
mov dword [rsp + 0x10], edx
sub rsp, 0x38
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0x1001
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret

Function at 0x14002c490
Capabilities:
Create thread
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov ebx, edx
mov rdi, rcx
test edx, edx
jne 0x14002c4a8
lea ebx, [rdx - 2]
jmp 0x14002c4aa
jns 0x14002c4bc
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
imul ebx, dword [rsp + 0x40]
neg ebx
mov r8d, dword [rdi + 0x54]
mov edx, ebx
mov rcx, rdi
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
jmp fcn.14002a390

Function at 0x14002cf50
Capabilities:
Terminate thread

Disassembly:
push rbx
push rdi
sub rsp, 0x28
cmp qword [rcx + 0x70], 0
mov edi, edx
mov rbx, rcx
je 0x14002d02c
add rcx, 0x28
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test edi, edi
jne 0x14002cf82
mov edi, dword [rbx + 0x54]
mov r8d, edi
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x48], rbp
call fcn.14002a390
mov esi, dword [rbx + 0x18]
dec esi
movsxd rdi, esi
js 0x14002cfed
nop
test rdi, rdi
js 0x14002d033
cmp esi, dword [rbx + 0x18]
jge 0x14002d033
mov rax, qword [rbx + 0x10]
lea rdx, [rsp + 0x40]
mov rbp, qword [rax + rdi*8]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [rsp + 0x40], 0x103
jne 0x14002cfdd
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
dec esi
dec rdi
jns 0x14002cfa0
mov rcx, qword [rbx + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbx + 0x28]
mov qword [rbx + 0x70], 0
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rcx, qword [rbx + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov r12, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rbx
ret
xor r9d, r9d
xor r8d, r8d
mov ecx, 0xc000008c
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_RaiseException]

Function at 0x140033110
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rdx
sub rsp, 0x38
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0x700b
mov dword [rsp + 0x20], 8
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret

Function at 0x140033140
Capabilities:
Set socket configuration

Disassembly:
mov dword [rsp + 0x10], edx
sub rsp, 0x38
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0x7010
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret
Function at 0x140033170
Capabilities:
Set socket configuration

Disassembly:
mov dword [rsp + 0x10], edx
sub rsp, 0x28
lea r8, [rsp + 0x38]
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
add rsp, 0x28
ret

Function at 0x140033190
Capabilities:
Set socket configuration

Disassembly:
mov dword [rsp + 0x10], edx
sub rsp, 0x38
mov edx, 6
lea r9, [rsp + 0x48]
mov dword [rsp + 0x20], 4
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret

Function at 0x1400332f0
Capabilities:
Set socket configuration

Disassembly:
jmp 0x1400332f0
mov dword [rsp + 0x10], edx
sub rsp, 0x38
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0x1002
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret

Function at 0x140033320
Capabilities:
Set socket configuration

Disassembly:
jmp 0x140033320
mov dword [rsp + 0x10], edx
sub rsp, 0x38
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0x1001
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret

Function at 0x1400333b0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov dword [rsp + 0x50], 1
mov dword [rsp + 0x48], 0
test edx, edx
jne 0x1400333d8
lea r9, [rsp + 0x50]
jmp 0x1400333e2
cmp edx, 1
jne 0x14003342b
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0xfffffffb
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 4
mov rcx, rdi
mov dword [rsp + 0x20], 4
mov ebx, eax
call qword [sym.imp.WS2_32.dll_setsockopt]
or eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
cmp edx, 2
jne 0x14003347e
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0xfffffffb
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
lea r9, [rsp + 0x50]
mov edx, 0xffff
mov r8d, 4
mov rcx, rdi
mov ebx, eax
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
or eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x40]
or eax, 0xffffffff
add rsp, 0x30
pop rdi
ret

Function at 0x1400335c0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov ebx, edx
mov rdi, rcx
test r8d, r8d
jne 0x140033603
mov eax, 1
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov word [rsp + 0x48], ax
xor eax, eax
mov r8d, 0x80
mov word [rsp + 0x4a], ax
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp ebx, 0xff
je case.default.0x140033623
mov edx, ebx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, rdi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.WS2_32.dll_closesocket]
add byte [rax], al
add byte [rax], al
adc byte [rbx], 0
adc eax, dword [rax]
add byte [rax], al
add byte [rax], al
add byte [rax + 0xa], al
or al, byte [rax]
add byte [rax], al
add byte [rax], al
add byte [rax], al
sub byte [rdx + 0xae7], 0
stosb byte [rdi], al
out 0xa, eax
add byte [rax], al
invalid
add byte [rax], al
add byte [rax], al
sub byte [rdx + 0xae7], 0
stosb byte [rdi], al
out 0xa, eax
add byte [rax], al
invalid
add byte [rax], al
Function at 0x1400336b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub rsp, 0x48
mov rcx, qword [rcx + 0xc8]
mov rax, rdx
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov dword [rdx + 0x28], 4
mov qword [rdx + 0x58], rcx
lea r9, [rsp + 0x58]
add rdx, 0x30
mov r8d, 1
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x58], 0
call qword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x140033716
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add rsp, 0x48
ret
xor eax, eax
add rsp, 0x48
ret

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

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x40
xor edi, edi
lea rbx, [rcx + 0x30]
mov rcx, qword [rcx + 0x58]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rdi
lea r9, [rsp + 0x50]
lea r8d, [rdi + 1]
mov rdx, rbx
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x58], edi
mov dword [rsp + 0x50], edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x140033778
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov ecx, dword [rsp + 0x50]
test ecx, ecx
je 0x14003378f
mov dword [rbx], ecx
mov eax, edi
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov eax, 0x2775
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x1400337a0
Capabilities:
Set socket configuration

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1400b27e8]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp word [r8], 2
mov rdi, r8
mov dword [rsp + 0x30], r9d
lea r9, [rsp + 0x30]
mov r8d, 0xa
mov rsi, rdx
mov rbx, rcx
mov dword [rsp + 0x20], 4
jne 0x14003386d
xor edx, edx
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x1400337fb
mov ecx, 0x80004005
call fcn.140027b40
int3
xor edx, edx
lea r9, [rsp + 0xa0]
mov rcx, rbx
lea r8d, [rdx + 0xb]
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x14003382a
mov ecx, 0x80004005
call fcn.140027b40
int3
xor eax, eax
mov dword [rsp + 0x20], 8
lea r9, [rsp + 0x38]
mov qword [rsp + 0x38], rax
mov eax, dword [rdi + 4]
xor edx, edx
mov dword [rsp + 0x38], eax
mov eax, dword [rsi + 4]
mov dword [rsp + 0x3c], eax
mov r8d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x1400338fa
xor eax, eax
jmp 0x1400338ff
mov edx, 0x29
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x140033888
mov ecx, 0x80004005
call fcn.140027b40
int3
mov edx, 0x29
lea r9, [rsp + 0xa0]
mov rcx, rbx
lea r8d, [rdx - 0x1e]
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x1400338ba
mov ecx, 0x80004005
call fcn.140027b40
int3
xor eax, eax
mov dword [rsp + 0x20], reloc.WS2_32.dll_sendto
lea r9, [rsp + 0x40]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x50], eax
mov rax, qword [rdi + 8]
mov edx, 0x29
mov qword [rsp + 0x40], rax
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0x48], rax
mov eax, dword [rsi + 0x18]
mov dword [rsp + 0x50], eax
jmp 0x14003384e
mov eax, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14005b230
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret