joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18005df60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
mov eax, 0x50
call fcn.180031ae0
sub rsp, rax
mov rax, qword [0x1800bc650]
xor rax, rsp
mov qword [rbp - 8], rax
mov rax, qword [rbp + 0x60]
mov r15, qword [rbp + 0x68]
mov rsi, rcx
movzx r10d, byte [rax]
mov ebx, dword [r15]
lea rdi, [rax + 1]
movzx ecx, byte [rdi + 6]
mov qword [rbp - 0x18], rax
movzx eax, byte [rdi]
shl eax, 8
mov r14, rdx
movzx edx, byte [rdi + 3]
or r10d, eax
movzx eax, byte [rdi + 1]
shl ecx, 8
shl eax, 0x10
mov r12d, r8d
lea r8, [rdi + 5]
or r10d, eax
movzx eax, byte [rdi + 2]
xor r13d, r13d
shl eax, 0x18
mov qword [rbp - 0x28], r9
mov qword [rbp - 0x20], r15
or r10d, eax
movzx eax, byte [rdi + 4]
shl eax, 8
mov dword [rbp - 0x30], r10d
mov byte [rbp - 0x10], r10b
or edx, eax
movzx eax, byte [r8]
or ecx, eax
mov eax, r10d
shr eax, 8
shl ecx, 0x10
mov byte [rbp - 0xf], al
or edx, ecx
mov eax, r10d
shr eax, 0x10
mov dword [rbp - 0x2c], edx
mov byte [rbp - 0xc], dl
mov byte [rbp - 0xe], al
mov eax, r10d
shr eax, 0x18
mov byte [rbp - 0xd], al
mov eax, edx
shr eax, 8
mov byte [rbp - 0xb], al
mov eax, edx
shr eax, 0x10
mov byte [rbp - 0xa], al
mov eax, edx
shr eax, 0x18
mov byte [rbp - 9], al
test r12d, r12d
je 0x18005e11c
mov r15, qword [rbp - 0x28]
sub r14, rsi
movzx r8d, dl
movzx r9d, r10b
dec r12d
test ebx, ebx
jne 0x18005e0b8
lea r8d, [rbx + 1]
lea rcx, [rbp - 0x30]
mov rdx, r15
call fcn.180059a70
mov r10d, dword [rbp - 0x30]
mov edx, dword [rbp - 0x2c]
movzx r9d, byte [rbp - 0x30]
movzx r8d, byte [rbp - 0x2c]
mov eax, r10d
shr eax, 8
mov byte [rbp - 0x10], r9b
mov byte [rbp - 0xc], r8b
mov byte [rbp - 0xf], al
mov eax, r10d
shr eax, 0x10
mov byte [rbp - 0xe], al
mov eax, r10d
shr eax, 0x18
mov byte [rbp - 0xd], al
mov eax, edx
shr eax, 8
mov byte [rbp - 0xb], al
mov eax, edx
shr eax, 0x10
mov byte [rbp - 0xa], al
mov eax, edx
shr eax, 0x18
inc r13d
mov byte [rbp - 9], al
movsxd rax, ebx
inc rsi
movzx ecx, byte [rbp + rax - 0x10]
xor cl, byte [rsi - 1]
inc ebx
mov byte [r14 + rsi - 1], cl
and ebx, 7
test r12d, r12d
jne 0x18005e052
mov r15, qword [rbp - 0x20]
test r13d, r13d
je 0x18005e11c
mov rax, qword [rbp - 0x18]
mov byte [rax], r9b
mov eax, r10d
shr eax, 8
mov byte [rdi], al
mov eax, r10d
shr r10d, 0x18
shr eax, 0x10
mov byte [rdi + 1], al
mov byte [rdi + 2], r10b
mov byte [rdi + 3], r8b
mov eax, edx
shr eax, 8
mov byte [rdi + 4], al
mov eax, edx
shr eax, 0x10
shr edx, 0x18
mov byte [rdi + 5], al
mov byte [rdi + 6], dl
mov dword [r15], ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.18002f6f0
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x18006d070
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1800d5404]
test ecx, ecx
jne 0x18006d18f
mov eax, dword [0x1800d5400]
cmp eax, 3
ja 0x18006d18f
inc eax
mov qword [rsp + 0x20], rbx
mov dword [0x1800d5400], eax
call fcn.180045840
test eax, eax
je 0x18006d0b6
lea rcx, str.Userenv.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x18006d0c3
lea rcx, [0x180090a08]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
jne 0x18006d0d5
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret
lea rdx, str.CreateEnvironmentBlock
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.DestroyEnvironmentBlock
mov rcx, rbx
mov qword [0x1800d53c8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.ExpandEnvironmentStringsForUserA
mov rcx, rbx
mov qword [0x1800d53d0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.ExpandEnvironmentStringsForUserW
mov rcx, rbx
mov qword [0x1800d53d8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.LoadUserProfileA
mov rcx, rbx
mov qword [0x1800d53e0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.LoadUserProfileW
mov rcx, rbx
mov qword [0x1800d53e8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.UnloadUserProfile
mov rcx, rbx
mov qword [0x1800d53f0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, qword [rsp + 0x20]
mov dword [0x1800d5404], 1
mov qword [0x1800d53f8], rax
mov eax, 1
add rsp, 0x28
ret
mov eax, ecx
add rsp, 0x28
ret
Function at 0x18006d1a0
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1800d545c]
test ecx, ecx
jne 0x18006d304
mov eax, dword [0x1800d5458]
cmp eax, 3
ja 0x18006d304
inc eax
mov qword [rsp + 0x20], rbx
mov dword [0x1800d5458], eax
call fcn.180045840
test eax, eax
je 0x18006d1e6
lea rcx, str.psapi.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x18006d1f3
lea rcx, [0x180090b28]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
jne 0x18006d205
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret
lea rdx, str.EnumProcesses
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.EnumProcessModules
mov rcx, rbx
mov qword [0x1800d5408], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetProcessMemoryInfo
mov rcx, rbx
mov qword [0x1800d5410], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetModuleFileNameExA
mov rcx, rbx
mov qword [0x1800d5418], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetModuleFileNameExW
mov rcx, rbx
mov qword [0x1800d5420], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetModuleInformation
mov rcx, rbx
mov qword [0x1800d5428], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetProcessImageFileNameA
mov rcx, rbx
mov qword [0x1800d5430], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetProcessImageFileNameW
mov rcx, rbx
mov qword [0x1800d5438], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetMappedFileNameA
mov rcx, rbx
mov qword [0x1800d5440], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetMappedFileNameW
mov rcx, rbx
mov qword [0x1800d5448], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, qword [rsp + 0x20]
mov qword [0x1800d5450], rax
mov dword [0x1800d545c], 1
mov eax, 1
add rsp, 0x28
ret
mov eax, ecx
add rsp, 0x28
ret
Function at 0x18006d3a0
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1800d559c]
test ecx, ecx
jne 0x18006d5c5
mov eax, dword [0x1800d5598]
cmp eax, 3
ja 0x18006d5c5
inc eax
mov qword [rsp + 0x20], rbx
mov dword [0x1800d5598], eax
call fcn.180045840
test eax, eax
je 0x18006d3e6
lea rcx, str.iphlpapi.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x18006d3f3
lea rcx, [0x180090ce0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
jne 0x18006d405
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret
lea rdx, str.GetAdapterIndex
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetAdaptersInfo
mov rcx, rbx
mov qword [0x1800d5508], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800d5510], rax
call fcn.1800459b0
test eax, eax
je 0x18006d453
lea rdx, str.GetAdaptersAddresses
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800d5518], rax
lea rdx, str.GetIfTable
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetIpForwardTable
mov rcx, rbx
mov qword [0x1800d5520], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CreateIpForwardEntry
mov rcx, rbx
mov qword [0x1800d5528], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.DeleteIpForwardEntry
mov rcx, rbx
mov qword [0x1800d5530], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetIpNetTable
mov rcx, rbx
mov qword [0x1800d5538], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SendARP
mov rcx, rbx
mov qword [0x1800d5540], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetTcpTable
mov rcx, rbx
mov qword [0x1800d5548], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetUdpTable
mov rcx, rbx
mov qword [0x1800d5550], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetNetworkParams
mov rcx, rbx
mov qword [0x1800d5558], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetPerAdapterInfo
mov rcx, rbx
mov qword [0x1800d5560], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.AddIPAddress
mov rcx, rbx
mov qword [0x1800d5568], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.DeleteIPAddress
mov rcx, rbx
mov qword [0x1800d5570], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NotifyAddrChange
mov rcx, rbx
mov qword [0x1800d5578], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NotifyRouteChange
mov rcx, rbx
mov qword [0x1800d5580], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SetAdapterIpAddress
mov rcx, rbx
mov qword [0x1800d5588], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, qword [rsp + 0x20]
mov dword [0x1800d559c], 1
mov qword [0x1800d5590], rax
mov eax, 1
add rsp, 0x28
ret
mov eax, ecx
add rsp, 0x28
ret
Function at 0x1800715d0
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x1800bc650]
xor rax, rsp
mov qword [rsp + 0x140], rax
cmp dword [0x1800d5600], 0
mov ebx, ecx
jne 0x180071653
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x110
mov dword [0x1800d5600], 1
call fcn.180031540
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x30], 2
jne 0x180071643
cmp dword [rsp + 0x24], 5
jb 0x180071643
mov rax, qword [str.GlobalOCULAR_]
mov qword [0x1800d55f8], rax
jmp 0x18007165a
mov rax, qword [str.OCULAR_]
mov qword [0x1800d55f8], rax
jmp 0x18007165a
mov rax, qword [0x1800d55f8]
test ebx, ebx
cmovne rax, qword [str.OCULAR_]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.18002f6f0
add rsp, 0x150
pop rbx
ret
Function at 0x180073800
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x60
mov rsi, qword [rcx + 8]
mov ebx, r9d
mov r12d, r8d
mov r13, rdx
mov rdi, rcx
test rsi, rsi
je 0x18007396b
cmp qword [rcx + 0x10], 0
je 0x18007396b
mov edx, ebx
call fcn.180073740
test eax, eax
je 0x180073973
mov rcx, qword [rdi + 0x10]
xor eax, eax
mov qword [rsp + 0x88], rbp
xor ebp, ebp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov r11, qword [rdi + 0x10]
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x80]
mov r8d, r12d
mov rdx, r13
mov rcx, rsi
mov qword [rsp + 0x50], r11
mov dword [rsp + 0x80], ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r12d, eax
test eax, eax
je 0x1800738c4
cmp dword [rsp + 0x80], ebp
je 0x1800738c4
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [rsp + 0x80]
jmp 0x1800738eb
call qword [sym.imp.KERNEL32.dll_GetLastError]
test r12d, r12d
jne 0x180073909
test eax, eax
je 0x180073909
cmp eax, 0x3e5
je 0x180073909
cmp eax, 0x217
je 0x180073909
mov eax, 0xf0000001
mov dword [rdi + 0x24], eax
xor eax, eax
mov rbp, qword [rsp + 0x88]
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
mov rcx, qword [rsp + 0x50]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rsi
mov ebx, eax
test eax, eax
je 0x18007393a
call qword [sym.imp.KERNEL32.dll_CancelIo]
mov eax, 0xf0000001
mov ecx, 0xf0000003
cmp ebx, 0x102
cmove eax, ecx
jmp 0x1800738e6
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
xor r9d, r9d
mov dword [rsp + 0x30], ebp
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov rcx, qword [rdi + 0x10]
mov ebx, eax
mov dword [rdi + 0x24], ebp
call qword [sym.imp.KERNEL32.dll_ResetEvent]
test ebx, ebx
cmovne ebp, dword [rsp + 0x30]
mov eax, ebp
jmp 0x1800738eb
mov eax, 0xf0000001
mov dword [rcx + 0x24], eax
xor eax, eax
jmp 0x1800738f3
Function at 0x180073980
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x60
mov rsi, qword [rcx + 8]
mov ebx, r9d
mov r12d, r8d
mov r13, rdx
mov rdi, rcx
test rsi, rsi
je 0x180073aeb
cmp qword [rcx + 0x18], 0
je 0x180073aeb
mov edx, ebx
call fcn.180073740
test eax, eax
je 0x180073af3
mov rcx, qword [rdi + 0x18]
xor eax, eax
mov qword [rsp + 0x88], rbp
xor ebp, ebp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov r11, qword [rdi + 0x18]
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x80]
mov r8d, r12d
mov rdx, r13
mov rcx, rsi
mov qword [rsp + 0x50], r11
mov dword [rsp + 0x80], ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r12d, eax
test eax, eax
je 0x180073a44
cmp dword [rsp + 0x80], ebp
jbe 0x180073a44
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [rsp + 0x80]
jmp 0x180073a6b
call qword [sym.imp.KERNEL32.dll_GetLastError]
test r12d, r12d
jne 0x180073a89
test eax, eax
je 0x180073a89
cmp eax, 0x3e5
je 0x180073a89
cmp eax, 0x217
je 0x180073a89
mov eax, 0xf0000001
mov dword [rdi + 0x24], eax
xor eax, eax
mov rbp, qword [rsp + 0x88]
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
mov rcx, qword [rsp + 0x50]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rsi
mov ebx, eax
test eax, eax
je 0x180073aba
call qword [sym.imp.KERNEL32.dll_CancelIo]
mov eax, 0xf0000001
mov ecx, 0xf0000003
cmp ebx, 0x102
cmove eax, ecx
jmp 0x180073a66
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
xor r9d, r9d
mov dword [rsp + 0x30], ebp
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov rcx, qword [rdi + 0x18]
mov ebx, eax
mov dword [rdi + 0x24], ebp
call qword [sym.imp.KERNEL32.dll_ResetEvent]
test ebx, ebx
cmovne ebp, dword [rsp + 0x30]
mov eax, ebp
jmp 0x180073a6b
mov eax, 0xf0000001
mov dword [rcx + 0x24], eax
xor eax, eax
jmp 0x180073a73

Function at 0x180073dc0
Capabilities:
Write file on windows

Disassembly:
cmp dword [rcx + 0x1c], 6
mov rax, rcx
je 0x180073dcd
or eax, 0xffffffff
ret
test r8d, r8d
jg 0x180073dd5
xor eax, eax
ret
mov r9d, dword [rax + 8]
add rcx, 0x70
jmp fcn.180073980

Function at 0x180073df0
Capabilities:
Read file on windows

Disassembly:
cmp dword [rcx + 0x1c], 6
mov rax, rcx
je 0x180073dfd
or eax, 0xffffffff
ret
test r8d, r8d
jne 0x180073e05
xor eax, eax
ret
mov r9d, dword [rax + 0xc]
add rcx, 0x70
jmp fcn.180073800
Function at 0x1800741f0
Capabilities:
Connect pipe
Create pipe

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x1800bc650]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov ebp, r8d
mov rsi, rdx
mov rdi, rcx
call fcn.1800736d0
call fcn.180073580
mov rbx, rax
test rax, rax
je 0x18007438d
mov qword [rsp + 0x2b0], r12
lea rcx, [rsp + 0x42]
xor r12d, r12d
xor edx, edx
mov r8d, 0x22e
mov word [rsp + 0x40], r12w
call fcn.180031540
lea rcx, [rsp + 0x40]
sub rcx, rbx
nop dword [rax + rax]
movzx eax, word [rbx]
add rbx, 2
mov word [rcx + rbx - 2], ax
test ax, ax
jne 0x180074260
test rsi, rsi
je 0x180074289
lea rcx, [rsp + 0x40]
mov r8d, 0x104
mov rdx, rsi
call fcn.180030048
call fcn.18002d010
mov edx, 0x40000003
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], r12d
test ebp, ebp
jne 0x1800742bf
mov dword [rsp + 0x28], 0x8000
lea r9d, [rbp + 1]
xor r8d, r8d
mov dword [rsp + 0x20], 0x8000
jmp 0x1800742db
mov dword [rsp + 0x28], 0x1000
mov r9d, 0xff
mov r8d, 6
mov dword [rsp + 0x20], 0x1000
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov qword [rdi + 8], rax
cmp rax, 0xffffffffffffffff
jne 0x1800742f4
mov qword [rdi + 8], r12
jmp 0x180074383
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
mov dword [rdi + 0x28], ebp
call qword [sym.imp.KERNEL32.dll_CreateEventW]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
mov qword [rdi + 0x10], rax
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi + 0x18], rax
cmp qword [rdi + 0x10], r12
je 0x18007437b
test rax, rax
je 0x18007437b
xor eax, eax
lea rdx, [rdi + 0x30]
mov qword [rdx], rax
mov qword [rdx + 8], rax
mov qword [rdx + 0x10], rax
mov qword [rdx + 0x18], rax
mov rax, qword [rdi + 0x10]
mov rcx, qword [rdi + 8]
mov qword [rdi + 0x48], rax
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x18007436d
cmp eax, 0x3e5
je 0x18007436d
cmp eax, 0x217
jne 0x180074383
mov dword [rdi + 0x20], 1
mov eax, 1
jmp 0x180074385
mov rcx, rdi
call fcn.1800736d0
xor eax, eax
mov r12, qword [rsp + 0x2b0]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.18002f6f0
mov rbx, qword [rsp + 0x2b8]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret

Function at 0x180074af0
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x1d0
mov rax, qword [0x1800bc650]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
cmp dword [rcx], 0
mov rbx, rcx
jne 0x180074b2b
lea rdx, [rsp + 0x20]
mov cx, 2
call qword [sym.imp.WS2_32.dll_WSAStartup]
xor edx, edx
test eax, eax
sete dl
mov dword [rbx], edx
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.18002f6f0
add rsp, 0x1d0
pop rbx
ret
Function at 0x180074b90
Capabilities:
Set socket configuration

Disassembly:
push rdi
sub rsp, 0x60
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov rax, qword [0x1800bc650]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rdi, rcx
cmp qword [rcx + 0x10], 0xffffffffffffffff
je 0x180074c14
mov ecx, 0x28
call fcn.18002f788
mov qword [rsp + 0x40], rax
test rax, rax
je 0x180074bde
mov rcx, rax
call fcn.180074b50
mov rbx, rax
jmp 0x180074be0
xor ebx, ebx
test rbx, rbx
je 0x180074c14
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x48]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.WS2_32.dll_accept]
cmp rax, 0xffffffffffffffff
jne 0x180074c18
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
xor eax, eax
jmp 0x180074c47
mov qword [rbx + 0x10], rax
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 6
lea r8d, [rdx - 5]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rax, rbx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18002f6f0
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret

Function at 0x180074c60
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x1800bc650]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp qword [rcx + 0x10], 0xffffffffffffffff
mov edi, r8d
mov rbx, rcx
jne 0x180074c8d
xor eax, eax
jmp 0x180074d42
lea eax, [r8 + 0x20000000]
cmp eax, 0xfffffff
ja 0x180074ca8
mov dword [rcx + 0x1c], 1
mov dword [rcx + 0x20], r8d
xor edi, edi
mov eax, 2
movzx ecx, dx
mov word [rsp + 0x38], ax
call qword [sym.imp.WS2_32.dll_htons]
mov ecx, edi
mov word [rsp + 0x3a], ax
call qword [sym.imp.WS2_32.dll_htonl]
mov rcx, qword [rbx + 0x10]
lea rdx, [rsp + 0x38]
mov r8d, reloc.WS2_32.dll_recv
mov dword [rsp + 0x3c], eax
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
js 0x180074c86
cmp dword [rbx + 0x1c], 0
je 0x180074d3d
mov ecx, dword [rbx + 0x20]
xor eax, eax
mov byte [rsp + 0x30], 0
mov dword [rsp + 0x31], eax
mov word [rsp + 0x35], ax
mov byte [rsp + 0x37], al
call qword [sym.imp.WS2_32.dll_htonl]
xor ecx, ecx
mov dword [rsp + 0x30], eax
call qword [sym.imp.WS2_32.dll_htonl]
mov rcx, qword [rbx + 0x10]
xor edx, edx
lea r9, [rsp + 0x30]
mov dword [rsp + 0x34], eax
lea r8d, [rdx + 0xc]
mov dword [rsp + 0x20], 8
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
js 0x180074c86
mov eax, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.18002f6f0
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x180074d60
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x50
mov rdi, rcx
lea rcx, [0x1800d5658]
mov ebx, edx
call fcn.180074af0
cmp qword [rdi + 0x10], 0xffffffffffffffff
je 0x180074d8b
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x28]
dec ebx
je 0x180074dfd
dec ebx
jne 0x180074e17
mov edx, 2
xor r8d, r8d
mov ecx, edx
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rdi + 0x10], rax
cmp rax, 0xffffffffffffffff
je 0x180074e17
xor edx, edx
lea rcx, [rsp + 0x68]
lea r9d, [rbx + 4]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x68], edx
mov dword [rsp + 0x60], edx
mov qword [rsp + 0x20], rdx
lea r8, [rsp + 0x60]
mov rcx, rax
mov edx, 0x9800000c
call qword [sym.imp.WS2_32.dll_WSAIoctl]
lea eax, [rbx + 1]
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
xor r8d, r8d
lea edx, [r8 + 1]
lea ecx, [rdx + 1]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rdi + 0x10], rax
cmp rax, 0xffffffffffffffff
jne 0x180074e24
xor eax, eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
lea r9, [rsp + 0x68]
mov edx, 0xffff
mov r8d, 4
mov rcx, rax
mov dword [rsp + 0x68], 1
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rdi + 0x10]
mov edx, 6
lea r9, [rsp + 0x68]
lea r8d, [rdx - 5]
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rbx, qword [rsp + 0x70]
mov eax, 1
add rsp, 0x50
pop rdi
ret

Function at 0x180074e80
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1800bc650]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor eax, eax
mov rdi, rcx
mov ecx, edx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
mov eax, 2
mov word [rsp + 0x20], ax
movzx ebx, r8w
call qword [sym.imp.WS2_32.dll_htonl]
movzx ecx, bx
mov dword [rsp + 0x24], eax
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rdi + 0x10]
lea rdx, [rsp + 0x20]
mov r8d, reloc.WS2_32.dll_recv
mov word [rsp + 0x22], ax
call qword [sym.imp.WS2_32.dll_connect]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.18002f6f0
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret