joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140156840
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x140156882
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1401568c9
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x140156922
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x1401568e0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x140156963
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x14016e74a]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14016e74b]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140156930
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x140003d1c
Capabilities:
Encrypt data using rc4 prga

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 r14
sub rsp, 0x20
cmp word [rdx], 0
mov r14, rdx
mov rdi, rcx
jne 0x140003d49
mov rax, rcx
jmp 0x140003dea
movzx eax, word [rcx]
jmp 0x140003ddf
mov rbx, rdi
mov rsi, r14
test ax, ax
je 0x140003dc4
cmp word [rsi], 0
je 0x140003e06
movzx ecx, word [rbx]
movzx eax, word [rsi]
cmp ecx, eax
jne 0x140003dc4
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharNextW]
nop dword [rax + rax]
mov rcx, rsi
mov rbp, rax
call qword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharNextW]
nop dword [rax + rax]
sub rax, rsi
mov rcx, rbp
sub rcx, rbx
xor rax, rcx
test rax, 0xfffffffffffffffe
jne 0x140003dc4
jmp 0x140003db9
add rbx, 2
add rsi, 2
movzx ecx, word [rsi]
movzx eax, word [rbx]
cmp eax, ecx
je 0x140003dbe
cmp rbx, rbp
jb 0x140003da7
cmp word [rbx], 0
jne 0x140003d5c
cmp word [rsi], 0
je 0x140003e06
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharNextW]
nop dword [rax + rax]
mov rdi, rax
movzx eax, word [rax]
test ax, ax
jne 0x140003d51
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rax, rdi
jmp 0x140003dea
Function at 0x1400043c8
Capabilities:
Get system information on windows

