joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001570
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x140015c60], rbx
je 0x1400015d7
cmp rax, rbx
jne 0x1400015ca
mov edi, 1
mov esi, edi
jmp 0x1400015dc
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x1400015af
mov edi, 1
mov eax, dword [0x140015c68]
cmp eax, edi
jne 0x1400015f4
mov ebx, 0x1f
mov ecx, ebx
call sub.msvcrt.dll__amsg_exit
jmp 0x14000166a
mov eax, dword [0x140015c68]
test eax, eax
jne 0x14000165f
mov dword [0x140015c68], edi
lea r15, [0x140010c08]
lea rbx, [0x140010bf0]
mov qword [rsp + 0x30], rbx
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rbx, r15
jae 0x140001651
test eax, eax
jne 0x140001655
cmp qword [rbx], r14
je 0x140001646
movabs r10, 0xd30527475e523070
mov rax, qword [rbx]
mov rcx, qword [0x140010b98]
call rcx
mov dword [rsp + 0x24], eax
add rbx, 8
mov qword [rsp + 0x30], rbx
jmp 0x14000161e
test eax, eax
je 0x140001665
mov eax, 0xff
jmp 0x1400017cb
mov dword [0x1400153e4], edi
mov ebx, 0x1f
mov eax, dword [0x140015c68]
cmp eax, edi
jne 0x140001691
lea rdx, [0x140010be8]
lea rcx, [0x140010bb0]
call sub.msvcrt.dll__initterm
mov dword [0x140015c68], 2
test esi, esi
jne 0x14000169f
mov rax, r14
xchg qword [0x140015c60], rax
cmp qword [0x140015c80], r14
je 0x1400016dc
lea rcx, [0x140015c80]
call fcn.140001c80
test eax, eax
je 0x1400016dc
movabs r10, 0x99012e4578d92870
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140015c80]
mov r9, qword [0x140010b98]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x1400016f5
mov eax, 0xff
jmp 0x1400017cb
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x14000177c
test ax, ax
je 0x140001710
test edx, edx
jne 0x14000177c
sub ax, di
cmp ax, bx
ja 0x140001726
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x140001710
test byte [rsp + 0x7c], dil
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.14000702c
mov dword [0x1400153e0], eax
cmp dword [0x140015400], r14d
jne 0x140001765
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1400153e4], r14d
jne 0x14000177a
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1400153e0]
jmp 0x1400017cb
cmp ax, 0x22
jne 0x140001790
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1400016fe
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.1400a8000
add rsp, 0x28
jmp 0x140001570
Function at 0x140001b6c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140001bb8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140001bb0
cmp dword [rcx + 0x3c], edx
jl 0x140001bb0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140001bb0
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140001bb8
mov rax, rdx
add rsp, 0x18
ret

Function at 0x140001ce0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140001d08
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140001d08
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14000439c
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 0x140004486
lea esi, [rbx + 1]
cmp dword [rsp + 0x80], esi
jne 0x140004478
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 0x140004486
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 0x140004463
cmp word [rdi], bx
jne 0x140004465
mov esi, ebx
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
mov eax, esi
jmp 0x140004488
cmp dword [rsp + 0x80], ebx
seta bl
mov eax, ebx
jmp 0x140004488
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400051a8
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x1400153a0]
xor rax, rsp
mov qword [rbp + 0x170], 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
mov rcx, qword [rsp + 0x48]
test eax, eax
jne 0x140005238
test rcx, rcx
je 0x14000522e
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
je 0x14000525b
jmp 0x1400052c9
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.1400051a8
mov ebx, eax
test eax, eax
jne 0x1400052c4
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, [rsp + 0x70]
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 0x140005241
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400052b7
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.140004288
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400052da
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 + 0x170]
xor rcx, rsp
call fcn.140001830
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400069e8
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 0x140006a15
mov rax, rcx
jmp 0x140006ab6
movzx eax, word [rcx]
jmp 0x140006aab
mov rbx, rdi
mov rsi, r14
test ax, ax
je 0x140006a90
cmp word [rsi], 0
je 0x140006ad2
movzx ecx, word [rbx]
movzx eax, word [rsi]
cmp ecx, eax
jne 0x140006a90
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 0x140006a90
jmp 0x140006a85
add rbx, 2
add rsi, 2
movzx ecx, word [rsi]
movzx eax, word [rbx]
cmp eax, ecx
je 0x140006a8a
cmp rbx, rbp
jb 0x140006a73
cmp word [rbx], 0
jne 0x140006a28
cmp word [rsi], 0
je 0x140006ad2
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 0x140006a1d
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 0x140006ab6

Function at 0x140006e38
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 [0x1400153a0]
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 0x140006f5d
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 0x140006f5d
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 0x140006f5d
add rdi, qword [rbp + 0x20]
test dword [rbp + 0x28], 0x1000
je 0x140006ed6
test dword [rbp + 0x2c], 0x100
mov rax, qword [rbp + 8]
je 0x140006f15
mov eax, 1
jmp 0x140006f5f
cmp rbx, rax
jb 0x140006f5d
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 0x140006f5f
xor eax, eax
mov rcx, qword [rbp + 0x68]
xor rcx, rbp
call fcn.140001830
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 0x140007470
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
and dword [rsp + 0x40], 0
mov rbx, rcx
lea rcx, [0x140015b38]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop dword [rax + rax]
cmp rbx, qword [0x140015c28]
jne 0x1400074e7
cmp byte [0x140015c20], 0
jne 0x1400074e7
lea rax, [rsp + 0x40]
mov byte [0x140015c20], 1
mov qword [rsp + 0x28], rax
lea r8, [fcn.140007140]
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 0x1400074e7
mov rcx, rbx
call fcn.140007140
lea rcx, [0x140015b38]
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 0x140009e04
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
sub ecx, 1
je 0x140009e84
sub ecx, 1
je 0x140009e84
cmp ecx, 5
jne 0x140009ea2
test byte [rdi], 1
jne 0x140009ea2
mov eax, dword [rdi]
and eax, 0xfffffffe
cmp eax, 4
jb 0x140009ea2
test rbx, rbx
je 0x140009e80
mov eax, dword [rdi]
shr rax, 1
cmp word [rbx + rax*2 - 2], si
jne 0x140009ea2
cmp word [rbx + rax*2 - 4], si
jne 0x140009ea2
mov eax, edx
jmp 0x140009ea7
test byte [rdi], 1
jne 0x140009ea2
test rbx, rbx
je 0x140009e80
mov ecx, dword [rdi]
mov eax, 0xd
shr rcx, 1
cmp word [rbx + rcx*2 - 2], si
cmove eax, edx
jmp 0x140009ea7
mov eax, 0xd
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14000c1ec
Capabilities:
Create raw socket
Create udp socket
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 [0x1400153a0]
xor rax, rsp
mov qword [rsp + 0x38], rax
or rsi, 0xffffffffffffffff
mov r12, rdx
xor r13d, r13d
lea ecx, [rsi + 3]
lea r15d, [rsi + 2]
mov qword [r11 - 0x40], rcx
mov edx, r15d
lea r8d, [rsi + 7]
call qword [sym.imp.WS2_32.dll_socket]
nop dword [rax + rax]
lea r14d, [rsi + 0x11]
mov rdi, rax
cmp rax, rsi
je 0x14000c27c
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, esi
je 0x14000c26d
mov rsi, rdi
jmp 0x14000c28a
mov rcx, rdi
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 0x14000c2e3
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], r14d
lea rdx, [rsp + 0x28]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_getsockname]
nop dword [rax + rax]
cmp eax, 0xffffffff
movzx ebp, r13w
mov ebx, eax
cmovne bp, word [rsp + 0x2a]
test eax, eax
jne 0x14000c2d2
mov rcx, r14
call fcn.140001148
mov rdi, rax
test rax, rax
jne 0x14000c31c
lea ebx, [rax + 0xe]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
nop dword [rax + rax]
test ebx, ebx
jle 0x14000c2ee
movzx ebx, bx
or ebx, 0x80070000
mov eax, ebx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140001830
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], rsi
mov word [rax + 8], bp
movsxd rax, dword [0x140015b68]
mov ecx, dword [0x140015b6c]
lea r14d, [rax + 1]
test r14d, r14d
jle 0x14000c3aa
cmp eax, ecx
jne 0x14000c38d
cmp eax, 0x3fffffff
jg 0x14000c3aa
movabs rdx, 0xfffffffffffffff
mov rsi, rax
cmp rax, rdx
ja 0x14000c3aa
test ecx, ecx
je 0x14000c35e
lea r15d, [rax + rax]
mov rcx, qword [0x140015b60]
movsxd rdx, r15d
shl rdx, 3
call qword [sym.imp.msvcrt.dll_realloc]
nop dword [rax + rax]
test rax, rax
je 0x14000c3aa
mov dword [0x140015b6c], r15d
mov qword [0x140015b60], rax
jmp 0x14000c397
mov rsi, rax
mov rax, qword [0x140015b60]
lea rcx, [rax + rsi*8]
mov dword [0x140015b68], r14d
test rcx, rcx
je 0x14000c3aa
mov qword [rcx], rdi
mov word [r12], bp
jmp 0x14000c2ee
Function at 0x14000ccf0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], 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 0x14000cd1d
shr edi, 1
xor esi, esi
mov edx, 4
lea rcx, [rsp + 0x70]
call qword [sym.imp.CRYPTBASE.dll_SystemFunction036]
nop dword [rax + rax]
cmp al, 1
jne 0x14000cd60
mov eax, edi
and eax, dword [rsp + 0x70]
mov dword [rsp + 0x70], eax
cmp eax, 0x3ff
jbe 0x14000cd5e
add ebp, 0xffffffff
je 0x14000cd60
jmp 0x14000cd2c
mov esi, eax
test r14d, r14d
je 0x14000cd87
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14000cdaa
mov rax, qword [rcx]
movabs r10, 0xcb809fcf18d9c970
mov rax, qword [rax + 0x18]
call qword [0x140010b98]
jmp 0x14000cdaa
mov rcx, qword [rbx]
lea edi, [rsi + 0x400]
mov r8d, edi
mov qword [rsp + 0x30], 1
mov qword [rsp + 0x28], rbx
call fcn.14000ee54
test eax, eax
je 0x14000cdb4
mov rcx, rbx
call fcn.14000d048
jmp 0x14000cdea
lock inc dword [rbx + 0x64]
mov rcx, qword [rbx + 0x10]
mov r8d, edi
mov qword [rsp + 0x30], 2
mov qword [rsp + 0x28], rbx
call fcn.14000ee54
test eax, eax
je 0x14000cdea
mov rcx, rbx
call fcn.14000d048
test eax, eax
je 0x14000cdea
mov rcx, rbx
call fcn.14000dd6c
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x14000da84
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 0x14000dc2c
test r8d, r8d
je 0x14000dc2c
mov r15, qword [r9 + 0x28]
lea rax, [rcx + 0x10]
cmp r15, 1
mov rsi, rcx
mov r14, rcx
cmovne rsi, rax
cmove r14, rax
xor ebp, ebp
cmp r15, 1
sete bpl
inc rbp
cmp r15, 1
jne 0x14000dae5
cmp dword [rcx + 0x38], 2
je 0x14000daf1
jmp 0x14000db2c
cmp r15, 2
jne 0x14000db2c
cmp dword [rcx + 0x38], 1
jne 0x14000db2c
mov eax, dword [rsi + 8]
cmp dword [r9 + 0x68], r8d
jne 0x14000db03
mov dword [rsi + 8], 2
jmp 0x14000db2c
mov dword [rsi + 8], 1
cmp eax, 2
je 0x14000db2c
lea rdx, [r9 + 0x78]
mov r9d, dword [r9 + 0x68]
lea r8, [rsp + 0x80]
call fcn.14000d7b4
mov r8d, dword [rsp + 0x80]
test r8d, r8d
je 0x14000db85
cmp qword [r14], 0xffffffffffffffff
je 0x14000db85
lock inc dword [rbx + 0x64]
mov r8d, dword [rsp + 0x80]
mov rdx, rdi
mov rcx, qword [r14]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbx
call fcn.14000ef64
test eax, eax
je 0x14000db8d
mov rcx, rbx
call fcn.14000d048
mov rcx, rbx
call fcn.14000d048
test eax, eax
je 0x14000db78
mov rcx, rbx
call fcn.14000dd6c
mov rcx, rdi
call fcn.14000ccb4
jmp 0x14000dc1a
mov rcx, rdi
call fcn.14000ccb4
cmp qword [rsi], 0xffffffffffffffff
je 0x14000dc06
and dword [rsp + 0x78], 0
mov r14d, 0xff
xor edi, edi
mov eax, 0x3ff
shr eax, 1
lea edi, [rdi*2 + 2]
jne 0x14000dba5
shr edi, 1
xor ebp, ebp
mov edx, 4
lea rcx, [rsp + 0x78]
call qword [sym.imp.CRYPTBASE.dll_SystemFunction036]
nop dword [rax + rax]
cmp al, 1
jne 0x14000dbe9
mov eax, edi
and eax, dword [rsp + 0x78]
mov dword [rsp + 0x78], eax
cmp eax, 0x3ff
jbe 0x14000dbe7
add r14d, 0xffffffff
je 0x14000dbe9
jmp 0x14000dbb4
mov ebp, eax
mov rcx, qword [rsi]
lea r8d, [rbp + 0x400]
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], rbx
call fcn.14000ee54
test eax, eax
je 0x14000dc1a
mov rcx, rbx
call fcn.14000d048
test eax, eax
je 0x14000dc1a
mov rcx, rbx
call fcn.14000dd6c
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov rcx, rdi
call fcn.14000ccb4
jmp 0x14000dc06
Function at 0x14000dd6c
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 0x14000dde8
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 0x14000ddc3
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 0x14000dde3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
nop dword [rax + rax]
or qword [rbx + 0x10], 0xffffffffffffffff
cmp qword [rbx], 0xffffffffffffffff
je 0x14000de50
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 0x14000de2d
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 0x14000de4c
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 0x14000e068
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 r14, r9
mov dword [rax + 0x10], r12d
mov rsi, rcx
mov word [rax + 0x18], r12w
cmp edx, 0xc0000120
je 0x14000e234
cmp dword [rcx + 0x2c], r12d
jne 0x14000e234
mov rdi, qword [r9 + 0x10]
or rbp, 0xffffffffffffffff
test edx, edx
je 0x14000e0fe
add edx, 0xffffd8ca
cmp edx, 0x3f
ja 0x14000e217
movabs rcx, 0x8000000000519001
bt rcx, rdx
jae 0x14000e217
or rbp, rbp
cmp rdi, rbp
je 0x14000e0f1
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
nop dword [rax + rax]
mov rcx, rsi
call fcn.14000e578
jmp 0x14000e251
lea rdx, [r9 + 0x78]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x78]
call fcn.14000e2dc
test eax, eax
js 0x14000e200
cmp dword [rsp + 0x78], r12d
je 0x14000e200
lea r9, [rsi + 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.140001148
mov r15, rax
test rax, rax
je 0x14000e200
lea rcx, [rax + 0x68]
mov qword [rax], rbp
mov dword [rax + 8], 1
mov qword [rax + 0x10], rbp
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 eax, dword [rsp + 0x30]
mov rdx, rdi
mov dword [r15 + 0x98], r12d
mov rcx, r15
mov qword [r15], rbp
mov qword [r15 + 0x10], rbp
mov dword [r15 + 0x3c], r12d
mov word [r15 + 0x44], r12w
mov word [r15 + 0x20], r12w
mov dword [r15 + 0x64], r12d
mov qword [r15 + 0x30], r12
movzx r9d, word [rsp + 0x80]
mov r8d, dword [rsp + 0x78]
mov dword [rsp + 0x20], eax
call fcn.14000d284
test eax, eax
js 0x14000e214
xor r8d, r8d
lea rcx, [0x140015b70]
mov rdx, r15
call fcn.14000ded0
test eax, eax
je 0x14000e214
inc dword [0x140015ba0]
jmp 0x14000e214
cmp rdi, rbp
je 0x14000e214
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
nop dword [rax + rax]
mov rdi, rbp
mov rcx, qword [rsi + 0x10]
mov r8, r14
mov rdx, rdi
mov qword [rsp + 0x20], rsi
call fcn.14000e85c
test eax, eax
je 0x14000e259
jmp 0x14000e0dd
mov rcx, qword [rcx + 0x20]
test rcx, rcx
je 0x14000e249
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
nop dword [rax + rax]
mov rcx, rsi
call fcn.14000e27c
mov rcx, r14
call fcn.14000ccb4
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