joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007a3e0
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
xor ebx, ebx
mov rsi, r8
mov qword [rbp + 0x40], rbx
mov rdi, rdx
mov qword [rbp + 0x48], rbx
mov r14, rcx
mov qword [r8], rbx
test rdx, rdx
jne 0x14007a41f
lea ecx, [rdx + 6]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
jmp 0x14007a5e4
lea rcx, [rbp - 0x10]
call fcn.140081c44
lea r9, [rbp + 0x48]
mov rdx, rdi
lea r8, [rbp + 0x40]
mov rcx, r14
call fcn.14007a18c
test eax, eax
jne 0x14007a452
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
jmp 0x14007a58a
mov rcx, qword [rbp + 0x40]
lea rax, [rbp + 0x38]
mov qword [rsp + 0x58], rbx
xor r9d, r9d
mov qword [rsp + 0x50], rbx
xor r8d, r8d
mov qword [rsp + 0x48], rax
xor edx, edx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryInfoKeyW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jne 0x14007a57a
mov ecx, dword [rbp + 0x38]
cmp ecx, 0x48
jb 0x14007a57a
call sym.spoolsv.exe_PrvDllAllocSplMem
mov qword [rsi], rax
test rax, rax
jne 0x14007a4cc
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
jmp 0x14007a57a
mov rdx, qword [rbp + 0x48]
lea rcx, [rbp + 0x38]
mov qword [rsp + 0x28], rcx
xor r9d, r9d
mov rcx, qword [rbp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
mov edi, eax
mov r14d, 2
test eax, eax
jne 0x14007a559
mov rcx, qword [rsi]
mov r10d, 0x8007000d
mov r9d, dword [rbp + 0x38]
test rcx, rcx
je 0x14007a531
cmp r9, 0x4c
jb 0x14007a531
movzx r8d, word [rcx + 0x46]
movzx eax, word [rcx + 0x44]
add r8, rax
cmp r9, r8
jb 0x14007a531
call fcn.14004bfc0
mov r10d, eax
mov ecx, r10d
call fcn.140025578
mov edi, eax
test eax, eax
je 0x14007a574
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
nop dword [rax + rax]
test eax, eax
cmove edi, r14d
mov r8, qword [rsi]
xor edx, edx
mov rcx, qword [0x1400c9130]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
mov qword [rsi], rbx
cmp edi, r14d
cmove edi, ebx
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
test edi, edi
je 0x14007a5d4
mov ecx, edi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
cmp edi, 5
je 0x14007a5d9
mov rcx, qword [0x1400c72a8]
lea rax, [0x1400c72a8]
cmp rcx, rax
je 0x14007a5d9
test byte [rcx + 0x44], 0x20
je 0x14007a5d9
mov rcx, qword [rcx + 0x38]
lea r8, [0x1400aab20]
mov edx, 0xf
mov r9d, edi
call fcn.14001c1f8
jmp 0x14007a5d9
mov ebx, 1
lea rcx, [rbp - 0x10]
call fcn.140081c84
mov eax, ebx
add rsp, 0x70
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14007a600
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
and qword [rsp + 0x48], 0
mov rbx, r8
and qword [rsp + 0x58], 0
mov rdi, rdx
test rdx, rdx
jne 0x14007a63e
lea ecx, [rdx + 6]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x48]
call fcn.14007a18c
test eax, eax
je 0x14007a630
mov rdx, qword [rsp + 0x58]
test rbx, rbx
jne 0x14007a677
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 2
jne 0x14007a6c0
xor ebx, ebx
jmp 0x14007a6c0
movzx ecx, word [rbx + 0x46]
mov r9d, 3
movzx eax, word [rbx + 0x44]
xor r8d, r8d
add ecx, eax
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x14007a6c0
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor edx, edx
lea ecx, [rax + 2]
lea r8d, [rax + 0x1b]
call sym.spoolsv.exe_PrvRouterBroadcastMessage
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
test ebx, ebx
je 0x14007a734
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov rax, qword [0x1400c72a8]
lea rcx, [0x1400c72a8]
cmp rax, rcx
je 0x14007a630
test byte [rax + 0x44], 0x20
je 0x14007a630
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400c72a8]
lea r8, [0x1400aab20]
mov edx, 0xe
mov r9d, eax
mov rcx, qword [rcx + 0x38]
call fcn.14001c1f8
jmp 0x14007a630
mov eax, 1
jmp 0x14007a632
Function at 0x14007c928
Capabilities:
Delete registry key

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r15, qword [0x1400c9140]
xor esi, esi
and qword [rax + 8], rsi
mov r13, r9
mov r12, r8
mov ebp, edx
mov rbx, qword [r15 + 0x60]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop dword [rax + rax]
inc dword [rbx + 0x2c]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThreadId]
nop dword [rax + rax]
mov dword [rbx + 0x28], eax
mov rax, r12
neg rax
mov eax, 0x80070057
sbb edi, edi
not edi
and edi, eax
test r12, r12
je 0x14007c9d8
and dword [r12], esi
lea rcx, [r15 + 0x38]
test rcx, rcx
je 0x14007c9d6
xor eax, eax
lea edi, [rsi + 1]
add rcx, 8
je 0x14007c9b4
mov rax, qword [rcx + 0x10]
test rcx, rcx
je 0x14007c9d8
cmp rax, rcx
je 0x14007c9d8
mov edx, ebp
sub edx, dword [rax + 0x24]
js 0x14007c9d8
test edx, edx
je 0x14007c9cf
mov rax, qword [rax + 0x10]
jmp 0x14007c9b9
mov rsi, rax
xor edi, edi
jmp 0x14007c9d8
mov edi, eax
test edi, edi
jne 0x14007caba
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.14007cf7c
mov edi, eax
test eax, eax
js 0x14007cac4
mov r14, qword [rsp + 0x70]
mov rcx, r13
mov rbp, qword [r14 + 0x28]
mov rdx, rbp
call fcn.140003650
xor r13d, r13d
mov edi, eax
test eax, eax
js 0x14007ca8c
mov qword [rsp + 0x70], r13
lea r8, [0x1400aa8ec]
mov rax, qword [rsi + 0x30]
lea r9, [0x1400aa8f0]
mov qword [rsp + 0x30], r13
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov rdx, rbp
mov qword [rsp + 0x20], r8
call fcn.14000b810
mov ecx, eax
call fcn.1400083f0
mov edi, eax
test eax, eax
js 0x14007ca8c
mov rdx, qword [rsp + 0x70]
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000003
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteKeyExW]
nop dword [rax + rax]
mov r8, qword [rsp + 0x70]
xor edx, edx
mov rcx, qword [0x1400c9130]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
cmp dword [r14 + 0x24], r13d
jne 0x14007cac4
dec dword [r15 + 0x30]
mov edx, 1
mov rax, qword [r14]
mov dword [r12], edx
movabs r10, 0xda74867c1459e070
mov rax, qword [rax]
mov rcx, r14
call qword [0x1400a83f0]
jmp 0x14007cac4
test edi, edi
mov eax, 0x80004005
cmovns edi, eax
test rsi, rsi
je 0x14007cae7
mov rax, qword [rsi]
movabs r10, 0xda74867c1459e070
mov rax, qword [rax]
mov edx, 1
mov rcx, rsi
call qword [0x1400a83f0]
test edi, edi
jns 0x14007cb1c
mov rcx, qword [0x1400c72a8]
lea rax, [0x1400c72a8]
cmp rcx, rax
je 0x14007cb1c
test byte [rcx + 0x44], 0x20
je 0x14007cb1c
mov rcx, qword [rcx + 0x38]
lea r8, [0x1400aab50]
mov edx, 0xd
mov r9d, edi
call fcn.14001c23c
add dword [rbx + 0x2c], 0xffffffff
mov eax, dword [rbx + 0x2c]
jne 0x14007cb29
and dword [rbx + 0x28], 0
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
nop dword [rax + rax]
lea r11, [rsp + 0x40]
mov eax, edi
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14007d1ec
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x30
mov rcx, qword [0x1400c8f00]
mov ebx, 1
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop dword [rax + rax]
test byte [0x1400c8f08], bl
jne 0x14007d301
mov eax, dword [0x1400c8f10]
test eax, eax
je 0x14007d277
lea r9d, [rax - 1]
mov dword [0x1400c8f10], r9d
mov rcx, qword [0x1400c72a8]
lea rax, [0x1400c72a8]
cmp rcx, rax
je 0x14007d25f
test byte [rcx + 0x44], 0x80
je 0x14007d25f
mov rcx, qword [rcx + 0x38]
lea edx, [rbx + 9]
lea r8, [0x1400bc898]
call fcn.14001c23c
mov rcx, qword [0x1400c8f18]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
nop dword [rax + rax]
jmp 0x14007d303
mov rax, qword [0x1400c8f00]
mov r9d, dword [0x1400c8f0c]
cmp r9d, dword [rax]
jae 0x14007d303
mov rcx, qword [0x1400c72a8]
lea rax, [0x1400c72a8]
cmp rcx, rax
je 0x14007d2b8
test byte [rcx + 0x44], 0x80
je 0x14007d2b8
mov rcx, qword [rcx + 0x38]
lea r8, [0x1400bc898]
mov edx, 0xb
call fcn.14001c23c
lea rax, [rsp + 0x40]
xor edx, edx
mov qword [rsp + 0x28], rax
lea r9, [0x1400c8f00]
and dword [rsp + 0x20], 0
lea r8, [0x14007d440]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
nop dword [rax + rax]
test rax, rax
je 0x14007d301
mov rcx, rax
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
add dword [0x1400c8f0c], ebx
jmp 0x14007d303
xor ebx, ebx
mov rcx, qword [0x1400c8f00]
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x14007eb70
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov rax, qword [0x1400c77d8]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rsi, qword [0x1400c9190]
mov rdi, rdx
mov rcx, rsi
call fcn.14007fc78
mov ebx, eax
cmp eax, 1
jne 0x14007ed4e
call sym.spoolsv.exe_PrvRevertToPrinterSelf
and qword [rbp - 0x19], 0
lea rdx, [rbp - 0x19]
mov rcx, rdi
mov r14, rax
call fcn.140080e04
test eax, eax
jne 0x14007ec5f
mov rsi, qword [rbp - 0x19]
test rsi, rsi
je 0x14007ec55
and qword [rbp - 0x19], 0
lea r8, [rbp - 0x19]
mov rdx, rsi
call fcn.140080550
mov rcx, rsi
mov ebx, eax
call fcn.14000eccc
test ebx, ebx
jne 0x14007ec55
lea ecx, [rbx + 0x38]
call fcn.14000ecd8
test rax, rax
je 0x14007ec55
mov rdx, rdi
mov rcx, rax
call fcn.14007e9d8
test rax, rax
je 0x14007ec55
mov r11, rax
cmp dword [rax + 0x34], ebx
jl 0x14007ec37
mov rcx, qword [rbp - 0x19]
mov rdx, rax
mov rcx, qword [rcx + 0x40]
call fcn.14005fa10
test eax, eax
jns 0x14007ec55
mov rax, qword [r11]
movabs r10, 0xda74867c1459e070
mov rax, qword [rax]
mov edx, 1
mov rcx, r11
call qword [0x1400a83f0]
mov ebx, 0x80004005
jmp 0x14007ed27
mov r8d, 0x74736c74
mov byte [rsp + 0x20], 0
lea rdx, [0x14008c098]
mov dword [rbp - 0x11], r8d
mov ecx, 0x6b6e6c74
mov qword [rbp - 9], rdx
lea rax, [rbp - 9]
mov dword [rbp - 1], ecx
mov qword [rbp + 7], rax
lea r9, [rbp + 0x17]
lea rax, [rbp - 9]
mov dword [rbp + 0x17], r8d
mov qword [rbp + 0xf], rax
lea r8, [rbp - 0x11]
lea rax, [rbp + 0x1f]
mov qword [rbp + 0x1f], rdx
mov qword [rbp + 0x2f], rax
mov rdx, rdi
lea rax, [rbp + 0x1f]
mov dword [rbp + 0x27], ecx
mov rcx, rsi
mov qword [rbp + 0x37], rax
call fcn.140080b80
mov ebx, eax
test eax, eax
jne 0x14007ecd8
lea r8, [rbp - 0x11]
mov rdx, rdi
mov rcx, rsi
call fcn.14007ed7c
mov ebx, eax
jmp 0x14007ed15
cmp ax, 0x2af9
jne 0x14007ed15
lea rax, [0x1400c8f30]
mov rcx, rdi
lea rdx, [rbp - 0x19]
mov qword [rbp - 0x19], rax
call fcn.14007fec4
mov ebx, eax
test eax, eax
jne 0x14007ed0c
mov rdx, qword [rbp - 0x19]
mov r8, rdi
mov rcx, rsi
call fcn.14007ef48
mov ebx, eax
mov rdx, qword [rbp - 0x19]
call fcn.14004388c
lea rcx, [rbp + 0x17]
call fcn.140042394
lea rcx, [rbp - 0x11]
call fcn.140042394
mov rcx, r14
call sym.spoolsv.exe_PrvImpersonatePrinterClient
test eax, eax
jne 0x14007ed4e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_ExitProcess]
mov eax, ebx
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.14000f060
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14007f160
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rdi, qword [0x1400c8518]
xor r13d, r13d
mov r15, r8
mov rbp, rdx
cmp byte [rdi + 0x58], r13b
jne 0x14007f196
xor eax, eax
jmp 0x14007f2f3
mov esi, 0x80070057
test rbp, rbp
je 0x14007f2f1
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rdx + rcx*2], r13w
jne 0x14007f1a8
mov eax, dword [rdi + 0x10]
cmp rcx, rax
ja 0x14007f2f1
lea rcx, [rdi + 0x20]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop dword [rax + rax]
inc dword [rdi + 0x4c]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThreadId]
nop dword [rax + rax]
mov dword [rdi + 0x48], eax
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
nop dword [rax + rax]
mov r14d, r13d
mov dword [rsp + 0x70], eax
mov ecx, r13d
mov r12d, r13d
cmp dword [rdi + 8], r13d
jbe 0x14007f295
mov eax, r12d
mov r13d, ecx
mov dword [rsp + 0x20], r14d
lea rsi, [rax + rax*2]
mov rax, qword [rdi + 0x18]
lea r9, [rax + rsi*8]
mov rdx, qword [r9]
test rdx, rdx
je 0x14007f280
mov rcx, rbp
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x14007f268
mov rax, qword [rdi + 0x18]
mov ecx, dword [rsp + 0x70]
lea r9, [rax + rsi*8]
sub ecx, dword [r9 + 8]
cmp ecx, dword [rdi + 0xc]
ja 0x14007f280
cmp ecx, r13d
mov r14d, r12d
cmovbe r14d, dword [rsp + 0x20]
inc r12d
cmp ecx, r13d
cmovbe ecx, r13d
cmp r12d, dword [rdi + 8]
jb 0x14007f203
jmp 0x14007f295
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
nop dword [rax + rax]
mov rcx, qword [rdi + 0x18]
mov dword [rcx + rsi*8 + 8], eax
xor esi, esi
jmp 0x14007f2d4
mov r8, r15
mov rdx, rbp
mov rcx, r9
call fcn.140080c24
mov esi, eax
cmp eax, 1
jne 0x14007f2d4
mov eax, dword [rdi + 8]
mov r8, r15
mov rdx, qword [rdi + 0x18]
cmp eax, dword [rdi + 4]
jae 0x14007f2bf
lea rcx, [rax + rax*2]
lea rcx, [rdx + rcx*8]
mov rdx, rbp
call fcn.140080c24
mov esi, eax
test eax, eax
js 0x14007f2d4
inc dword [rdi + 8]
jmp 0x14007f2d4
mov eax, r14d
lea rcx, [rax + rax*2]
lea rcx, [rdx + rcx*8]
mov rdx, rbp
call fcn.140080c24
mov esi, eax
add dword [rdi + 0x4c], 0xffffffff
mov eax, dword [rdi + 0x4c]
jne 0x14007f2e1
and dword [rdi + 0x48], 0
lea rcx, [rdi + 0x20]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov eax, esi
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14007f310
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor r15d, r15d
mov rbp, rdx
mov rdi, rcx
cmp byte [rcx + 0x58], r15b
jne 0x14007f33a
xor eax, eax
jmp 0x14007f489
mov esi, 0x80070057
test rbp, rbp
je 0x14007f487
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rdx + rcx*2], r15w
jne 0x14007f34c
mov eax, dword [rdi + 0x10]
cmp rcx, rax
ja 0x14007f487
lea rcx, [rdi + 0x20]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop dword [rax + rax]
inc dword [rdi + 0x4c]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThreadId]
nop dword [rax + rax]
mov dword [rdi + 0x48], eax
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
nop dword [rax + rax]
mov r14d, r15d
mov r13d, eax
mov ecx, r15d
mov esi, r15d
cmp dword [rdi + 8], r15d
jbe 0x14007f415
mov eax, esi
mov r12d, ecx
mov dword [rsp + 0x60], r14d
lea r15, [rax + rax*2]
mov rax, qword [rdi + 0x18]
lea rcx, [rax + r15*8]
mov rdx, qword [rcx]
test rdx, rdx
je 0x14007f406
mov rcx, rbp
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x14007f43c
mov rax, qword [rdi + 0x18]
mov ecx, r13d
lea r8, [rax + r15*8]
sub ecx, dword [r8 + 8]
cmp ecx, dword [rdi + 0xc]
ja 0x14007f403
cmp ecx, r12d
mov r14d, esi
cmovbe r14d, dword [rsp + 0x60]
inc esi
cmp ecx, r12d
cmovbe ecx, r12d
cmp esi, dword [rdi + 8]
jb 0x14007f3a2
jmp 0x14007f415
mov rcx, r8
mov rdx, rbp
call fcn.140080d08
mov esi, eax
cmp eax, 1
jne 0x14007f46a
mov eax, dword [rdi + 8]
mov rdx, qword [rdi + 0x18]
cmp eax, dword [rdi + 4]
jae 0x14007f455
lea rcx, [rax + rax*2]
lea rcx, [rdx + rcx*8]
mov rdx, rbp
call fcn.140080d08
mov esi, eax
test eax, eax
js 0x14007f46a
inc dword [rdi + 8]
jmp 0x14007f46a
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
nop dword [rax + rax]
mov rcx, qword [rdi + 0x18]
xor esi, esi
mov dword [rcx + r15*8 + 8], eax
jmp 0x14007f46a
mov eax, r14d
lea rcx, [rax + rax*2]
lea rcx, [rdx + rcx*8]
mov rdx, rbp
call fcn.140080d08
mov esi, eax
add dword [rdi + 0x4c], 0xffffffff
mov eax, dword [rdi + 0x4c]
jne 0x14007f477
and dword [rdi + 0x48], 0
lea rcx, [rdi + 0x20]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov eax, esi
mov rbx, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x140080dbc
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov dword [rcx], 0x54535357
lea rdx, [rcx + 8]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
nop dword [rax + rax]
test eax, eax
jle 0x140080dec
movzx eax, ax
or eax, 0x80070000
mov dword [rbx + 0x1a0], eax
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x140080e04
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x140]
sub rsp, 0x240
mov rax, qword [0x1400c77d8]
xor rax, rsp
mov qword [rbp + 0x130], rax
xor r14d, r14d
mov rsi, rdx
mov qword [rdx], r14
mov rdi, rcx
mov ebx, 0x80070057
test rcx, rcx
je 0x140080f62
cmp word [rcx], r14w
je 0x140080f62
lea rcx, [rbp - 0x80]
call fcn.140080dbc
mov ebx, dword [rbp + 0x120]
test ebx, ebx
js 0x140080f4d
xorps xmm0, xmm0
mov qword [rsp + 0x40], r14
movups xmmword [rsp + 0x48], xmm0
lea r9, [rsp + 0x40]
mov qword [rsp + 0x48], 4
lea r8, [rsp + 0x48]
xor edx, edx
mov rcx, rdi
movups xmmword [rsp + 0x58], xmm0
movups xmmword [rsp + 0x68], xmm0
call qword [sym.imp.WS2_32.dll_GetAddrInfoW]
nop dword [rax + rax]
test eax, eax
jne 0x140080f24
mov rcx, rdi
call fcn.140080f94
test eax, eax
js 0x140080f0e
mov ecx, 0x804
call fcn.14000ecd8
mov rbx, rax
test rax, rax
je 0x140080f0e
mov rcx, qword [rsp + 0x40]
mov r9d, 0x401
mov dword [rsp + 0x30], 2
mov r8, rax
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
mov edx, dword [rcx + 0x10]
mov rcx, qword [rcx + 0x20]
call qword [sym.imp.WS2_32.dll_GetNameInfoW]
nop dword [rax + rax]
test eax, eax
jne 0x140080f06
mov qword [rsi], rbx
jmp 0x140080f0e
mov rcx, rbx
call fcn.14000eccc
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_FreeAddrInfoW]
nop dword [rax + rax]
mov ebx, r14d
jmp 0x140080f4d
cmp eax, 0x2af9
jne 0x140080f32
mov ebx, 1
jmp 0x140080f4d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140080f4d
movzx ebx, ax
or ebx, 0x80070000
cmp dword [rbp + 0x120], r14d
jne 0x140080f62
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x130]
xor rcx, rsp
call fcn.14000f060
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140081450
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push r14
mov rbp, rsp
sub rsp, 0x50
and qword [rbp + 0x38], 0
lea rax, [rbp + 0x38]
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rsi, rdx
mov r14, 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 0x140081504
mov rcx, qword [rbp + 0x38]
lea r9, [rbp + 0x30]
and qword [rbp - 0x10], 0
lea r8, [rbp - 0x10]
and dword [rbp + 0x30], 0
call fcn.1400817e0
mov ebx, eax
test eax, eax
jne 0x140081504
and qword [rsp + 0x38], 0
lea r9, [rbp + 0x30]
and qword [rsp + 0x30], 0
xor edx, edx
and qword [rsp + 0x28], 0
mov r8, qword [rbp - 0x10]
mov rcx, qword [rbp + 0x38]
and qword [rsp + 0x20], 0
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x1400814f7
mov rdx, qword [rbp - 0x10]
mov rcx, qword [rbp + 0x38]
call fcn.140081450
movzx ebx, ax
mov rcx, qword [rbp - 0x10]
call fcn.14001026c
test ebx, ebx
je 0x14008148f
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x140081519
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
xor eax, eax
cmp ebx, 0x103
cmovne eax, ebx
test eax, eax
jne 0x140081542
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteKeyExW]
nop dword [rax + rax]
test eax, eax
jle 0x14008154c
movzx eax, ax
or eax, 0x80070000
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop r14
pop rsi
pop rbp
ret

Function at 0x140081880
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x30
mov rcx, qword [rcx + 0x10]
lea rax, [r11 + 0x20]
mov qword [r11 - 0x10], rax
mov ebx, r8d
mov rax, qword [rsp + 0x60]
xor r8d, r8d
mov dword [r11 + 0x20], r9d
lea r9, [r11 + 0x18]
mov qword [r11 - 0x18], rax
mov dword [rsp + 0x50], ebx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ecx, eax
test eax, eax
jne 0x1400818cb
cmp dword [rsp + 0x50], ebx
lea eax, [rcx + 0x57]
cmovne ecx, eax
mov rdx, qword [rsp + 0x68]
test rdx, rdx
je 0x1400818db
mov eax, dword [rsp + 0x58]
mov dword [rdx], eax
test ecx, ecx
jle 0x1400818e8
movzx ecx, cx
or ecx, 0x80070000
mov eax, ecx
add rsp, 0x30
pop rbx
ret

Function at 0x1400818f8
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov dword [r11 + 0x18], r8d
mov qword [r11 + 0x10], rdx
push rbx
sub rsp, 0x30
mov eax, dword [r9]
lea rdx, str.Order
mov rcx, qword [rcx + 0x10]
mov rbx, r9
mov dword [rsp + 0x48], eax
lea r9, [r11 + 0x18]
lea rax, [r11 + 0x10]
mov dword [rsp + 0x50], 7
mov qword [r11 - 0x10], rax
xor r8d, r8d
and qword [r11 - 0x18], 0
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x14008195c
cmp dword [rsp + 0x50], 7
lea ecx, [rax + 0x57]
cmovne eax, ecx
mov ecx, dword [rsp + 0x48]
mov dword [rbx], ecx
test eax, eax
jle 0x140081966
movzx eax, ax
or eax, 0x80070000
add rsp, 0x30
pop rbx
ret