joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140018f59
Capabilities:
Access peb ldr_data
Get process filename

Disassembly:
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x48], 0
jmp 0x140013f0b
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword gs:[0x60]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 0x20]
sub rax, 0x10
jmp 0x14001808a
Function at 0x180005520
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
movsxd rax, dword [rsp + 0x50]
cmp rax, 0x40
jae 0x180005545
xor eax, eax
jmp 0x18000569b
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
mov qword [rcx + 0x18], rax
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x18]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x18000556d
xor eax, eax
jmp 0x18000569b
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x18]
movsxd rax, dword [rax + 0x3c]
add rax, 0x108
cmp rcx, rax
jae 0x180005590
xor eax, eax
jmp 0x18000569b
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x18]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x20], rcx
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x20]
cmp dword [rax], 0x4550
je 0x1800055c6
xor eax, eax
jmp 0x18000569b
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x20]
movzx eax, word [rax + 0x16]
and eax, 0x2000
test eax, eax
jne 0x1800055e8
lea rcx, [0x180041040]
call fcn.1800220c4
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x20]
movzx eax, word [rax + 0x16]
and eax, 2
test eax, eax
jne 0x180005603
xor eax, eax
jmp 0x18000569b
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x20]
movzx eax, word [rax + 0x14]
cmp rax, 0xf0
je 0x18000561c
xor eax, eax
jmp 0x18000569b
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + 0x20]
add rcx, 0x108
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x28], rcx
mov dword [rsp + 0x20], 0
jmp 0x18000564a
mov eax, dword [rsp + 0x20]
add eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x20]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x20], eax
jge 0x180005696
movsxd r8, dword [rsp + 0x20]
imul r8, r8, 0x28
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x28]
movsxd rdx, dword [rsp + 0x20]
imul rdx, rdx, 0x28
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + 0x28]
mov eax, dword [rax + r8 + 0x14]
add eax, dword [rcx + rdx + 0x10]
cmp eax, dword [rsp + 0x50]
jbe 0x180005694
xor eax, eax
jmp 0x18000569b
jmp 0x18000563f
mov eax, 1
add rsp, 0x38
ret
Function at 0x180006180
Capabilities:
Enumerate pe sections

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 rcx, qword [rsp + 0x30]
mov eax, dword [rsp + 0x38]
mov dword [rcx + 4], eax
mov rcx, qword [rsp + 0x30]
mov eax, dword [rsp + 0x40]
mov dword [rcx + 8], eax
mov rcx, qword [rsp + 0x30]
mov eax, dword [rsp + 0x48]
mov dword [rcx], eax
mov eax, dword [rsp + 0x40]
cmp rax, 0x40
jae 0x1800061df
mov edx, dword [rsp + 0x40]
lea rcx, [0x180040bb0]
call fcn.180006b50
mov eax, 0xffffff9b
jmp 0x180006354
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
mov qword [rcx + 0x10], rax
mov ecx, dword [rsp + 0x40]
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x10]
movsxd rax, dword [rax + 0x3c]
add rax, 0x108
cmp rcx, rax
jae 0x180006223
mov edx, dword [rsp + 0x40]
lea rcx, str.xpe_inter_initial_error___102____to_short___d_
call fcn.180006b50
mov eax, 0xffffff9a
jmp 0x180006354
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x10]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, qword [rsp + 0x30]
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x18]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x180006269
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x18]
mov qword [rcx + 0x20], rax
jmp 0x180006276
mov rax, qword [rsp + 0x30]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x18]
cmp dword [rax], 0x4550
je 0x1800062ae
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x18]
mov r8d, dword [rax]
mov edx, 0x4550
lea rcx, str.xpe_inter_initial_error___103____Signature_not_equal___08X__08X_
call fcn.180006b50
mov eax, 0xffffff99
jmp 0x180006354
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x18]
movzx eax, word [rax + 0x16]
and eax, 2
test eax, eax
jne 0x1800062d5
lea rcx, str.xpe_inter_initial_error___104____not_executable_image
call fcn.180006b50
mov eax, 0xffffff98
jmp 0x180006354
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x18]
movzx eax, word [rax + 0x14]
cmp dword [rsp + 0x48], 1
jne 0x1800062fd
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x18]
mov rcx, qword [rsp + 0x30]
mov eax, dword [rax + 0x50]
mov dword [rcx + 8], eax
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x20], 0
je 0x180006324
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x18]
add rcx, 0x108
mov rax, qword [rsp + 0x30]
mov qword [rax + 0x28], rcx
jmp 0x18000633d
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x18]
add rcx, 0xf8
mov rax, qword [rsp + 0x30]
mov qword [rax + 0x28], rcx
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x18]
movzx ecx, word [rax + 6]
mov rax, qword [rsp + 0x30]
mov dword [rax + 0x30], ecx
xor eax, eax
add rsp, 0x28
ret
Function at 0x180006740
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x48], 0xffffffffffffffff
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0xffffffffffffffff
jne 0x180006795
xor eax, eax
jmp 0x1800067b5
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x40], eax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret

Function at 0x1800067c0
Capabilities:
Read file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x40], 0xffffffffffffffff
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0xffffffffffffffff
jne 0x180006840
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rsp + 0x60]
mov edx, eax
lea rcx, [0x180040330]
call fcn.180006ac0
xor eax, eax
jmp 0x1800068e0
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x180006882
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rsp + 0x60]
mov edx, eax
lea rcx, [0x180040350]
call fcn.180006ac0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1800068e0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x78]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1800068d1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rsp + 0x60]
mov edx, eax
lea rcx, str.ReadFile_errors__d__s_r_n
call fcn.180006ac0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1800068e0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x48]
add rsp, 0x58
ret
Function at 0x1800068f0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x40], 0xffffffffffffffff
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov r8d, 2
mov edx, 0x40000000
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0xffffffffffffffff
jne 0x180006970
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rsp + 0x60]
mov edx, eax
lea rcx, [0x180040388]
call fcn.180006ac0
xor eax, eax
jmp 0x1800069ce
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1800069bf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rsp + 0x60]
mov edx, eax
lea rcx, [0x1800403a8]
call fcn.180006ac0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1800069ce
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x48]
add rsp, 0x58
ret

Function at 0x180006f30
Capabilities:
Create thread
Resume thread

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov edx, dword [rsp + 0x68]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
mov r9, qword [rsp + 0x60]
mov r8, qword [rsp + 0x58]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x180006f84
mov eax, 1
jmp 0x180006fa6
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp qword [rsp + 0x50], 0
je 0x180006fa4
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
mov qword [rcx], rax
xor eax, eax
add rsp, 0x48
ret

Function at 0x1800071b0
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1800071e7
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x18]
mov rax, qword [rax]
mov ecx, dword [rax]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
jmp 0x1800071ee
lea rax, [0x18003a62b]
add rsp, 0x38
ret
Function at 0x180007200
Capabilities:
Set socket configuration

Disassembly:
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov word [rsp + 8], cx
sub rsp, 0x68
mov rax, qword [0x180045408]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r8, qword [rsp + 0x78]
movzx edx, word [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.180007120
xor r8d, r8d
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsp + 0x30], rax
movzx eax, byte [rsp + 0x80]
test eax, eax
je 0x18000728d
mov dword [rsp + 0x54], 1
mov dword [rsp + 0x50], 4
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0x54]
mov r8d, 4
mov edx, 0xffff
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x1800072cc
mov edx, 2
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rax, 0xffffffffffffffff
jmp 0x18000730a
mov edx, 5
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x180007305
mov edx, 2
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rax, 0xffffffffffffffff
jmp 0x18000730a
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180021d30
add rsp, 0x68
ret

Function at 0x180007320
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x180045408]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x38], reloc.WS2_32.dll_recv
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0xffffffffffffffff
jne 0x18000736e
mov rax, 0xffffffffffffffff
jmp 0x18000739e
mov dword [rsp + 0x58], 0x7d0
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x58]
mov r8d, 0x1005
mov edx, 0xffff
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.180021d30
add rsp, 0x78
ret
Function at 0x1800073b0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get socket status

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov word [rsp + 8], cx
sub rsp, 0x298
mov rax, qword [0x180045408]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor r8d, r8d
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsp + 0x30], rax
mov r8, qword [rsp + 0x2a8]
movzx edx, word [rsp + 0x2a0]
lea rcx, [rsp + 0x40]
call fcn.180007120
cmp dword [rsp + 0x2b0], 0
jle 0x180007545
mov dword [rsp + 0x50], 1
mov dword [rsp + 0x54], 0
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_connect]
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x60], 0
mov dword [rsp + 0x278], 0
jmp 0x180007468
mov eax, dword [rsp + 0x278]
add eax, 1
mov dword [rsp + 0x278], eax
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x278], eax
jae 0x18000748c
mov ecx, dword [rsp + 0x278]
mov rax, qword [rsp + 0x30]
cmp qword [rsp + rcx*8 + 0x68], rax
jne 0x18000748a
jmp 0x18000748c
jmp 0x180007457
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x278], eax
jne 0x1800074bc
cmp dword [rsp + 0x60], 0x40
jae 0x1800074bc
mov ecx, dword [rsp + 0x278]
mov rax, qword [rsp + 0x30]
mov qword [rsp + rcx*8 + 0x68], rax
mov eax, dword [rsp + 0x60]
add eax, 1
mov dword [rsp + 0x60], eax
xor eax, eax
test eax, eax
jne 0x18000744a
mov eax, dword [rsp + 0x2b0]
cdq
mov ecx, 0x3e8
idiv ecx
mov dword [rsp + 0x270], eax
mov dword [rsp + 0x274], 0
mov ecx, dword [rsp + 0x30]
add ecx, 1
lea rax, [rsp + 0x270]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x60]
xor edx, edx
call qword [sym.imp.WS2_32.dll_select]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
jg 0x180007536
mov edx, 2
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rax, 0xffffffffffffffff
jmp 0x180007588
mov dword [rsp + 0x50], 0
mov rax, qword [rsp + 0x30]
jmp 0x180007588
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x180007566
mov rax, qword [rsp + 0x30]
jmp 0x180007588
mov edx, 2
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.180021d30
add rsp, 0x298
ret
Function at 0x1800075a0
Capabilities:
Get socket status

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x268
cmp dword [rsp + 0x278], 0
jg 0x1800075c1
mov al, 1
jmp 0x1800076ae
mov eax, dword [rsp + 0x278]
cdq
mov ecx, 0x3e8
idiv ecx
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x250], 0
jmp 0x180007602
mov eax, dword [rsp + 0x250]
add eax, 1
mov dword [rsp + 0x250], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x250], eax
jae 0x180007629
mov ecx, dword [rsp + 0x250]
mov rax, qword [rsp + 0x270]
cmp qword [rsp + rcx*8 + 0x48], rax
jne 0x180007627
jmp 0x180007629
jmp 0x1800075f1
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x250], eax
jne 0x18000765c
cmp dword [rsp + 0x40], 0x40
jae 0x18000765c
mov ecx, dword [rsp + 0x250]
mov rax, qword [rsp + 0x270]
mov qword [rsp + rcx*8 + 0x48], rax
mov eax, dword [rsp + 0x40]
add eax, 1
mov dword [rsp + 0x40], eax
xor eax, eax
test eax, eax
jne 0x1800075e4
mov rcx, qword [rsp + 0x270]
add rcx, 1
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x180007692
xor al, al
jmp 0x1800076ae
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x270]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1800076ac
mov al, 1
jmp 0x1800076ae
xor al, al
add rsp, 0x268
ret

Function at 0x1800076c0
Capabilities:
Get socket status

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x268
cmp dword [rsp + 0x278], 0
jg 0x1800076e1
mov al, 1
jmp 0x1800077cd
mov eax, dword [rsp + 0x278]
cdq
mov ecx, 0x3e8
idiv ecx
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x250], 0
jmp 0x180007722
mov eax, dword [rsp + 0x250]
add eax, 1
mov dword [rsp + 0x250], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x250], eax
jae 0x180007749
mov ecx, dword [rsp + 0x250]
mov rax, qword [rsp + 0x270]
cmp qword [rsp + rcx*8 + 0x48], rax
jne 0x180007747
jmp 0x180007749
jmp 0x180007711
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x250], eax
jne 0x18000777c
cmp dword [rsp + 0x40], 0x40
jae 0x18000777c
mov ecx, dword [rsp + 0x250]
mov rax, qword [rsp + 0x270]
mov qword [rsp + rcx*8 + 0x48], rax
mov eax, dword [rsp + 0x40]
add eax, 1
mov dword [rsp + 0x40], eax
xor eax, eax
test eax, eax
jne 0x180007704
mov rcx, qword [rsp + 0x270]
add rcx, 1
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x40]
xor edx, edx
call qword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x1800077b1
xor al, al
jmp 0x1800077cd
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x270]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1800077cb
mov al, 1
jmp 0x1800077cd
xor al, al
add rsp, 0x268
ret
Function at 0x1800077e0
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 edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
call fcn.1800076c0
movzx eax, al
test eax, eax
je 0x180007827
xor r9d, r9d
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_send]
jmp 0x18000782c
mov eax, 0xfffffc88
add rsp, 0x28
ret

Function at 0x180007840
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 edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
call fcn.1800075a0
movzx eax, al
test eax, eax
je 0x180007887
xor r9d, r9d
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_recv]
jmp 0x18000788c
mov eax, 0xfffffc88
add rsp, 0x28
ret

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

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_sendto]
add rsp, 0x38
ret

Function at 0x180007b80
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x48
xor r8d, r8d
mov edx, 2
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0xffffffffffffffff
je 0x180007bcf
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x38]
mov r8d, 0x20
mov edx, 0xffff
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rax, qword [rsp + 0x30]
add rsp, 0x48
ret

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

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
call fcn.1800075a0
movzx eax, al
test eax, eax
je 0x180007c46
mov rax, qword [rsp + 0x60]
mov dword [rax], reloc.WS2_32.dll_recv
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_recvfrom]
jmp 0x180007c4b
mov eax, 0xfffffc88
add rsp, 0x38
ret
Function at 0x180007c50
Capabilities:
Send data
Send data on socket

Disassembly:
mov word [rsp + 0x20], r9w
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [0x180045408]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov eax, 2
mov word [rsp + 0x38], ax
mov dword [rsp + 0x3c], 0xffffffff
movzx ecx, word [rsp + 0x78]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x3a], ax
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, dword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_sendto]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180021d30
add rsp, 0x58
ret

Function at 0x18000a0a0
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x58
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x18000a0c8
xor eax, eax
jmp 0x18000a14b
lea r8, [rsp + 0x48]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x18000a0ef
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x18000a14b
mov dword [rsp + 0x38], 1
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x3c], rax
mov dword [rsp + 0x44], 2
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, reloc.WS2_32.dll_recv
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x18000a146
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x18000a14b
mov eax, 1
add rsp, 0x58
ret

Function at 0x18000a400
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
movzx edx, word [rsp + 0x70]
mov r8, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0
cmp qword [rsp + 0x20], 0
jne 0x18000a455
lea rcx, [0x18003fb78]
call fcn.180006ac0
mov eax, 0xffffffff
jmp 0x18000a4bd
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x38], eax
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x60]
mov dword [rax + 4], 0
mov r8d, dword [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x60]
call fcn.180002170
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [rsp + 0x28]
add rsp, 0x58
ret