Disassembly:
push rbp
sub rsp, 0x90
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x80], rbx
mov qword [rbp + 0x88], rsi
mov qword [rbp + 0x90], rdi
mov qword [rbp + 0x98], r14
mov rax, qword [0x1400163a0]
xor rax, rbp
mov qword [rbp + 0x68], rax
mov eax, dword [rsp]
sub rsp, 0x10
lea rsi, [rsp + 0x20]
mov eax, dword [rsi]
mov r8d, 0x30
lea rdx, [rbp + 8]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualQuery]
nop dword [rax + rax]
test rax, rax
je 0x1400044ed
mov rdi, qword [rbp + 0x10]
lea rcx, [rbp + 0x38]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemInfo]
nop dword [rax + rax]
mov eax, dword [rbp + 0x3c]
mov r14d, eax
lea ebx, [rax - 1]
not rbx
and rbx, rsi
lea rsi, [rdi + 0x2000]
sub rbx, rax
cmp rbx, rsi
jb 0x1400044ed
mov r8d, 0x30
lea rdx, [rbp + 8]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualQuery]
nop dword [rax + rax]
test rax, rax
je 0x1400044ed
add rdi, qword [rbp + 0x20]
test dword [rbp + 0x28], 0x1000
je 0x140004466
test dword [rbp + 0x2c], 0x100
je 0x1400044a1
mov eax, 1
jmp 0x1400044ef
mov rax, qword [rbp + 8]
cmp rbx, rax
jb 0x1400044ed
cmp rax, rsi
mov r9d, 4
mov r8d, 0x1000
mov rdx, r14
cmovae rsi, rax
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualAlloc]
nop dword [rax + rax]
lea r9, [rbp]
mov r8d, 0x104
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualProtect]
nop dword [rax + rax]
jmp 0x1400044ef
xor eax, eax
mov rcx, qword [rbp + 0x68]
xor rcx, rbp
call fcn.14000dbb0
mov rbx, qword [rbp + 0x80]
mov rsi, qword [rbp + 0x88]
mov rdi, qword [rbp + 0x90]
mov r14, qword [rbp + 0x98]
lea rsp, [rbp + 0x70]
pop rbp
ret
Function at 0x14000459c
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x60
xor ebx, ebx
lea rax, [r11 + 8]
mov qword [r11 - 0x20], rbx
mov rbp, rdx
mov qword [r11 - 0x28], rbx
xor r9d, r9d
mov qword [r11 - 0x30], rbx
xor r8d, r8d
mov qword [r11 - 0x38], rbx
xor edx, edx
mov qword [r11 - 0x40], rax
mov rcx, rbp
mov qword [r11 - 0x48], rbx
mov qword [r11 - 0x50], rbx
mov qword [r11 - 0x58], rbx
mov dword [r11 + 8], ebx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryInfoKeyW]
nop dword [rax + rax]
test eax, eax
jne 0x140004686
lea esi, [rbx + 1]
cmp dword [rsp + 0x80], esi
jne 0x140004678
mov ecx, 0x2000
mov dword [rsp + 0x90], 0x1000
call qword [sym.imp.msvcrt.dll_malloc]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x140004686
mov qword [rsp + 0x38], rbx
lea r9, [rsp + 0x90]
mov qword [rsp + 0x30], rbx
mov r8, rax
mov qword [rsp + 0x28], rbx
xor edx, edx
mov rcx, rbp
mov qword [rsp + 0x20], rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumValueW]
nop dword [rax + rax]
test eax, eax
jne 0x140004663
cmp word [rdi], bx
jne 0x140004665
mov esi, ebx
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
mov eax, esi
jmp 0x140004688
cmp dword [rsp + 0x80], ebx
seta bl
mov eax, ebx
jmp 0x140004688
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400046a0
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
lea rbp, [rax - 0x1a8]
sub rsp, 0x290
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1400163a0]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rsi, rdx
mov rdi, rcx
and qword [rsp + 0x48], 0
and qword [rsp + 0x50], 0
and qword [rsp + 0x58], 0
and qword [rsp + 0x60], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rcx, qword [rcx]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x1400047c9
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140004734
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x48], rcx
test ebx, ebx
jne 0x1400047c9
jmp 0x140004761
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x48]
call fcn.1400046a0
mov ebx, eax
test eax, eax
jne 0x1400047c9
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov dword [rsp + 0x40], 0x100
lea r9, [rsp + 0x40]
lea r8, [rbp - 0x80]
xor edx, edx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x140004748
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400047bc
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
and qword [rsp + 0x48], 0
mov rdx, rsi
mov rcx, rdi
call fcn.14000483c
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400047df
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.14000dbb0
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x290
pop rdi
pop rsi
pop rbp
ret
Function at 0x140005cc0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
and dword [rsp + 0x40], 0
mov rbx, rcx
lea rcx, [0x140016b38]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop dword [rax + rax]
cmp rbx, qword [0x140016c28]
jne 0x140005d37
cmp byte [0x140016c20], 0
jne 0x140005d37
lea rax, [rsp + 0x40]
mov byte [0x140016c20], 1
mov qword [rsp + 0x28], rax
lea r8, [fcn.140005bc0]
and dword [rsp + 0x20], 0
mov r9, rbx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
nop dword [rax + rax]
mov qword [rbx + 0x88], rax
test rax, rax
jne 0x140005d37
mov rcx, rbx
call fcn.140005bc0
lea rcx, [0x140016b38]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
nop dword [rax + rax]
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x140008568
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x188]
sub rsp, 0x280
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400163a0]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rsi, rcx
xor ebx, ebx
and qword [rsp + 0x58], rbx
and qword [rsp + 0x60], rbx
and qword [rsp + 0x48], rbx
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftALGISV
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jne 0x140008660
mov rbx, qword [rsp + 0x48]
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x40], 0x100
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
mov edx, edi
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
nop dword [rax + rax]
inc edi
test eax, eax
jne 0x14000865e
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.140008390
test al, al
je 0x140008657
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.140007f94
mov rbx, qword [rsp + 0x50]
jmp 0x1400085f1
xor edi, edi
test rbx, rbx
je 0x140008674
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, edi
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.14000dbb0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140008cb0
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x30
mov rcx, qword [rcx]
mov rax, r8
mov qword [r11 - 0x10], r9
mov rdi, r9
mov qword [r11 - 0x18], rdx
lea r9, [r11 + 8]
mov rbx, rdx
xor esi, esi
mov rdx, rax
mov dword [rsp + 0x40], esi
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ecx, dword [rsp + 0x40]
mov edx, eax
test ecx, ecx
je 0x140008d45
cmp ecx, 2
jbe 0x140008d2b
cmp ecx, 7
jne 0x140008d45
test byte [rdi], 1
jne 0x140008d45
mov eax, dword [rdi]
and eax, 0xfffffffe
cmp eax, 4
jb 0x140008d45
test rbx, rbx
je 0x140008d41
mov eax, dword [rdi]
shr rax, 1
cmp word [rbx + rax*2 - 2], si
jne 0x140008d45
cmp word [rbx + rax*2 - 4], si
jmp 0x140008d3f
test byte [rdi], 1
jne 0x140008d45
test rbx, rbx
je 0x140008d41
mov eax, dword [rdi]
shr rax, 1
cmp word [rbx + rax*2 - 2], si
jne 0x140008d45
mov eax, edx
jmp 0x140008d4a
mov eax, 0xd
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14000a6c8
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x1400163a0]
xor rax, rsp
mov qword [rsp + 0x38], rax
or r15, 0xffffffffffffffff
mov r12, rdx
mov rdi, r15
xor r13d, r13d
lea ecx, [r15 + 3]
lea edx, [rcx - 1]
mov qword [r11 - 0x40], rcx
lea r8d, [r15 + 7]
call qword [sym.imp.WS2_32.dll_socket]
nop dword [rax + rax]
lea r14d, [r15 + 0x11]
mov rsi, rax
cmp rax, r15
je 0x14000a759
mov r8d, r14d
lea rdx, [rsp + 0x28]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_bind]
nop dword [rax + rax]
mov ebx, eax
cmp eax, r15d
je 0x14000a74a
mov rdi, rsi
jmp 0x14000a767
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
nop dword [rax + rax]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
nop dword [rax + rax]
mov ebx, eax
test ebx, ebx
jne 0x14000a7be
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], r14d
lea rdx, [rsp + 0x28]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getsockname]
nop dword [rax + rax]
cmp eax, r15d
movzx ebp, r13w
mov ebx, eax
cmovne bp, word [rsp + 0x2a]
test eax, eax
jne 0x14000a7af
mov rcx, r14
call fcn.14000d4d8
mov rsi, rax
test rax, rax
jne 0x14000a7f7
lea ebx, [rax + 0xe]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
nop dword [rax + rax]
movzx eax, bx
or eax, 0x80070000
test ebx, ebx
cmovle eax, ebx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14000dbb0
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov qword [rax], rdi
mov word [rax + 8], bp
movsxd rdi, dword [0x140016b68]
mov ecx, dword [0x140016b6c]
lea r15d, [rdi + 1]
test r15d, r15d
jle 0x14000a88a
cmp edi, ecx
jne 0x14000a870
cmp edi, 0x3fffffff
jg 0x14000a88a
movabs rdx, 0xfffffffffffffff
cmp rdi, rdx
ja 0x14000a88a
test ecx, ecx
lea r14d, [rdi + rdi]
mov rcx, qword [0x140016b60]
mov eax, 1
cmove r14d, eax
movsxd rdx, r14d
shl rdx, 3
call qword [sym.imp.msvcrt.dll_realloc]
nop dword [rax + rax]
mov rcx, rax
test rax, rax
je 0x14000a88a
mov dword [0x140016b6c], r14d
mov qword [0x140016b60], rax
jmp 0x14000a877
mov rcx, qword [0x140016b60]
lea rdx, [rcx + rdi*8]
mov dword [0x140016b68], r15d
test rdx, rdx
je 0x14000a88a
mov qword [rdx], rsi
mov word [r12], bp
jmp 0x14000a7be
Function at 0x14000b560
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rbp
mov dword [rax + 0x18], r8d
push rsi
push rdi
push r14
sub rsp, 0x40
and dword [rax + 0x18], 0
mov r14d, edx
xor edi, edi
mov rbx, rcx
mov ebp, 0xff
mov eax, 0x3ff
shr eax, 1
lea edi, [rdi*2 + 2]
jne 0x14000b58d
shr edi, 1
xor esi, esi
mov dword [rsp + 0x68], esi
mov edx, 4
lea rcx, [rsp + 0x70]
call qword [sym.imp.CRYPTBASE.dll_SystemFunction036]
nop dword [rax + rax]
cmp al, 1
jne 0x14000b5d8
mov eax, dword [rsp + 0x70]
and eax, edi
mov dword [rsp + 0x70], eax
cmp eax, 0x3ff
jbe 0x14000b5d2
add ebp, 0xffffffff
je 0x14000b5d8
jmp 0x14000b5a0
mov esi, eax
mov dword [rsp + 0x68], eax
test r14d, r14d
je 0x14000b5f5
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14000b616
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [0x140010b58]
jmp 0x14000b616
mov rcx, qword [rbx]
lea r8d, [rsi + 0x400]
mov qword [rsp + 0x30], 1
mov qword [rsp + 0x28], rbx
call fcn.14000d2bc
test eax, eax
je 0x14000b620
mov rcx, rbx
call fcn.14000b674
jmp 0x14000b65a
lock inc dword [rbx + 0x64]
mov rcx, qword [rbx + 0x10]
lea r8d, [rsi + 0x400]
mov qword [rsp + 0x30], 2
mov qword [rsp + 0x28], rbx
call fcn.14000d2bc
test eax, eax
je 0x14000b65a
mov rcx, rbx
call fcn.14000b674
test eax, eax
je 0x14000b65a
mov rcx, rbx
call fcn.14000b80c
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret

Function at 0x14000b80c
Capabilities:
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push r12
sub rsp, 0x30
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
cmp rcx, 0xffffffffffffffff
je 0x14000b888
lea r9, [rax + 8]
mov dword [rax + 8], 1
mov edx, 0xffff
mov dword [rax - 0x18], 4
mov r8d, 0x80
call qword [sym.imp.WS2_32.dll_setsockopt]
nop dword [rax + rax]
test eax, eax
je 0x14000b863
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.WS2_32.dll_closesocket]
nop dword [rax + rax]
test eax, eax
je 0x14000b883
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
nop dword [rax + rax]
or qword [rbx + 0x10], 0xffffffffffffffff
cmp qword [rbx], 0xffffffffffffffff
je 0x14000b8f0
mov rcx, qword [rbx]
lea r9, [rsp + 0x40]
mov edx, 0xffff
mov dword [rsp + 0x40], 1
mov r8d, 0x80
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
nop dword [rax + rax]
test eax, eax
je 0x14000b8cd
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
nop dword [rax + rax]
mov rcx, qword [rbx]
call qword [sym.imp.WS2_32.dll_closesocket]
nop dword [rax + rax]
test eax, eax
je 0x14000b8ec
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
nop dword [rax + rax]
or qword [rbx], 0xffffffffffffffff
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop r12
ret
Function at 0x14000b908
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rdi, r9
mov rbx, rcx
test edx, edx
jne 0x14000ba8c
test r8d, r8d
je 0x14000ba8c
mov r15, qword [r9 + 0x28]
lea rsi, [rcx + 0x10]
cmp r15, 1
mov r14, rsi
cmove r14, rcx
cmovne rsi, rcx
xor ebp, ebp
cmp r15, 1
sete bpl
inc rbp
cmp r15, 1
jne 0x14000b964
cmp dword [rcx + 0x38], 2
je 0x14000b970
cmp r15, 2
jne 0x14000b9b2
cmp dword [rcx + 0x38], 1
jne 0x14000b9b2
xor eax, eax
cmp dword [r9 + 0x68], r8d
jne 0x14000b97d
lea ecx, [rax + 2]
jmp 0x14000b98a
cmp dword [r14 + 8], 2
mov ecx, 1
setne al
mov dword [r14 + 8], ecx
test eax, eax
je 0x14000b9b2
lea rdx, [r9 + 0x78]
mov rcx, rbx
mov r9d, dword [r9 + 0x68]
lea r8, [rsp + 0x80]
call fcn.14000bb34
mov r8d, dword [rsp + 0x80]
test r8d, r8d
je 0x14000ba0b
cmp qword [rsi], 0xffffffffffffffff
je 0x14000ba0b
lock inc dword [rbx + 0x64]
mov r8d, dword [rsp + 0x80]
mov rdx, rdi
mov rcx, qword [rsi]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbx
call fcn.14000d3c8
test eax, eax
je 0x14000ba13
mov rcx, rbx
call fcn.14000b674
mov rcx, rbx
call fcn.14000b674
test eax, eax
je 0x14000b9fe
mov rcx, rbx
call fcn.14000b80c
mov rcx, rdi
call fcn.14000b218
jmp 0x14000baa8
mov rcx, rdi
call fcn.14000b218
cmp qword [r14], 0xffffffffffffffff
je 0x14000ba94
and dword [rsp + 0x78], 0
mov ebp, 0xff
xor edi, edi
mov eax, 0x3ff
shr eax, 1
lea edi, [rdi*2 + 2]
jne 0x14000ba2a
shr edi, 1
xor esi, esi
mov edx, 4
lea rcx, [rsp + 0x78]
call qword [sym.imp.CRYPTBASE.dll_SystemFunction036]
nop dword [rax + rax]
cmp al, 1
jne 0x14000ba6d
mov eax, dword [rsp + 0x78]
and eax, edi
mov dword [rsp + 0x78], eax
cmp eax, 0x3ff
jbe 0x14000ba6b
add ebp, 0xffffffff
je 0x14000ba6d
jmp 0x14000ba39
mov esi, eax
mov rcx, qword [r14]
lea r8d, [rsi + 0x400]
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], rbx
call fcn.14000d2bc
test eax, eax
je 0x14000baa8
jmp 0x14000ba94
mov rcx, rdi
call fcn.14000b218
mov rcx, rbx
call fcn.14000b674
test eax, eax
je 0x14000baa8
mov rcx, rbx
call fcn.14000b80c
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000ca2c
Capabilities:
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rbp
mov dword [rax + 0x18], r8d
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
xor r12d, r12d
mov r15, r9
mov dword [rax + 0x10], r12d
mov rbp, rcx
mov word [rax + 0x18], r12w
cmp edx, 0xc0000120
je 0x14000cbfe
cmp dword [rcx + 0x2c], r12d
jne 0x14000cbfe
mov rdi, qword [r9 + 0x10]
or rsi, 0xffffffffffffffff
test edx, edx
je 0x14000cac2
add edx, 0xffffd8ca
cmp edx, 0x3f
ja 0x14000cbe1
movabs rcx, 0x8000000000519001
bt rcx, rdx
jae 0x14000cbe1
or rsi, rsi
cmp rdi, rsi
je 0x14000cab5
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
nop dword [rax + rax]
mov rcx, rbp
call fcn.14000c608
jmp 0x14000cc1b
lea rdx, [r9 + 0x78]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x78]
call fcn.14000c7bc
test eax, eax
js 0x14000cbca
cmp dword [rsp + 0x78], r12d
je 0x14000cbca
lea r9, [rbp + 0x10]
mov dword [rsp + 0x20], 8
mov edx, 0xffff
mov r8d, 0x700b
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
nop dword [rax + rax]
mov ecx, 0xa0
call fcn.14000d4d8
mov r14, rax
test rax, rax
je 0x14000cb7f
lea rcx, [rax + 0x68]
mov qword [rax], rsi
mov dword [rax + 8], 1
mov qword [rax + 0x10], rsi
mov dword [rax + 0x18], 1
mov qword [rax + 0x90], r12
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_InitializeCriticalSection]
nop dword [rax + rax]
mov dword [r14 + 0x98], r12d
mov qword [r14], rsi
mov qword [r14 + 0x10], rsi
mov dword [r14 + 0x3c], r12d
mov word [r14 + 0x44], r12w
mov word [r14 + 0x20], r12w
mov dword [r14 + 0x64], r12d
mov qword [r14 + 0x30], r12
jmp 0x14000cb82
mov r14, r12
test r14, r14
je 0x14000cbca
mov eax, dword [rsp + 0x30]
mov rdx, rdi
movzx r9d, word [rsp + 0x80]
mov rcx, r14
mov r8d, dword [rsp + 0x78]
mov dword [rsp + 0x20], eax
call fcn.14000b33c
test eax, eax
js 0x14000cbde
xor r8d, r8d
lea rcx, [0x140016b70]
mov rdx, r14
call fcn.14000c32c
test eax, eax
je 0x14000cbde
inc dword [0x140016ba0]
jmp 0x14000cbde
cmp rdi, rsi
je 0x14000cbde
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
nop dword [rax + rax]
mov rdi, rsi
mov rcx, qword [rbp + 0x10]
mov r8, r15
mov rdx, rdi
mov qword [rsp + 0x20], rbp
call fcn.14000cca4
test eax, eax
je 0x14000cc23
jmp 0x14000caa1
mov rcx, qword [rcx + 0x20]
test rcx, rcx
je 0x14000cc13
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
nop dword [rax + rax]
mov rcx, rbp
call fcn.14000cc44
mov rcx, r15
call fcn.14000b218
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret