joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18001ab40
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdi, rdx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x18001ab6e
mov r8, rdx
mov rdx, qword [rbx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.18001bbf0
cmp byte [0x1800ec810], 0
jne 0x18001abb9
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18001aba9
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800ec808], rax
mov byte [0x1800ec810], 1
jmp 0x18001abc0
mov rax, qword [0x1800ec808]
mov byte [0x1800ec810], 1
jmp 0x18001abc0
mov rax, qword [0x1800ec808]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x18001abdf
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]

Function at 0x18001b960
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x1800e92b0]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r9d, dword [rcx + 8]
xor ebp, ebp
mov rsi, rdx
mov qword [rsp + 0x40], rbp
xor eax, eax
mov qword [rsp + 0x50], rbp
mov r8, rdx
mov qword [rsp + 0x48], rax
mov rdx, qword [rcx]
mov rdi, rcx
or r9d, 0x2001f
mov dword [rsp + 0x48], ebp
lea rcx, [rsp + 0x40]
call fcn.18001b4c0
mov ebx, eax
test eax, eax
jne 0x18001ba77
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x58]
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], rbp
xor edx, edx
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x58], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x18001ba51
nop
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.18001b960
mov ebx, eax
test eax, eax
jne 0x18001ba77
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x58]
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], rbp
xor edx, edx
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x58], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x18001ba00
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x18001ba66
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], rbp
mov rdx, rsi
mov dword [rsp + 0x48], ebp
mov rcx, rdi
call fcn.18001ab40
mov ebx, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x18001ba87
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1800612f0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x18001bbf0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x18001bc64
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18001bc86
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18001bc86
mov rcx, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rdx, rdi
mov rcx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rcx + 8], 0
je 0x18001bc86
mov rdx, rdi
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov eax, 1
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x18001bef0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x1800e92b0]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r15, r9
mov rsi, r8
mov rbx, rdx
xor r14d, r14d
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x58], r14
xor edx, edx
mov r8d, 0x408
lea rcx, [rsp + 0x70]
call fcn.180081920
mov qword [rsp + 0x70], r14
xor edx, edx
lea r8d, [r14 + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x18001bf90
xor edx, edx
lea r8d, [r14 + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x18001bf90
call fcn.180019a20
mov ebx, eax
jmp 0x18001c0b8
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x18001bfb1
call fcn.180019a20
jmp 0x18001c0a7
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x18001bfd4
call fcn.180019a20
jmp 0x18001c0a7
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x18001bff6
mov ebx, 0x8007000e
jmp 0x18001c0a9
mov ecx, eax
test eax, eax
je 0x18001c02e
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x18001c024
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x18001c02e
lea rcx, [rsp + 0x70]
call fcn.1800197b0
jmp 0x18001c038
mov ecx, 0x80070216
call fcn.180005c20
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x18001c04b
cmp qword [rsp + 0x70], 0
jne 0x18001c05a
mov ebx, 0x8007000e
jmp 0x18001c0a9
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, rsi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x18001c084
call fcn.180019a20
jmp 0x18001c0a7
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], r14w
mov r8d, dword [rsp + 0x4e0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x58]
call fcn.18001bca0
mov ebx, eax
test rdi, rdi
je 0x18001c0b8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x18001c0cf
lea rcx, [rsp + 0x70]
call fcn.18001aef0
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.1800612f0
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x18001c840
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x48
mov rax, qword [0x1800e92b0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rcx, qword [rcx]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], r8d
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1800612f0
add rsp, 0x48
ret

Function at 0x18001c890
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov r9, r8
mov r10, rdx
test r8, r8
jne 0x18001c8a8
lea eax, [r8 + 0xd]
add rsp, 0x38
ret
xor r8d, r8d
mov rdx, r9
nop
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], 0
jne 0x18001c8b4
inc eax
lea rdx, [rdx + rax*2]
lea r8d, [r8 + rax*2]
cmp eax, 1
jne 0x18001c8b0
mov rcx, qword [rcx]
mov rdx, r10
mov dword [rsp + 0x28], r8d
xor r8d, r8d
mov qword [rsp + 0x20], r9
lea r9d, [rax + 6]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret

Function at 0x18001e4f0
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push rbx
sub rsp, 0x20
mov rax, rdx
mov ebx, ecx
test rdx, rdx
je 0x18001e52c
mov r8d, 5
lea rdx, str.user
mov rcx, rax
call fcn.180083a20
movzx edx, byte [0x1800eeab8]
test eax, eax
mov ecx, 1
cmove edx, ecx
mov byte [0x1800eeab8], dl
test ebx, ebx
je 0x18001e548
call sym.ShellExt64.dll_DllRegisterServer
mov ebx, eax
test eax, eax
jns 0x18001e552
call sym.ShellExt64.dll_DllUnregisterServer
mov eax, ebx
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp sym.ShellExt64.dll_DllUnregisterServer
add rsp, 0x20
pop rbx
ret
Function at 0x18001e560
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x1800e92b0]
xor rax, rsp
mov qword [rbp + 0x70], rax
lea rdx, str.7272908C_4FC8_4707_96BC_931280D31790
lea rcx, str.2C5F5502_2AE5_491A_BF74_E3CB931D1054
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
je 0x18001e5b2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x81b
mov rcx, rax
call qword [sym.imp.USER32.dll_SendMessageW]
xor edx, edx
lea rcx, [rbp - 0x70]
lea r8d, [rdx + 0x64]
call fcn.180081920
xor edx, edx
lea rcx, [rbp]
lea r8d, [rdx + 0x64]
call fcn.180081920
mov r8d, 0x32
lea rdx, [rbp]
lea rcx, [0x1800b2268]
call qword [sym.imp.ole32.dll_StringFromGUID2]
lea rdx, [rbp]
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
lea r8, str.SoftWareMicrosoftWindowsCurrentVersionExplorerShellIconOverlayIdentifiers
xor edi, edi
mov qword [rsp + 0x58], rax
mov rdx, 0xffffffff80000002
mov qword [rsp + 0x50], rdi
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x58], edi
lea r9d, [rax + 2]
mov qword [rsp + 0x60], rdi
call fcn.18001b4c0
test eax, eax
jne 0x18001e6c5
mov eax, dword [rsp + 0x58]
lea rcx, [rbp - 0x78]
mov qword [rsp + 0x40], rcx
lea rdx, str.________.PhotoviewerShellExt
lea rcx, [rbp - 0x80]
mov qword [rbp - 0x80], rdi
mov qword [rsp + 0x38], rcx
or eax, 0x2001f
mov rcx, qword [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x30], rdi
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x18001e6c5
lea rcx, [rbp - 0x70]
or rax, 0xffffffffffffffff
cmp word [rcx + rax*2 + 2], di
lea rax, [rax + 1]
jne 0x18001e680
mov rbx, qword [rbp - 0x80]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov r9d, 1
lea rax, [rbp - 0x70]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test rbx, rbx
je 0x18001e6c5
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x70], rax
lea r8, str.SoftWareMicrosoftWindowsCurrentVersionShell_ExtensionsApproved
mov rdx, 0xffffffff80000002
mov dword [rsp + 0x70], edi
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x78], rdi
lea r9d, [rax + 2]
call fcn.18001b4c0
mov rbx, qword [rsp + 0x68]
test eax, eax
jne 0x18001e729
lea rax, str.Photoviewer_Shell_externsion
mov dword [rsp + 0x28], 0x3a
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rbp - 0x70]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor edx, edx
lea rcx, [0x1800ec790]
call fcn.18001abf0
mov edi, eax
test rbx, rbx
je 0x18001e747
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsp + 0x50], 0
je 0x18001e75a
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.1800612f0
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x18001e780
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x1800e92b0]
xor rax, rsp
mov qword [rbp + 0x20], rax
lea rdx, str.7272908C_4FC8_4707_96BC_931280D31790
lea rcx, str.2C5F5502_2AE5_491A_BF74_E3CB931D1054
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
je 0x18001e7d2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x81c
mov rcx, rax
call qword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
lea r8, str.SoftWareMicrosoftWindowsCurrentVersionExplorerShellIconOverlayIdentifiers
xor edi, edi
mov qword [rsp + 0x28], rax
mov rdx, 0xffffffff80000002
mov qword [rsp + 0x20], rdi
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x28], edi
lea r9d, [rax + 2]
mov qword [rsp + 0x30], rdi
call fcn.18001b4c0
mov rbx, qword [rsp + 0x20]
test eax, eax
jne 0x18001e8a0
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x18001e82d
lea r8, str.________.PhotoviewerShellExt
mov rdx, rbx
call fcn.18001bbf0
jmp 0x18001e8a0
cmp byte [0x1800ec810], dil
jne 0x18001e878
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18001e868
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800ec808], rax
mov byte [0x1800ec810], 1
jmp 0x18001e87f
mov rax, qword [0x1800ec808]
mov byte [0x1800ec810], 1
jmp 0x18001e87f
mov rax, qword [0x1800ec808]
lea rdx, str.________.PhotoviewerShellExt
mov rcx, rbx
test rax, rax
je 0x18001e89a
mov r8d, dword [rsp + 0x28]
xor r9d, r9d
call rax
jmp 0x18001e8a0
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
xor eax, eax
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], rax
lea r8, str.SoftWareMicrosoftWindowsCurrentVersionShell_ExtensionsApproved
mov rdx, 0xffffffff80000002
mov dword [rsp + 0x28], edi
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x30], rdi
lea r9d, [rax + 2]
call fcn.18001b4c0
test eax, eax
jne 0x18001e92a
xor edx, edx
lea r8d, [rax + 0x64]
lea rcx, [rbp - 0x50]
call fcn.180081920
xor edx, edx
lea rcx, [rsp + 0x40]
lea r8d, [rdx + 0x64]
call fcn.180081920
mov r8d, 0x32
lea rdx, [rsp + 0x40]
lea rcx, [0x1800b2268]
call qword [sym.imp.ole32.dll_StringFromGUID2]
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, qword [rsp + 0x20]
lea rdx, [rbp - 0x50]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor edx, edx
lea rcx, [0x1800ec790]
call fcn.18001ad40
cmp qword [rsp + 0x20], 0
mov edi, eax
je 0x18001e94d
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rbx, rbx
je 0x18001e95b
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.1800612f0
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x180024ac0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x150
mov rax, qword [0x1800e92b0]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rdi, rcx
xor ebx, ebx
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x20], ebx
xor edx, edx
mov r8d, 0x105
call fcn.180081920
lea rdx, [rsp + 0x30]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov qword [rdi + 0x10], rbx
mov byte [rdi], bl
cmp byte [rsp + 0x30], bl
je 0x180024b30
lea rax, [rsp + 0x30]
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x180024b27
mov r8, rbx
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.180006b10
mov rax, rdi
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1800612f0
mov rbx, qword [rsp + 0x168]
add rsp, 0x150
pop rdi
ret

