joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6d8b2880
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d8d35e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d8b2a08
mov rax, qword [0x6d8d35e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d8b28cc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d8b2955
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d8b28b0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d8b2a3d
mov rax, qword [0x6d8d35e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6d8d35e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d8b2a20
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d8b294e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d8b29b0
add dword [0x6d8d35e4], 1
cmp edi, 8
jae 0x6d8b2983
test dil, 4
jne 0x6d8b29f4
test edi, edi
je 0x6d8b2978
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d8b2a0f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6d8b2978
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6d8b299c
jmp 0x6d8b2978
add rsi, qword [0x6d8d35e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6d8b294e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6d8b2978
xor esi, esi
jmp 0x6d8b28d7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d8b2978
mov rax, qword [0x6d8d35e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6d8b3190
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d8d38c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d8d38a0]
test rbx, rbx
je 0x6d8b31e4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6d8b31db
test rsi, rsi
je 0x6d8b31db
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d8b31c0
lea rcx, [0x6d8d38c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d8b3420
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6d8b3430
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6d8b3440
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6d8b3481
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6d8b3478
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d8b3483
add rax, 0x28
cmp rax, r9
jne 0x6d8b3464
xor eax, eax
ret

Function at 0x6d8b3520
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8d01f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d8b358d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8b358d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d8b358d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d8b3584
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d8b358f
add rax, 0x28
cmp rax, r9
jne 0x6d8b3570
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d8b3690
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8d01f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d8b36b0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8b36a8
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d8b370d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d8b3704
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d8b3714
add rax, 0x28
cmp rax, r9
jne 0x6d8b36f0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d8b3730
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d8d01f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d8b379e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8b379e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d8b379e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d8b379e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6d8b3795
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d8b37a5
add rcx, 0x28
cmp rcx, rax
jne 0x6d8b3780
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d8b37b8
jmp 0x6d8b379e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d8b37c6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d8b379e
test r9d, r9d
jg 0x6d8b37b0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d8b3b30
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x14000631c
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 [0x140010960], rbx
je 0x140006383
cmp rax, rbx
jne 0x140006376
mov ebx, 1
mov esi, ebx
jmp 0x140006388
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14000635b
mov ebx, 1
mov eax, dword [0x140010968]
cmp eax, ebx
jne 0x1400063a0
mov edi, 0x1f
mov ecx, edi
call fcn.140159000
jmp 0x14000640c
mov eax, dword [0x140010968]
test eax, eax
jne 0x140006401
mov dword [0x140010968], ebx
lea r15, [0x1400089c8]
lea rdi, [0x1400089b0]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x1400063f3
test eax, eax
jne 0x1400063f7
cmp qword [rdi], r14
je 0x1400063e8
mov rax, qword [rdi]
mov rcx, qword [0x140008930]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x1400063ca
test eax, eax
je 0x140006407
mov eax, 0xff
jmp 0x140006562
mov dword [0x14000e3e4], ebx
mov edi, 0x1f
mov eax, dword [0x140010968]
cmp eax, ebx
jne 0x140006433
lea rdx, [0x1400089a8]
lea rcx, [0x140008938]
call sub.msvcrt.dll__initterm
mov dword [0x140010968], 2
test esi, esi
jne 0x140006441
mov rax, r14
xchg qword [0x140010960], rax
cmp qword [0x140010970], r14
je 0x140006474
lea rcx, [0x140010970]
call fcn.140006730
test eax, eax
je 0x140006474
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140010970]
mov r9, qword [0x140008930]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14000648d
mov eax, 0xff
jmp 0x140006562
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x140006513
test ax, ax
je 0x1400064a8
test edx, edx
jne 0x140006513
sub ax, bx
cmp ax, di
ja 0x1400064be
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x1400064a8
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140001394
mov dword [0x14000e3e0], eax
cmp dword [0x14000e400], r14d
jne 0x1400064fc
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14000e3e4], r14d
jne 0x140006511
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14000e3e0]
jmp 0x140006562
cmp ax, 0x22
jne 0x140006527
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 0x140006496
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.1400067b0
add rsp, 0x28
jmp 0x14000631c
Function at 0x140003b00
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 0x140003b2d
mov rax, rcx
jmp 0x140003bce
movzx eax, word [rcx]
jmp 0x140003bc3
mov rbx, rdi
mov rsi, r14
test ax, ax
je 0x140003ba8
cmp word [rsi], 0
je 0x140003be9
movzx ecx, word [rbx]
movzx eax, word [rsi]
cmp ecx, eax
jne 0x140003ba8
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 0x140003ba8
jmp 0x140003b9d
add rbx, 2
add rsi, 2
movzx ecx, word [rsi]
movzx eax, word [rbx]
cmp eax, ecx
je 0x140003ba2
cmp rbx, rbp
jb 0x140003b8b
cmp word [rbx], 0
jne 0x140003b40
cmp word [rsi], 0
je 0x140003be9
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 0x140003b35
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 0x140003bce
Function at 0x1400041a8
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 0x1400042cd
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 0x1400042cd
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 0x1400042cd
add rdi, qword [rbp + 0x20]
test dword [rbp + 0x28], 0x1000
je 0x140004246
test dword [rbp + 0x2c], 0x100
je 0x140004281
mov eax, 1
jmp 0x1400042cf
mov rax, qword [rbp + 8]
cmp rbx, rax
jb 0x1400042cd
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 0x1400042cf
xor eax, eax
mov rcx, qword [rbp + 0x68]
xor rcx, rbp
call fcn.14000d8a0
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 0x14000437c
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 0x140004466
lea esi, [rbx + 1]
cmp dword [rsp + 0x80], esi
jne 0x140004458
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 0x140004466
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 0x140004443
cmp word [rdi], bx
jne 0x140004445
mov esi, ebx
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
mov eax, esi
jmp 0x140004468
cmp dword [rsp + 0x80], ebx
seta bl
mov eax, ebx
jmp 0x140004468
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x140004480
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 0x1400045a9
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140004514
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 0x1400045a9
jmp 0x140004541
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x48]
call fcn.140004480
mov ebx, eax
test eax, eax
jne 0x1400045a9
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 0x140004528
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14000459c
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.14000461c
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400045bf
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.14000d8a0
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x290
pop rdi
pop rsi
pop rbp
ret
Function at 0x140005a90
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 0x140005b07
cmp byte [0x140016c20], 0
jne 0x140005b07
lea rax, [rsp + 0x40]
mov byte [0x140016c20], 1
mov qword [rsp + 0x28], rax
lea r8, [fcn.140005990]
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 0x140005b07
mov rcx, rbx
call fcn.140005990
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 0x140008284
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 0x14000837c
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 0x14000837a
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.1400080b0
test al, al
je 0x140008373
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.140007cb4
mov rbx, qword [rsp + 0x50]
jmp 0x14000830d
xor edi, edi
test rbx, rbx
je 0x140008390
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.14000d8a0
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 0x1400089c8
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 0x140008a5d
cmp ecx, 2
jbe 0x140008a43
cmp ecx, 7
jne 0x140008a5d
test byte [rdi], 1
jne 0x140008a5d
mov eax, dword [rdi]
and eax, 0xfffffffe
cmp eax, 4
jb 0x140008a5d
test rbx, rbx
je 0x140008a59
mov eax, dword [rdi]
shr rax, 1
cmp word [rbx + rax*2 - 2], si
jne 0x140008a5d
cmp word [rbx + rax*2 - 4], si
jmp 0x140008a57
test byte [rdi], 1
jne 0x140008a5d
test rbx, rbx
je 0x140008a59
mov eax, dword [rdi]
shr rax, 1
cmp word [rbx + rax*2 - 2], si
jne 0x140008a5d
mov eax, edx
jmp 0x140008a62
mov eax, 0xd
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14000a3b0
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 0x14000a441
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 0x14000a432
mov rdi, rsi
jmp 0x14000a44f
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 0x14000a4a6
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 0x14000a497
mov rcx, r14
call fcn.14000d1c8
mov rsi, rax
test rax, rax
jne 0x14000a4de
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.14000d8a0
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 0x14000a571
cmp edi, ecx
jne 0x14000a557
cmp edi, 0x3fffffff
jg 0x14000a571
movabs rdx, 0xfffffffffffffff
cmp rdi, rdx
ja 0x14000a571
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 0x14000a571
mov dword [0x140016b6c], r14d
mov qword [0x140016b60], rax
jmp 0x14000a55e
mov rcx, qword [0x140016b60]
lea rdx, [rcx + rdi*8]
mov dword [0x140016b68], r15d
test rdx, rdx
je 0x14000a571
mov qword [rdx], rsi
mov word [r12], bp
jmp 0x14000a4a6