joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000c100
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
xor ebx, ebx
xor r14d, r14d
mov esi, r9d
and dword [rsp + 0x70], ebx
mov r15d, r8d
mov ebp, edx
mov rdi, rcx
mov rcx, qword [0x18008a130]
lea r12, [0x18008a130]
cmp rcx, r12
je 0x18000c147
test byte [rcx + 0x1c], 8
jne 0x18004fb8d
lea rax, [rdi - 1]
cmp rax, 0xfffffffffffffffd
ja 0x18004fc53
test esi, esi
je 0x18004fc53
cmp ebp, 2
jne 0x18000c16b
test r15d, r15d
je 0x18004fbb9
mov dword [rsp + 0x70], esi
mov edx, 0x29
lea r9, [rsp + 0x70]
mov r8d, 9
mov rcx, rdi
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov ebp, 0x10000000
cmp eax, 0xffffffff
je 0x18004fbcc
test r15d, r15d
je 0x18000c1da
mov ecx, esi
call qword [sym.imp.WS2_32.dll_htonl]
xor edx, edx
lea r9, [rsp + 0x70]
lea r8d, [rdx + 9]
mov rcx, rdi
mov dword [rsp + 0x20], 4
mov dword [rsp + 0x70], eax
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x18004fc0f
test ebx, ebx
cmovne ebx, r14d
mov eax, ebx
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x30], r9d
mov dword [rsp + 0x28], r8d
lea r8, [0x180082740]
mov edx, 0x1d
mov r9d, edi
mov dword [rsp + 0x20], ebp
call fcn.180062804
nop
jmp 0x18000c147
mov ecx, esi
call qword [sym.imp.WS2_32.dll_htonl]
xor edx, edx
mov dword [rsp + 0x70], eax
jmp 0x18000c174
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
mov rcx, qword [0x18008a130]
cmp rcx, r12
je 0x18000c19e
test dword [rcx + 0x1c], ebp
je 0x18000c19e
mov rcx, qword [rcx + 0x10]
lea r8, [0x180082740]
mov edx, 0x1e
mov r9d, edi
mov dword [rsp + 0x20], eax
call fcn.18005b9d0
nop
jmp 0x18000c19e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r14d, eax
mov rcx, qword [0x18008a130]
cmp rcx, r12
je 0x18000c1d4
test dword [rcx + 0x1c], ebp
je 0x18000c1d4
mov rcx, qword [rcx + 0x10]
lea r8, [0x180082740]
mov edx, 0x1f
mov r9d, edi
mov dword [rsp + 0x20], eax
call fcn.18005b9d0
nop
jmp 0x18000c1d4
mov eax, 0x57
jmp 0x18000c1dc
Function at 0x18000dcc8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x30
xor r15d, r15d
mov ebx, edx
mov r14, rcx
xor r12d, r12d
mov r10, qword [0x18008a130]
lea rax, [0x18008a130]
cmp r10, rax
je 0x18000dd11
test dword [r10 + 0x1c], 0x10000
jne 0x180044cd5
test ebx, ebx
je 0x18000dd9e
mov r9d, dword [r14 + 0x44]
xor esi, esi
test r9d, r9d
je 0x18000dd84
lea rdi, [r14 + 0x88]
mov rbp, qword [rdi]
test rbp, rbp
je 0x18000dd6d
xor r11d, r11d
cmp dword [rbp + 4], r11d
jbe 0x18000dd6d
mov ecx, r11d
shl rcx, 6
add rcx, 0x20
add rcx, rbp
call fcn.18000c5ec
test eax, eax
jne 0x18002f4e5
lea r12d, [rax + 1]
test r15d, r15d
jne 0x18002f55e
inc r11d
cmp r11d, dword [rbp + 4]
jb 0x18000dd3c
inc esi
add rdi, 0x88
cmp esi, r9d
jb 0x18000dd2b
test r15d, r15d
jne 0x18002f550
lea r12, [0x18008a130]
cmp r10, r12
je 0x18000dd9e
test dword [r10 + 0x1c], 0x10000
jne 0x18003da7b
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
ret
mov r15d, 1
jmp 0x18000dd64
cmp ebx, 1
jne 0x18002f55e
test r12d, r12d
je 0x180044cfd
xor esi, esi
test r9d, r9d
je 0x18000dd9e
lea r12, [0x18008a130]
mov eax, esi
lea rdi, [r14 + 0x68]
imul rcx, rax, 0x88
add rdi, rcx
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x18002f5f9
xor ebp, ebp
xor r9d, r9d
xor r15d, r15d
cmp dword [rbx + 4], ebp
jbe 0x18002f5f9
mov ecx, ebp
shl rcx, 6
add rcx, 0x20
add rcx, rbx
call fcn.18000c5ec
test eax, eax
jne 0x18002f60b
mov r15d, 1
inc ebp
jmp 0x18002f5b7
cmp ebp, dword [rbx + 4]
jb 0x18002f596
test r9d, r9d
je 0x18002f5f9
test r15d, r15d
jne 0x18002f5f9
mov rcx, qword [0x18008a130]
cmp rcx, r12
je 0x18002f5df
test dword [rcx + 0x1c], 0x10000
jne 0x180044d36
or dword [rdi + 0x3c], 0x14000000
cmp dword [rbx + 4], 0
jne 0x18002f5f9
mov rcx, rbx
call fcn.180008b84
and qword [rdi + 0x20], 0
inc esi
cmp esi, dword [r14 + 0x44]
jb 0x18002f570
jmp 0x18000dd9e
mov rdx, rcx
mov rcx, rbx
call fcn.18002f628
mov r9d, 1
jmp 0x18002f5b7
mov edx, 0x5a
jmp 0x180044d20
mov r9, rcx
mov rcx, qword [r10 + 0x10]
lea r8, [0x180082108]
mov edx, 0x59
mov dword [rsp + 0x20], ebx
call fcn.180058cf4
mov r10, qword [0x18008a130]
jmp 0x18000dd11
lea r12, [0x18008a130]
cmp r10, r12
je 0x18000dd9e
test dword [r10 + 0x1c], 0x10000
je 0x18000dd9e
mov edx, 0x5b
mov rcx, qword [r10 + 0x10]
lea r8, [0x180082108]
call fcn.180058818
nop
jmp 0x18000dd9e
mov r9, qword [rdi]
mov rcx, qword [rcx + 0x10]
lea r8, [0x180082108]
mov edx, 0x5c
mov qword [rsp + 0x20], rdi
call fcn.18005b344
nop
jmp 0x18002f5df
Function at 0x18000ef50
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x40
and qword [rbp - 0x10], 0
and qword [rbp + 0x38], 0
and dword [rbp + 0x20], 0
lea rax, [rbp - 0x10]
mov rbx, rcx
lea rdx, [0x1800218d0]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
xor edi, edi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x18000efbf
mov rdx, qword [rbx]
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
je 0x180053f93
lea rcx, [0x180021960]
mov edx, eax
call fcn.18000f00c
mov rcx, qword [rbp + 0x38]
test rcx, rcx
jne 0x18003dc05
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x18000efe9
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov ecx, dword [rbp + 0x20]
xor eax, eax
test ecx, ecx
setne al
cmp dword [rbx + 0x6c], eax
jne 0x180053fca
mov eax, edi
add rsp, 0x40
pop rdi
pop rbx
pop rbp
ret
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
jmp 0x18000efda
mov rcx, qword [rbp + 0x38]
lea rax, [rbp + 0x28]
lea r9, [rbp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x20]
lea rdx, [0x180054018]
xor r8d, r8d
mov dword [rbp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop
jmp 0x18000efcd
xor eax, eax
test ecx, ecx
mov edi, 1
setne al
mov dword [rbx + 0x6c], eax
test eax, eax
je 0x180053fe7
bts dword [rbx + 0x3c], 0x1c
jmp 0x18000effc
btr dword [rbx + 0x3c], 0x1c
jmp 0x18000effc
Function at 0x18000fd60
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r15
sub rsp, 0x170
mov rax, qword [0x18008a480]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rbx, rcx
mov r15d, 0x11c
lea rcx, [rsp + 0x41]
xor edx, edx
mov r8d, r15d
mov byte [rsp + 0x40], 0
call sub.api_ms_win_core_crt_l1_1_0.dll_memset
mov rdi, qword [rbx + 8]
xor esi, esi
mov rcx, qword [0x18008a130]
lea r12, [0x18008a130]
cmp rcx, r12
je 0x18000fdcb
test dword [rcx + 0x1c], 0x20000
jne 0x180045cb3
mov rcx, qword [rbx]
and dword [rbx + 0x928], esi
lea rax, [rbx + 0x128]
mov dword [rbx + 0x900], 0x3e8
mov qword [rbx + 0x908], rax
mov qword [rbx + 0x910], rax
mov qword [rbx + 0x918], rax
mov qword [rbx + 0x920], rax
test rcx, rcx
jne 0x180045cce
test rdi, rdi
je 0x18000fe3c
lea rcx, [0x1800219cc]
mov rdx, rdi
call sub.api_ms_win_core_crt_l1_1_0.dll_strcmp
test eax, eax
je 0x18000fe3c
lea rcx, [0x1800219d8]
mov rdx, rdi
call sub.api_ms_win_core_crt_l1_1_0.dll_strcmp
test eax, eax
jne 0x180045ce2
lea esi, [rax + 1]
lea rcx, [rsp + 0x40]
mov edx, 0x104
call qword [sym.imp.api_ms_win_core_sysinfo_l1_2_1.dll_GetSystemDirectoryA]
lea r8, [0x1800219e8]
lea rcx, [rsp + 0x40]
mov rdx, r15
call fcn.18000ff00
test esi, esi
je 0x18000fe78
lea r8, [0x1800219fc]
lea rcx, [rsp + 0x40]
mov rdx, r15
call fcn.18000ff00
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
xor r9d, r9d
lea r8d, [r9 + 1]
lea rcx, [rsp + 0x40]
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_CreateFileA]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
jne 0x18000feaf
and qword [rbx], 0
cmp qword [rbx], 0
je 0x180010053
mov rcx, rbx
call fcn.180010078
mov eax, 1
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.180001000
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r12
pop rdi
ret
test esi, esi
je 0x18003de66
xor eax, eax
jmp 0x18000fec6
call fcn.180062ed0
jmp 0x18001005b
mov rcx, qword [rcx + 0x10]
lea r8, [0x1800820b0]
mov edx, 0xa
call fcn.180058818
nop
jmp 0x18000fdcb
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_SetFilePointer]
nop
jmp 0x18000feaf
mov rcx, qword [0x18008a130]
cmp rcx, r12
je 0x18000feaf
test dword [rcx + 0x1c], 0x400
je 0x18000feaf
mov rcx, qword [rcx + 0x10]
lea r8, [0x1800820b0]
mov edx, reloc.WS2_32.dll_inet_addr
mov r9, rdi
call fcn.18005b780
nop
jmp 0x18000feaf
Function at 0x180010078
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
push rsi
push rdi
push r15
sub rsp, 0x30
mov esi, dword [rcx + 0x38]
mov rbx, qword [rcx + 0x918]
mov rdi, rcx
mov r15d, 1
test esi, esi
jne 0x180010111
lea rdx, [rcx + 0x128]
mov rcx, qword [rcx]
xor ebp, ebp
and dword [rax + 8], ebp
and qword [rax - 0x28], rbp
lea r9, [rax + 8]
lea r8d, [rsi + 2]
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_ReadFile]
test eax, eax
je 0x180045dc9
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x180045dc9
cmp byte [rbx], 0xff
je 0x180045d1e
cmp byte [rbx], 0xfe
je 0x180045d32
cmp byte [rbx], 0xef
je 0x180045d4d
mov esi, r15d
mov dword [rdi + 0x38], esi
test ebp, ebp
jne 0x180045d9e
lea rcx, [rdi + 0x128]
add rcx, rax
mov qword [rdi + 0x910], rcx
mov eax, r15d
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop rdi
pop rsi
ret
cmp byte [rbx + 1], 0xfe
jne 0x1800100e0
mov esi, 2
add rbx, rsi
jmp 0x180045d45
cmp byte [rbx + 1], 0xff
jne 0x1800100e9
mov esi, 3
add rbx, 2
mov ebp, r15d
jmp 0x1800100f5
cmp byte [rbx + 1], 0xbb
jne 0x1800100f2
mov rcx, qword [rdi]
and dword [rsp + 0x50], ebp
and qword [rsp + 0x20], rbp
lea rdx, [rdi + 0x12a]
lea r9, [rsp + 0x50]
mov r8d, r15d
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_ReadFile]
test eax, eax
je 0x180045dc9
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x180045dc9
add eax, 2
cmp byte [rbx + 2], 0xbf
jne 0x180045d95
mov esi, 4
mov ebp, r15d
add rbx, 3
jmp 0x1800100f5
mov dword [rdi + 0x900], 0x7d0
mov qword [rdi + 0x908], rbx
mov qword [rdi + 0x910], rbx
mov qword [rdi + 0x918], rbx
mov qword [rdi + 0x920], rbx
jmp 0x180010111
xor eax, eax
jmp 0x180010114
Function at 0x180011520
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x100]
sub rsp, 0x200
mov rax, qword [0x18008a480]
xor rax, rsp
mov qword [rbp + 0xf0], rax
mov eax, 1
movzx r14d, dx
mov r12, rcx
lea rdx, [rsp + 0x50]
mov ecx, 0x202
mov rdi, r9
mov r13d, r8d
mov esi, eax
mov r15d, eax
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov ebx, eax
test eax, eax
jne 0x180055210
lea ecx, [rax + 2]
lea r8d, [r15 + 5]
mov edx, r15d
mov ebx, 0x251d
call qword [sym.imp.WS2_32.dll_socket]
cmp rax, 0xffffffffffffffff
je 0x18003df3a
mov rcx, rax
call qword [sym.imp.WS2_32.dll_closesocket]
mov ecx, reloc.WS2_32.dll_socket
mov edx, r15d
lea r8d, [rcx - 0x11]
call qword [sym.imp.WS2_32.dll_socket]
cmp rax, 0xffffffffffffffff
je 0x18003df41
mov rcx, rax
call qword [sym.imp.WS2_32.dll_closesocket]
test esi, esi
je 0x180011636
mov eax, 1
test r13d, r13d
je 0x18003df14
and dword [rsp + 0x30], 0
and dword [rsp + 0x34], 0
mov dword [rsp + 0x38], 0xffff0000
mov dword [rsp + 0x3c], 0x100007f
lea rdx, [rsp + 0x40]
mov r9d, eax
movaps xmm0, xmmword [rsp + 0x30]
mov r8d, 0x4b0
mov rcx, r12
mov dword [rsp + 0x20], eax
movdqa xmmword [rsp + 0x40], xmm0
call fcn.1800111a8
mov rcx, rax
test rax, rax
je 0x18003df49
mov rax, qword [rdi]
xor ebx, ebx
mov qword [rcx], rax
mov qword [rdi], rcx
mov eax, 1
cmp r14w, 0x1c
jne 0x18001169a
test r15d, r15d
je 0x18001169a
and dword [rsp + 0x30], 0
and dword [rsp + 0x34], 0
and dword [rsp + 0x38], 0
mov dword [rsp + 0x3c], 0x1000000
lea rdx, [rsp + 0x40]
mov r9d, eax
movaps xmm0, xmmword [rsp + 0x30]
mov r8d, 0x4b0
mov rcx, r12
mov dword [rsp + 0x20], eax
movdqa xmmword [rsp + 0x40], xmm0
call fcn.1800111a8
mov rcx, rax
test rax, rax
je 0x18003df49
mov rax, qword [rdi]
xor ebx, ebx
mov qword [rcx], rax
mov qword [rdi], rcx
call qword [sym.imp.WS2_32.dll_WSACleanup]
test ebx, ebx
jne 0x180055210
mov eax, ebx
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.180001000
mov rbx, qword [rsp + 0x248]
add rsp, 0x200
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
cmp r14w, ax
jne 0x18001163b
mov edx, 0x100007f
mov r8d, 0x4b0
mov rcx, r12
mov dword [rsp + 0x20], eax
call fcn.180023e78
jmp 0x18001161f
xor esi, esi
jmp 0x1800115a9
xor r15d, r15d
jmp 0x1800115ce
mov ebx, reloc.WS2_32.dll_ntohl
jmp 0x18001169a
mov rcx, qword [rdi]
test rcx, rcx
je 0x1800116a8
call fcn.180008da0
and qword [rdi], 0
jmp 0x1800116a8
Function at 0x1800151e0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
lea rcx, [rsp + 0x38]
mov edx, 2
call qword [sym.imp.CRYPTBASE.dll_SystemFunction036]
test al, al
je 0x1800528bc
movzx eax, word [rsp + 0x38]
test ax, ax
je 0x1800151e8
add rsp, 0x20
pop rbx
ret
mov rcx, qword [0x18008a130]
lea rax, [0x18008a130]
cmp rcx, rax
je 0x1800528fa
test byte [rcx + 0x1c], 0x10
je 0x1800528fa
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov rcx, qword [0x18008a130]
lea r8, [0x180082700]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov edx, 0x45
call fcn.180058fb0
movzx eax, bx
jmp 0x18001520a
Function at 0x180017180
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
test rcx, rcx
je 0x18003d8c1
movzx eax, word [rcx]
test ax, ax
je 0x1800171a9
add r8d, r8d
movzx eax, ax
lea rcx, [rcx + 2]
xor r8d, eax
movzx eax, word [rcx]
test ax, ax
jne 0x180017194
mov eax, 0x6eecbe1
mul r8d
mov eax, r8d
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 9
imul eax, eax, 0x3e5
sub r8d, eax
mov eax, r8d
ret
xor eax, eax
ret
Function at 0x180018f6c
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x30
xor ebx, ebx
mov dword [rax + 0x10], 4
lea rax, [rax + 0x18]
mov dword [rax - 0x10], ebx
mov qword [rax], rbx
lea rdx, [0x180023730]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x180018fd9
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
lea rdx, [0x180018ff8]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x180018fe9
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
cmp dword [rsp + 0x40], ebx
setne bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x18001a1dc
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
xor edi, edi
mov eax, edx
mov r15d, r9d
add rax, rax
mov esi, r8d
lea r13, [0x18008b1f0]
mov r13, qword [r13 + rax*8]
lea rax, [rbp + 0x38]
lea r9, [rbp - 0x10]
mov qword [r11 - 0x40], rax
xor r8d, r8d
mov rdx, r13
mov rbx, rcx
mov dword [rbp - 0x10], edi
mov dword [rbp + 0x38], edi
mov r12d, edi
mov qword [r11 - 0x48], rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
je 0x1800454c8
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov eax, dword [rbp - 0x10]
cmp r15d, eax
je 0x1800454da
mov eax, 0x3f2
jmp 0x18001a244
test eax, eax
je 0x180053dbe
mov r14, qword [rbp + 0x50]
mov edx, 4
cmp eax, 3
jbe 0x1800454fd
cmp eax, edx
je 0x180045522
cmp eax, 7
jne 0x180053dbe
mov ecx, dword [rbp + 0x38]
cmp ecx, edx
cmovbe ecx, edx
mov dword [rbp + 0x38], ecx
call fcn.180008d40
mov rdi, rax
mov r12, rax
test rax, rax
jne 0x180045527
lea eax, [r12 + 0xe]
jmp 0x18001a244
mov rdi, r14
jmp 0x18004552a
and dword [rax], 0
lea rax, [rbp + 0x38]
lea r9, [rbp - 0x10]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, r13
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
xor r13d, r13d
mov ebx, eax
test eax, eax
jne 0x180045595
mov eax, dword [rbp - 0x10]
test eax, eax
je 0x1800455fa
cmp eax, 2
jbe 0x18004556d
cmp eax, 7
jne 0x1800455fa
mov ecx, dword [rbp + 0x38]
test sil, 0x10
je 0x18004557f
test ecx, ecx
je 0x180045590
cmp dword [rdi], r13d
je 0x180045590
test ecx, ecx
jne 0x1800455a7
mov dword [rdi], r13d
jmp 0x1800455b6
mov rcx, rsi
call fcn.180008b84
mov ebx, reloc.WS2_32.dll_listen
cmp r15d, 4
je 0x180053da5
mov qword [r14], r13
jmp 0x180053da8
mov eax, ecx
shr eax, 1
dec eax
js 0x1800455b9
cdqe
mov word [rdi + rax*2], r13w
mov ecx, dword [rbp + 0x38]
test sil, 1
je 0x180053d94
add ecx, ecx
call fcn.180008d40
mov rsi, rax
test rax, rax
jne 0x1800455d7
lea ebx, [rax + 0xe]
jmp 0x180045595
mov edx, dword [rbp + 0x38]
mov r8, rax
mov rcx, rdi
lea r9d, [rdx + rdx]
shr edx, 1
call fcn.1800771d4
test eax, eax
je 0x180045588
mov rcx, r12
call fcn.180008b84
mov rdi, rsi
mov ecx, dword [rbp + 0x38]
jmp 0x180053d94
cmp r15d, 4
je 0x180053d9d
mov qword [r14], rdi
mov rax, qword [rbp + 0x58]
mov dword [rax], ecx
jmp 0x180053db7
mov dword [r14], r13d
mov rax, qword [rbp + 0x58]
mov rcx, r12
mov dword [rax], r13d
call fcn.180008b84
mov eax, ebx
jmp 0x18001a244
mov eax, 0x57
jmp 0x18001a244
Function at 0x18001a684
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x18008a480]
and qword [rbp + 0x18], 0
movabs rbx, 0x2b992ddfa232
cmp rax, rbx
je 0x18003e6c2
mov rbx, qword [rsp + 0x48]
not rax
mov qword [0x18008a128], rax
add rsp, 0x20
pop rbp
ret
lea rcx, [rbp + 0x18]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_2_1.dll_GetSystemTimeAsFileTime]
mov rax, qword [rbp + 0x18]
mov qword [rbp + 0x10], rax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_GetCurrentProcessId]
mov eax, eax
xor qword [rbp + 0x10], rax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_GetCurrentThreadId]
mov eax, eax
xor qword [rbp + 0x10], rax
call qword [sym.imp.api_ms_win_core_sysinfo_l1_2_1.dll_GetTickCount]
mov eax, eax
shl rax, 0x18
xor qword [rbp + 0x10], rax
call qword [sym.imp.api_ms_win_core_sysinfo_l1_2_1.dll_GetTickCount]
lea rcx, [rbp + 0x10]
mov eax, eax
xor rax, qword [rbp + 0x10]
xor rax, rcx
lea rcx, [rbp + 0x20]
mov qword [rbp + 0x10], rax
call qword [sym.imp.api_ms_win_core_profile_l1_1_0.dll_QueryPerformanceCounter]
mov eax, dword [rbp + 0x20]
shl rax, 0x20
movabs rcx, 0xffffffffffff
xor rax, qword [rbp + 0x20]
xor rax, qword [rbp + 0x10]
and rax, rcx
movabs rcx, 0x2b992ddfa233
cmp rax, rbx
cmove rax, rcx
mov qword [0x18008a480], rax
jmp 0x18001a6b0
Function at 0x180024394
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x30
xor ebx, ebx
xor ebp, ebp
mov edi, r9d
mov r14d, r8d
mov esi, edx
mov r15, rcx
test r9d, r9d
jne 0x180034e65
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret
mov rcx, qword [0x18008a130]
lea r13, [0x18008a130]
cmp rcx, r13
je 0x180034e85
test dword [rcx + 0x1c], 0x400
jne 0x18005522b
cmp esi, 2
je 0x180055246
cmp esi, 0x17
jne 0x1800552f6
mov esi, 0x29
mov dword [rsp + 0x78], edi
lea r9, [rsp + 0x78]
mov r8d, 0x1f
mov edx, esi
mov rcx, r15
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x180055259
test r14d, r14d
je 0x1800243c2
mov ecx, edi
call qword [sym.imp.WS2_32.dll_htonl]
xor edx, edx
lea r9, [rsp + 0x78]
lea r8d, [rdx + 0x1f]
mov rcx, r15
mov dword [rsp + 0x20], 4
mov dword [rsp + 0x78], eax
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1800552a0
test ebx, ebx
je 0x1800243c2
jmp 0x18003df54
jmp 0x1800552e7
mov rcx, qword [rcx + 0x10]
lea r8, [0x180082740]
mov edx, send
call fcn.180058fb0
nop
jmp 0x180034e85
mov ecx, edi
xor esi, esi
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rsp + 0x78], eax
jmp 0x180034ea0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
mov rcx, qword [0x18008a130]
cmp rcx, r13
je 0x180034ec7
test dword [rcx + 0x1c], 0x400
je 0x180034ec7
mov rcx, qword [rcx + 0x10]
lea r8, [0x180082740]
mov edx, send
mov r9d, edi
mov dword [rsp + 0x20], eax
call fcn.18005b9d0
nop
jmp 0x180034ec7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
mov rcx, qword [0x18008a130]
cmp rcx, r13
je 0x180034f01
test dword [rcx + 0x1c], 0x400
je 0x180034f01
mov rcx, qword [rcx + 0x10]
lea r8, [0x180082740]
mov edx, reloc.WS2_32.dll_select
mov r9d, edi
mov dword [rsp + 0x20], ebx
call fcn.18005b9d0
nop
jmp 0x180034f01
test ebp, ebp
jne 0x1800243c2
xor ebx, ebx
jmp 0x1800243c2
mov ebx, 0x57
jmp 0x1800243c2