Function at 0x1800270a0
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x1800e92b0]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov ecx, 0x202
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1800270fe
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x1800270f8
shr ax, 8
cmp al, 2
jne 0x1800270f8
xor eax, eax
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1800612f0
add rsp, 0x1d8
ret
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1800612f0
add rsp, 0x1d8
ret

Function at 0x18002c730
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp dword [rcx + 4], 2
mov rax, rdx
je 0x18002c73c
xor eax, eax
ret
mov rdx, qword [rcx + 0x20]
mov r9, r8
add rdx, 4
mov r8, rax
mov ecx, 2
jmp fcn.180042410
Function at 0x180035120
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r9
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
jne 0x18003515b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, gethostname
mov edx, 0x51
cmp eax, 0x2733
cmove ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret
mov qword [rbx], rcx
xor eax, eax
add rsp, 0x20
pop rbx
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
movsxd rax, edx
mov rdi, r9
mov rsi, r8
mov r14, rcx
mov rbx, qword [rcx + rax*8 + 0x210]
call fcn.1800356a0
xor r9d, r9d
mov r8d, edi
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
movsxd rdi, eax
mov dword [rsi], 0
cmp rdi, 0xffffffffffffffff
jne 0x180035308
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x1800352dd
mov dword [rsi], 0x51
xor eax, eax
jmp 0x18003530b
mov edx, ebx
mov rcx, r14
call fcn.180041a30
mov rcx, qword [r14]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.180034e40
mov rcx, qword [r14]
mov dword [rcx + 0x49dc], ebx
mov dword [rsi], gethostname
mov rax, rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
movsxd r8, edx
lea rbx, [rcx + 0x258]
mov rax, r8
shl rax, 5
add rbx, rax
mov rax, qword [rcx + 0x380]
mov rsi, qword [rcx + r8*8 + 0x210]
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx + 0x10]
test byte [rax + 0x74], 3
je 0x180035783
lea rax, [0x1800351b0]
cmp qword [rcx + r8*8 + 0x238], rax
jne 0x180035783
cmp qword [rbx], 0
je 0x180035704
test rdi, rdi
je 0x180035783
or r8, 0xffffffffffffffff
xor r9d, r9d
or rdx, r8
mov rcx, rsi
call fcn.1800347d0
cmp eax, 0xffffffff
je 0x180035783
test al, 1
je 0x180035783
cmp qword [rbx], 0
jne 0x180035762
mov ecx, 0x8000
mov qword [rbx + 8], 0x8000
call qword [fcn.180083fcc]
mov rdi, qword [rbx + 8]
xor ecx, ecx
mov qword [rbx], rax
mov qword [rbx + 0x10], rcx
mov qword [rbx + 0x18], rcx
test rax, rax
jne 0x180035762
mov qword [rbx + 8], rcx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rdx, qword [rbx]
xor r9d, r9d
add rdx, qword [rbx + 0x10]
mov r8d, edi
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x180035783
add qword [rbx + 0x10], rcx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1800357a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov r10, qword [rcx + 0x258]
mov rdi, r9
mov rsi, r8
mov rbx, rcx
test r10, r10
je 0x1800357e3
mov rax, qword [rcx + 0x1a8]
mov qword [rsp + 0x20], rax
call r10
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp edx, 2
ja 0x180035826
mov r9, qword [rbx + 0x1a0]
movsxd rax, edx
mov edx, 2
lea rcx, [rax + rax*2]
lea rax, [0x1800b59d0]
add rcx, rax
lea r8d, [rdx - 1]
call fcn.18008e7a0
mov r9, qword [rbx + 0x1a0]
mov r8d, 1
mov rdx, rdi
mov rcx, rsi
call fcn.18008e7a0
mov rbx, qword [rsp + 0x40]
xor eax, eax
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

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

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x298], 0
je 0x180035934
xor al, al
add rsp, 0x28
ret
mov rcx, qword [rcx + 0x210]
cmp rcx, 0xffffffffffffffff
je 0x18003592d
mov r9d, 2
lea rdx, [rsp + 0x30]
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x180036210
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, qword [rcx]
lea r9, [rsp + 0x40]
mov rax, rdx
mov dword [rsp + 0x40], 1
mov edx, 6
mov dword [rsp + 0x20], 4
mov rdi, rcx
mov rcx, rax
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x18003627b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rdi
call fcn.180041a30
mov r8, rax
lea rdx, str.Could_not_set_TCP_NODELAY:__s_n
mov rcx, rbx
call fcn.180034f10
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
lea rdx, str.TCP_NODELAY_set_n
mov rcx, rbx
call fcn.180034f10
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x180036390
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x140
mov rax, qword [0x1800e92b0]
xor rax, rsp
mov qword [rsp + 0x130], rax
cmp dword [rcx + 0xa4], 2
mov rbx, rdx
mov rsi, qword [rcx]
mov rdi, rcx
je 0x18003655d
cmp byte [rcx + 0x34a], 0
jne 0x180036555
cmp byte [rcx + 0x366], 0
jne 0x180036555
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], Ordinal_133
lea rdx, [rsp + 0xb0]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x180036432
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rdi
mov ebx, eax
call fcn.180041a30
mov r9, rax
lea rdx, str.getpeername___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.180034e40
jmp 0x18003655d
xor edx, edx
mov dword [rsp + 0x20], Ordinal_133
mov r8d, Ordinal_133
lea rcx, [rsp + 0x30]
call fcn.180081920
lea r8, [rsp + 0x20]
mov rcx, rbx
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x18003648f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rdi
mov ebx, eax
call fcn.180041a30
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.180034e40
jmp 0x18003655d
lea rbx, [rdi + 0x16e]
mov rdx, rbx
lea r8, [rdi + 0x19c]
lea rcx, [rsp + 0xb0]
call fcn.1800369f0
test al, al
jne 0x1800364dd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rdi
mov ebx, eax
call fcn.180041a30
mov r9, rax
lea rdx, str.ssrem_inet_ntop___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.180034e40
jmp 0x18003655d
movups xmm0, xmmword [rbx]
mov eax, dword [rbx + 0x28]
lea r8, [rdi + 0x1d0]
movups xmm1, xmmword [rbx + 0x10]
lea rdx, [rdi + 0x1a0]
movups xmmword [rdi + 0x70], xmm0
lea rcx, [rsp + 0x30]
movsd xmm0, qword [rbx + 0x20]
movups xmmword [rdi + 0x80], xmm1
movsd qword [rdi + 0x90], xmm0
mov dword [rdi + 0x98], eax
movzx eax, word [rbx + 0x2c]
mov word [rdi + 0x9c], ax
call fcn.1800369f0
test al, al
jne 0x180036555
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rdi
mov ebx, eax
call fcn.180041a30
mov r9, rax
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.180034e40
jmp 0x18003655d
mov rcx, rdi
call fcn.180035f90
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1800612f0
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x180036d20
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1800e92b0]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor esi, esi
mov dword [rsp + 0x20], 4
mov eax, esi
lea r9, [rsp + 0x50]
cmp byte [rcx + 0x764], al
mov rdi, rdx
mov rbx, rcx
mov edx, 0xffff
setne al
lea r8d, [rsi + 8]
mov rcx, rdi
mov dword [rsp + 0x50], eax
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x180036d8f
mov r8, rdi
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
mov rcx, rbx
call fcn.180034f10
jmp 0x180036e1e
mov ecx, dword [rbx + 0x768]
mov dword [rsp + 0x58], 1
call fcn.18003ed70
imul ecx, eax, 0x3e8
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x5c], ecx
mov ecx, dword [rbx + 0x76c]
call fcn.18003ed70
imul ecx, eax, 0x3e8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x54]
mov qword [rsp + 0x38], rsi
mov r9d, Ordinal_14
mov qword [rsp + 0x30], rax
mov edx, 0x98000004
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x60], ecx
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x180036e1e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, edi
lea rdx, str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
mov r9d, eax
mov rcx, rbx
call fcn.180034f10
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1800612f0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret