joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001534
Capabilities:
Parse url

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor esi, esi
mov r15, r8
mov r12d, edx
mov qword [rbp - 0x41], rsi
mov r13, rcx
mov ebx, esi
xor edx, edx
mov qword [rbp - 0x49], rbx
lea r8d, [rsi + 0x68]
mov r14d, r9d
lea rcx, [rbp - 0x39]
mov edi, esi
call sub.VCRUNTIME140.dll_memset
cmp r12d, 5
je 0x14000e1b5
test r15, r15
je 0x140001630
test r14d, r14d
je 0x140001630
lfence
lea r8d, [r14 + r14]
mov rdx, r15
lea rcx, [rbp - 0x49]
call fcn.140001680
test eax, eax
js 0x140001666
mov rcx, qword [r13 + 0xd8]
mov eax, 0x824
mov dword [rbp - 0x19], eax
mov dword [rbp + 0x17], eax
mov dword [rbp - 0x39], 0x68
call qword [sym.imp.OLEAUT32.dll_VariantInit]
mov rcx, qword [r13 + 0xd8]
lea r9, [rbp - 0x39]
mov edx, eax
xor r8d, r8d
call qword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x140001666
mov r8d, dword [rbp - 0x19]
lea rcx, [rbp - 0x41]
mov rdx, qword [rbp - 0x21]
add r8d, r8d
call fcn.140001680
test eax, eax
js 0x140001666
cmp r12d, dword [rbp - 0x25]
jne 0x140001666
mov rdi, qword [rbp - 0x41]
mov rbx, qword [rbp - 0x49]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
movzx esi, sil
mov edx, 1
test eax, eax
cmove esi, edx
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov al, sil
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov rbx, qword [rbp - 0x49]
mov rdi, qword [rbp - 0x41]
jmp 0x140001630
xor ecx, ecx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
xor ecx, ecx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, 1
jmp 0x140001645
Function at 0x140007690
Capabilities:
Hash data using fnv

Disassembly:
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov edi, 1
bsr rcx, rax
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x140011223
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x140044ec8]
or rax, rdi
bsr rcx, rax
mov qword [rsp + 0x38], rbp
mov r8, rbx
inc ecx
mov qword [rsp + 0x40], rsi
shl rdi, cl
lea rcx, [0x140044ed8]
lea rdx, [rdi + rdi]
call fcn.140006410
mov rax, qword [0x140044ec8]
lea r8, [rdi - 1]
mov qword [0x140044ef0], r8
movabs rbp, 0xcbf29ce484222325
mov qword [0x140044ef8], rdi
movabs rsi, 0x100000001b3
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x140007787
movzx edx, byte [rax + 0x11]
movzx r11d, byte [rax + 0x10]
mov rcx, qword [rcx]
xor r11, rbp
imul r11, rsi
xor r11, rdx
movzx edx, byte [rax + 0x12]
imul r11, rsi
xor r11, rdx
movzx edx, byte [rax + 0x13]
imul r11, rsi
xor r11, rdx
imul r11, rsi
and r11, r8
mov r8, qword [0x140044ed8]
add r11, r11
mov r9, qword [r8 + r11*8]
cmp r9, rbx
jne 0x140011231
mov qword [r8 + r11*8], rax
mov qword [r8 + r11*8 + 8], rax
mov r8, qword [0x140044ef0]
mov rax, rcx
jmp 0x140007723
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
mov rdx, qword [r8 + r11*8 + 8]
mov r10d, dword [rax + 0x10]
cmp r10d, dword [rdx + 0x10]
jne 0x140011273
mov rdi, qword [rdx]
cmp rdi, rax
je 0x140011269
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdi
mov rdx, qword [rdi + 8]
mov qword [rdx], rax
mov qword [rdi + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], rdx
mov qword [r8 + r11*8 + 8], rax
jmp 0x14000777b
lea rdi, [rdx + 8]
cmp r9, rdx
je 0x1400112ae
mov rdx, qword [rdi]
cmp r10d, dword [rdx + 0x10]
jne 0x140011273
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x14000777b
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov rdx, qword [rdi]
mov qword [rdx], rax
mov qword [rdi], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], rdx
mov qword [r8 + r11*8], rax
jmp 0x14000777b
Function at 0x1400077a0
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov r15, r8
mov rdi, rdx
movzx esi, byte [r8]
movabs rax, 0xcbf29ce484222325
xor rsi, rax
movabs rcx, 0x100000001b3
imul rsi, rcx
movzx eax, byte [r8 + 1]
xor rsi, rax
imul rsi, rcx
movzx eax, byte [r8 + 2]
xor rsi, rax
imul rsi, rcx
movzx eax, byte [r8 + 3]
xor rsi, rax
imul rsi, rcx
mov rcx, qword [0x140044ef0]
and rcx, rsi
add rcx, rcx
mov r8, qword [0x140044ed8]
mov rax, qword [r8 + rcx*8 + 8]
mov rdx, qword [0x140044ec8]
cmp rax, rdx
jne 0x140007936
mov qword [rsp + 0x20], rdx
movabs rax, 0x7ffffffffffffff
cmp qword [0x140044ed0], rax
je 0x1400112d7
lea rax, [0x140044ec8]
mov qword [rsp + 0x30], rax
xor ebp, ebp
mov qword [rsp + 0x38], rbp
lfence
lea ecx, [rbp + 0x20]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x1400112e5
mov qword [rsp + 0x38], rax
mov eax, dword [r15]
mov dword [rbx + 0x10], eax
mov qword [rbx + 0x18], rbp
mov rdx, qword [0x140044ed0]
lea r8, [rdx + 1]
xorps xmm0, xmm0
test r8, r8
js 0x14000796a
cvtsi2ss xmm0, r8
mov rcx, qword [0x140044ef8]
xorps xmm1, xmm1
test rcx, rcx
js 0x140007987
cvtsi2ss xmm1, rcx
divss xmm0, xmm1
comiss xmm0, dword [0x140044ec0]
ja 0x1400079a1
mov rcx, qword [rsp + 0x20]
mov r8, qword [rcx + 8]
inc rdx
mov qword [0x140044ed0], rdx
mov qword [rbx], rcx
mov qword [rbx + 8], r8
mov qword [r8], rbx
mov qword [rcx + 8], rbx
mov rdx, qword [0x140044ed8]
mov rax, qword [0x140044ef0]
and rax, rsi
add rax, rax
mov r9, qword [rdx + rax*8]
cmp r9, qword [0x140044ec8]
jne 0x140007955
mov qword [rdx + rax*8], rbx
mov qword [rdx + rax*8 + 8], rbx
mov qword [rdi], rbx
mov byte [rdi + 8], 1
mov rax, rdi
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop r14
pop rdi
ret
mov rdx, qword [r8 + rcx*8]
mov ecx, dword [r15]
cmp ecx, dword [rax + 0x10]
je 0x1400112fc
cmp rax, rdx
jne 0x140007964
mov qword [rsp + 0x20], rax
jmp 0x14000782f
cmp r9, rcx
jne 0x1400112ec
mov qword [rdx + rax*8], rbx
jmp 0x140007910
mov rax, qword [rax + 8]
jmp 0x14000793d
mov rcx, r8
shr rcx, 1
mov rax, r8
and eax, 1
or rcx, rax
cvtsi2ss xmm0, rcx
addss xmm0, xmm0
jmp 0x14000789c
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm1, rax
addss xmm1, xmm1
jmp 0x1400078b4
mov rdx, r8
call fcn.140007a10
mov rdx, rax
call fcn.140007690
mov r9, rsi
lea r8, [rbx + 0x10]
lea rdx, [rsp + 0x40]
call fcn.1400079d8
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x20], xmm0
mov rdx, qword [0x140044ed0]
jmp 0x1400078c5
lea rcx, str.unordered_map_set_too_long
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
nop
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_alloc_void_]
nop
cmp qword [rdx + rax*8 + 8], r8
jne 0x140007910
jmp 0x14000790b
mov qword [rdi], rax
mov byte [rdi + 8], 0
jmp 0x140007917
Function at 0x140007ab0
Capabilities:
Link many functions at runtime
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x168]
sub rsp, 0x260
mov rax, qword [0x140043008]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov rdi, rcx
mov dword [rsp + 0x34], 1
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
xor esi, esi
mov dword [rsp + 0x30], 0x208
lea r8, [0x140044ae0]
mov ecx, esi
mov rax, r8
lea rdx, [0x140044b30]
cmp qword [rax], rsi
jne 0x14001133a
movsxd rax, ecx
lea rdx, [rax + rax*4]
lea rbx, [r8 + rdx*8]
test rbx, rbx
je 0x140007c69
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x40]
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140011394
cmp dword [rsp + 0x34], 1
jne 0x140011394
cmp word [rsp + 0x40], si
je 0x140011394
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x140011394
shr eax, 1
mov ecx, eax
mov dword [rsp + 0x30], eax
cmp eax, 0x104
jae 0x14001134e
mov eax, ecx
add rax, rax
cmp rax, 0x208
jae 0x140007c91
mov word [rsp + rax + 0x40], si
lea rcx, [rsp + 0x40]
call fcn.14000a368
mov qword [rbx], rax
test rax, rax
je 0x140011394
lea rdx, str.GetPerfhostHookVersion
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001135a
call qword [case.0x140007cca.0]
mov dword [rbx + 8], eax
cmp eax, 1
je 0x140011364
cmp eax, 2
je 0x140011364
cmp eax, 3
jne 0x140007c3b
mov rcx, qword [rbx]
lea rdx, str.InitPerf_v3
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.PerfCodeMarker_v3
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.UnInitPerf_v3
mov rcx, qword [rbx]
mov qword [rbx + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x18], rax
cmp qword [rbx + 0x10], rsi
je 0x140011394
cmp qword [rbx + 0x20], rsi
je 0x140011394
cmp qword [rbx + 0x18], rsi
je 0x140011394
mov rcx, rbx
call fcn.140007c98
test eax, eax
js 0x140011394
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.14000ac50
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.14000c808
int3
inc ecx
add rax, 0x28
cmp rax, rdx
jl 0x140007b19
jmp 0x140007c69
mov word [rbp + 0x146], si
jmp 0x140007bb0
mov eax, 1
jmp 0x140007be5
mov rcx, qword [rbx]
lea rdx, str.InitPerf
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.PerfCodeMarker
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.UnInitPerf
jmp 0x140007c2a
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400113a2
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rbx], rsi
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], rsi
mov qword [rbx + 0x20], rsi
jmp 0x140007c69
Function at 0x140008008
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x20
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_HeapSetInformation]
cmp byte [0x140044aa0], 0
jne 0x14000807a
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov dword [rsp + 0x30], eax
mov ebx, eax
test eax, eax
js 0x140011497
mov byte [0x140044cc2], 1
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rax
lea r8, [rsp + 0x30]
call fcn.140008534
test al, al
je 0x140008082
call fcn.14000808c
mov ebx, eax
test eax, eax
jne 0x1400114b6
call fcn.1400084e0
jmp 0x1400114b6
or ebx, 0xffffffff
jmp 0x1400114d0
mov ebx, dword [rsp + 0x30]
jmp 0x1400114c1
cmp eax, 0x80010106
jne 0x1400114d0
lea rcx, str.Mscoree.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x14000804a
jmp 0x1400114d0
test ebx, ebx
js 0x1400114c1
call fcn.140013aa8
mov ebx, eax
cmp byte [0x140044cc2], 0
je 0x1400114d0
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x14000808c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x10], edx
push rdi
sub rsp, 0x30
xor ebx, ebx
lea rcx, [0x1400433a0]
call fcn.140003fc0
mov rdi, qword [0x140044c20]
mov rax, qword [0x140044c28]
cmp rdi, rax
jae 0x1400080f3
test ebx, ebx
js 0x1400080f3
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400080d3
lea rdx, [0x14002eaf0]
cmp qword [rcx], rdx
je 0x1400080d9
add rdi, 8
jmp 0x1400080b6
mov r8d, 4
call fcn.140004248
mov ebx, eax
test eax, eax
js 0x1400080f3
mov rax, qword [0x140044c28]
jmp 0x1400080d3
lfence
test ebx, ebx
js 0x1400081a9
jne 0x140011579
cmp byte [0x140044cc0], 0
je 0x140011530
call fcn.1400081c0
and dword [rsp + 0x48], 0
xor edi, edi
cmp byte [0x140044ce0], dil
jne 0x1400114d8
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x140044cc8], rax
test rax, rax
je 0x14000817f
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], edi
lea r9, [0x140044cc8]
lea r8, [0x140009420]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
mov byte [0x140044ce0], 1
test rax, rax
je 0x1400114d8
test rdi, rdi
je 0x1400114f6
call qword [sym.imp.ole32.dll_CoResumeClassObjects]
mov ebx, eax
test eax, eax
js 0x14001150d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
js 0x1400114fb
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rax, qword [0x140044cc8]
test rax, rax
je 0x14000817f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000817f
mov ebx, 0x80004005
xor eax, eax
mov rdi, qword [0x140044c20]
mov rcx, qword [0x140044c28]
jmp 0x14001156f
mov rcx, qword [0x140044cb0]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [0x140044cb8]
add edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x140008198
call qword [sym.imp.ole32.dll_CoResumeClassObjects]
mov ebx, eax
jmp 0x1400081a1
test eax, eax
jne 0x1400081a9
mov rdx, qword [rdi]
test rdx, rdx
je 0x14001156b
mov rax, qword [rdx + 0x20]
mov edx, dword [rax + 8]
test edx, edx
jne 0x14001155c
xor eax, eax
jmp 0x14001156b
mov ecx, edx
call qword [sym.imp.ole32.dll_CoRevokeClassObject]
mov rcx, qword [0x140044c28]
add rdi, 8
cmp rdi, rcx
jb 0x14001153d
jmp 0x1400081a9
mov byte [0x140044cc0], 0
jmp 0x1400081a9
Function at 0x1400091d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x40
and qword [rbp - 0x10], 0
lea rax, [rbp - 0x10]
mov rbx, rcx
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000000
lea rdx, str.CLSID
mov r9d, 0x20019
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000927e
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x28]
and qword [rbp + 0x28], 0
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000926f
mov rcx, qword [rbp + 0x28]
lea rax, [rbp + 0x18]
mov qword [rsp + 0x28], rax
lea rdx, str.InsecureQI
lea rax, [rbp + 0x20]
mov dword [rbp + 0x18], 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140012048
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x14000927e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x14000928f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rbp
ret
cmp dword [rbp + 0x18], 4
jne 0x14000926f
mov ebx, dword [rbp + 0x20]
cmp ebx, 3
ja 0x14000926f
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x140009280
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140009280
Function at 0x14000929c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
mov rbp, rsp
sub rsp, 0x30
cmp byte [0x140044ac8], 0
jne 0x140012078
and qword [rbp + 0x18], 0
lea rax, [rbp + 0x18]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwarePoliciesMicrosoftSecurity
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, 4
lea rsi, [0x140044acc]
test eax, eax
je 0x140012083
mov rcx, qword [rbp + 0x18]
and qword [rbp + 0x18], 0
test rcx, rcx
jne 0x140009362
lea rax, [rbp + 0x18]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftSecurity
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400120bd
and dword [0x140044acc], 0
xor ebx, ebx
mov rcx, qword [rbp + 0x18]
mov al, 1
mov byte [0x140044ac8], al
test rcx, rcx
jne 0x14000936a
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rbp
ret
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140009308
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140009350
mov eax, dword [0x140044acc]
jmp 0x140009352
mov rcx, qword [rbp + 0x18]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
lea rdx, str.CLSIDInterfaceTest
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
mov dword [rbp + 0x10], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400092fa
cmp dword [rbp + 0x10], ebx
je 0x1400120f6
jmp 0x1400092fa
mov rcx, qword [rbp + 0x18]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
lea rdx, str.CLSIDInterfaceTest
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
mov dword [rbp + 0x10], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140009336
cmp dword [rbp + 0x10], ebx
jne 0x140009336
mov ebx, dword [0x140044acc]
jmp 0x14000933f
Function at 0x1400096f0
Capabilities:
Create thread

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x30
mov rbx, rcx
xor esi, esi
mov qword [rcx], rsi
mov byte [rcx + 8], sil
lea rdi, [rcx + 0x10]
mov qword [r11 + 0x10], rdi
lea rax, [rdi + 0x10]
mov qword [r11 - 0x10], rax
mov dword [rsp + 0x20], 4
mov r9, rcx
lea r8, [0x14000a530]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rdi + 8], rax
lea rcx, vtable.Thread::OsfThread.0
mov qword [rdi], rcx
test rax, rax
je 0x1400126d5
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x28], rax
test rax, rax
je 0x1400126f3
mov qword [rbx + 0x30], rsi
mov qword [rbx + 0x38], rsi
mov qword [rbx + 0x40], rsi
mov qword [rbx + 0x48], rsi
mov qword [rbx + 0x50], rsi
mov qword [rbx + 0x58], rsi
mov dword [rbx + 0x60], esi
mov qword [rbx + 0x78], rsi
mov qword [rbx + 0x80], rsi
mov qword [rbx + 0x88], rsi
mov qword [rbx + 0x90], rsi
lea rdi, [rbx + 0x64]
xor eax, eax
lea edx, [rsi + 8]
mov ecx, edx
rep stosb byte [rdi], al
lea rdi, [rbx + 0x6c]
mov ecx, edx
rep stosb byte [rdi], al
xor r9d, r9d
xor r8d, r8d
lea edx, [rsi + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x38], rax
test rax, rax
je 0x1400097e6
mov rax, rbx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400097d3
lea rax, str.Cannot_create_thread
mov qword [rsp + 0x40], rax
lea rdx, [0x140039c18]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rax, str.Failed_to_create_event_handle_in_ThreadEvent__
mov qword [rsp + 0x48], rax
lea rdx, [0x140039c18]
lea rcx, [rsp + 0x48]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x14000b5d8
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x14000b650
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x14000b650
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x14000b650
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x14000b644
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x14000b662
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x14000b632
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x14000b652
Function at 0x14000cb74
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000cbbe
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000cbbe
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000cbbe
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000cbbe
cmp dword [rcx + 0x84], 0xe
jbe 0x14000cbbe
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000cbc0
xor al, al
add rsp, 0x28
ret

Function at 0x140014a64
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x140014a8a
mov r8, rdx
mov rdx, qword [rbx]
call fcn.140014c38
jmp 0x140014af6
cmp byte [0x140046400], 0
jne 0x140014ace
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140014abe
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400463f8], rax
jmp 0x140014ac5
mov rax, qword [0x1400463f8]
mov byte [0x140046400], 1
jmp 0x140014ad5
mov rax, qword [0x1400463f8]
mov rdx, rdi
mov rcx, qword [rbx]
test rax, rax
je 0x140014aef
xor r9d, r9d
mov r8d, dword [rbx + 8]
call qword [case.0x140007cca.0]
jmp 0x140014af6
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
nop
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140014c38
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x140014c9f
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140014cb3
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140014cb3
mov rcx, qword [rbx]
xor r9d, r9d
and qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rdx, rdi
mov rcx, rsi
call qword [case.0x140007cca.0]
jmp 0x140014cb8
cmp dword [rcx + 8], 0
je 0x140014cb3
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x140014cb8
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret