joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001b8d4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001b8ea
mov al, 1
jmp 0x14001b94a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001b8fb
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001b948
mov ecx, dword [rcx + 0x18]
nop
call fcn.140019a28
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001b948
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001b948
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001b948
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001b94a
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14001fd60
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001fd88
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001fd88
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x1405938a3
Capabilities:
Encrypt data using rc4 prga

Disassembly:
call fcn.14058e9d5
jmp 0x1405976ce
mov dword [rbx], r10d
jmp 0x1405a6370
mov r13d, 0x5cafd4b6
mov rsp, rbx
popfq
movzx esi, r13b
movzx eax, r13b
cqo
pop rsi
pop r13
lea rax, [rax*8 - 0x46f220c7]
movzx r15d, dl
pop r15
pop r12
not rdx
cdqe
pop rbx
mov r10d, edx
movzx edi, ax
call fcn.14055ce56
lea rbx, [rsp + rbx + 0x18]
jmp 0x140593e7c
not word [rsp + 7]
push 0xffffffffb185c817
lea rsp, [rsp + 0x20]
jmp fcn.140596e75

Function at 0x140597631
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push 0xffffffffbea4ef17
call fcn.1405875a8
mov esi, 0x279d8c14
lea rbx, [rsi + rsi*4 - 0x7b41dde5]
mov rsp, r8
movzx ebp, bl
movzx r10d, si
popfq
movsx r11d, sil
call fcn.14058accd
mov word [r9], r8w
push 0x329d0f82
lea rsp, [rsp + 0x20]
jmp fcn.140596e75

Function at 0x1405a27b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push 0x43b630a
push 0xffffffff86a58cbf
lea rsp, [rsp + 0x20]
jmp fcn.140596e75
adc r9, 2
or word [rsp + 8], 0xaf33
not dl
not r8b
mov qword [rsp], 0xffffffff943df50a
jp 0x1405a6e7f
and dl, r8b
jmp 0x1405ada97
not word [rsp + 0xa]
mov word [r9], dx
jmp 0x140595277
Function at 0x180018830
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180018858
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180018858
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x14043796e
Capabilities:
Authenticate hmac

Disassembly:
mov r12, r11
sete r12b
mov r12, qword [rsp + 0x10]
neg r11d
mov r11, qword [rsp + 0x18]
jle 0x1407ca77b
call fcn.1408409e8
je 0x1404379ed
invalid
popfq
invalid
or edx, edx
mov dword [rbx], edi
call 0x199cc269f
rol dword [rdi + 0x708288a7], 0xdd
sahf
xor edx, dword [rdi - 0xf]
cmp dword [rax], 0x5490628c
ja 0x140437a1d
out 0x6a, al
imul ecx, ebp, 0x51
fucomi st(2)
loope 0x1404379bc
invalid
jg 0x140437a73
jbe 0x140437a4b
cld
js 0x140437aa0
push rsp
int3
stosb byte [rdi], al
shl byte [rdi - 0x7c82ab41], 0x5c
rol dh, 0x31
outsd dx, dword [rsi]
movabs byte [0xf25c3fa6eb01f13f], al
sbb al, 0xa6
mov edi, 0x5d6d44ed
rcl ch, 0x11
adc byte [rbx + 0x21e6fa3f], ah
scasd eax, dword [rdi]
invalid
invalid
cdq
xchg ecx, eax
mov ch, 0x3f
adc eax, 0x405e0e0c
test dword [rdx], edx
rcl dword [rbp - 0x40]
in eax, dx
je 0x140437a6c
scasd eax, dword [rdi]
mov edi, 0x54ab8352
rcr al, 0x4f
stosb byte [rdi], al
invalid
imul ecx, dword [rbp + 0x14fec9b4], 0xffffffc4
invalid

Function at 0x140001070
Capabilities:
Execute command

Disassembly:
sub rsp, 0x28
lea rcx, [0x140002274]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov edx, eax
lea rcx, [0x140002278]
call fcn.140001010
lea rcx, [0x140002270]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov edx, eax
lea rcx, [0x140002278]
call fcn.140001010
lea rcx, str.PAUSE
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor eax, eax
add rsp, 0x28
ret

Function at 0x140001990
Capabilities:
Parse pe header

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

Disassembly:
cmp rcx, qword [0x1000700c8]
jne 0x10001da54
rol rcx, 0x10
test cx, 0xffff
jne 0x10001da50
ret 0
ror rcx, 0x10
jmp 0x100048c10
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x100070580]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov r11, qword [0x100070678]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.ntdll.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x100048c95
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x100070580]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.ntdll.dll_RtlVirtualUnwind
jmp 0x100048cb7
mov rax, qword [rsp + 0x88]
mov qword [0x100070678], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x100070618], rax
mov rax, qword [0x100070678]
mov qword [0x1000704f0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x100070600], rax
mov dword [0x1000704e0], 0xc0000409
mov dword [0x1000704e4], 1
mov rax, qword [0x1000700c8]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1000700d0]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x100055f70]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x10000adc0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
push rdi
sub rsp, 0x60
xor ebx, ebx
mov dword [rax - 0x28], 0x14
lea rax, [rax - 0x28]
mov qword [rsp + 0x30], rax
mov dword [rax + 8], ebx
mov qword [rax + 0xc], rbx
mov dword [rax + 0x14], ebx
mov dword [rax + 0x18], ebx
lea rax, [rsp + 0x48]
mov rdi, rcx
mov qword [rsp + 0x28], rax
lea r9d, [rbx + 8]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rbx
call qword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
cmp eax, ebx
jne 0x10000ae28
cmp dword [rsp + 0x40], 0x14
jne 0x10000ae28
lea rdx, [rsp + 0x48]
mov rcx, rdi
call fcn.10000a820
mov bl, al
mov al, bl
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
ret

Function at 0x10000bc88
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rbx, rcx
lea rcx, [0x100070092]
mov rsi, r9
movzx ebp, r8w
mov edi, edx
call fcn.10000bfc4
test al, al
jne 0x10000bcfc
mov rcx, rbx
call fcn.10000bd1c
test eax, eax
je 0x10000bd01
and qword [rsp + 0x40], 0
movzx eax, word [rsp + 0x80]
movzx r8d, word [rbx + 0x68]
mov rcx, qword [rbx + 0x60]
mov qword [rsp + 0x38], rsi
and dword [rsp + 0x30], 0
mov word [rsp + 0x28], ax
and qword [rsp + 0x20], 0
mov r9d, edi
movzx edx, bp
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov eax, 1
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x10000c0f0
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x40
mov rsi, rdx
lea rax, [r11 - 0x18]
mov rdi, rcx
xor ebx, ebx
lea rdx, str.SoftwareMicrosoftWindows_SearchTracingEventThrottleState
xor r8d, r8d
lea r9d, [rbx + 2]
mov rcx, 0xffffffff80000002
mov qword [r11 - 0x28], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x10000c169
mov rcx, qword [rsp + 0x30]
lea r9d, [rbx + 3]
xor r8d, r8d
mov rdx, rsi
mov dword [rsp + 0x28], 0x14
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea edx, [rbx + 1]
movzx ecx, bl
cmp eax, ebx
cmove ecx, edx
mov bl, cl
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x68]
mov al, bl
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x10000c780
Capabilities:
Get user security identifier

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push r12
sub rsp, 0x60
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rsi, rdx
mov rbx, rcx
test rdx, rdx
je 0x100020e2e
test rcx, rcx
je 0x100020e38
and qword [rdx], 0
and qword [rsp + 0x48], 0
and dword [rsp + 0x90], 0
and dword [rsp + 0x98], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x98]
xor r8d, r8d
mov rdx, rcx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x100020e89
mov ecx, dword [rsp + 0x90]
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call qword [case.0x10000fb16.1]
mov r12, rax
mov qword [rsp + 0x48], rax
jmp 0x10000c83b
test r12, r12
je 0x100020e7f
mov ecx, dword [rsp + 0x98]
call qword [sym.imp.msvcrt.dll_malloc]
mov qword [rsi], rax
test rax, rax
je 0x100020e75
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x90]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x98]
mov r8, rax
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x100020e5c
xor ebx, ebx
jmp 0x10000c89b
mov rcx, r12
call qword [case.0x10000fb16.0]
jmp 0x10000c8a6
mov eax, ebx
add rsp, 0x60
pop r12
pop rsi
pop rbx
ret
mov eax, 0x80004003
jmp 0x10000c8a8
mov eax, 0x80070057
jmp 0x10000c8a8
call fcn.10000c20c
mov ebx, eax
mov rcx, qword [rsi]
call qword [sym.imp.msvcrt.dll_free]
and qword [rsi], 0
jmp 0x10000c89b
mov ebx, 0x8007000e
jmp 0x10000c89b
mov ebx, 0x8007000e
jmp 0x10000c8a6
mov ecx, eax
call fcn.1000310b4
mov ebx, eax
jmp 0x10000c8a6
Function at 0x10000e8fc
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x120
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rax, qword [0x1000700c8]
xor rax, rsp
mov qword [rsp + 0x110], rax
and dword [rsp + 0x30], 0
and qword [rsp + 0x20], 0
mov ebx, 1
mov r9d, ebx
lea r8, str.SystemSetup
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x50]
call fcn.10000a36c
nop
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp qword [rsp + 0x100], 0
je 0x100021599
lea r8, [rsp + 0x30]
lea rdx, str.SystemSetupInProgress
lea rcx, [rsp + 0x50]
call fcn.10000ea78
test eax, eax
je 0x10000e98e
cmp dword [rsp + 0x30], 0
jne 0x10000ea14
xor edi, edi
and qword [rsp + 0x40], rdi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, ebx
xor r8d, r8d
lea rdx, str.SystemSetup
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10000ea12
and dword [rsp + 0x34], edi
mov dword [rsp + 0x38], 4
and dword [rsp + 0x30], edi
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, str.Upgrade
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1000215a7
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x10000ea14
xor ebx, ebx
cmp dword [0x100070c9c], 0
je 0x10000ea42
mov al, byte [0x100070ca0]
cmp al, 4
jb 0x1000215be
movabs rax, 0x8000000000000200
test qword [0x100070c88], rax
jne 0x1000215cb
lea rcx, [rsp + 0x50]
call fcn.10000a430
mov eax, ebx
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.100001250
mov rbx, qword [rsp + 0x130]
add rsp, 0x120
pop rdi
ret
lea ecx, [rbx + 5]
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10000e98e
cmp dword [rsp + 0x30], 4
jne 0x10000ea03
cmp dword [rsp + 0x34], ebx
cmove edi, ebx
jmp 0x10000ea03
test al, al
je 0x10000ea2b
jmp 0x10000ea42
mov rdx, qword [0x100070c90]
mov rcx, rdx
and rcx, rax
cmp rcx, rdx
jne 0x10000ea42
mov r8d, ebx
lea rdx, [0x100056408]
mov rcx, qword [0x100070cf8]
call fcn.10004115c
nop
jmp 0x10000ea42

Function at 0x10000ea78
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x40
mov rcx, qword [rcx + 0xb0]
lea rax, [r11 + 8]
mov rbx, r8
mov qword [r11 - 0x20], rax
lea rax, [r11 - 0x18]
lea r9, [r11 + 0x20]
xor r8d, r8d
mov dword [rsp + 0x50], 4
mov qword [r11 - 0x28], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10000eacd
cmp dword [rsp + 0x68], 4
jne 0x10000eacd
mov eax, dword [rsp + 0x30]
mov dword [rbx], eax
mov eax, 1
jmp 0x10000eac7
add rsp, 0x40
pop rbx
ret
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10000eac7
Function at 0x10000eae0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call fcn.10000cd9c
add rsp, 0x28
jmp 0x10000eaf8
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rdi
push r12
sub rsp, 0xb0
and dword [rsp + 0x20], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x100070088], rdi
jne 0x10002a18e
mov eax, dword [0x1000700c0]
cmp eax, 1
je 0x10002a1ad
mov eax, dword [0x1000700c0]
test eax, eax
jne 0x10002a1c4
mov dword [0x1000700c0], 1
lea r12, [0x100055140]
lea rdi, [0x100055128]
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], eax
cmp rdi, r12
jae 0x10000eb9c
test eax, eax
jne 0x10000eb9c
mov rcx, qword [rdi]
test rcx, rcx
je 0x10000eb91
call rcx
mov dword [rsp + 0x30], eax
add rdi, 8
mov qword [rsp + 0x38], rdi
jmp 0x10000eb7a
test eax, eax
jne 0x10002a1ba
mov eax, dword [0x1000700c0]
cmp eax, 1
jne 0x10000ebcc
lea rdx, [0x100055120]
lea rcx, [0x100054fc8]
call 0x100121000
mov dword [0x1000700c0], 2
test esi, esi
jne 0x10000ebd9
xor eax, eax
xchg qword [0x100070088], rax
cmp qword [0x100071e50], 0
jne 0x10002a1d3
mov rax, qword [sym.imp.msvcrt.dll__acmdln]
mov rdi, qword [rax]
mov qword [rsp + 0x28], rdi
mov esi, dword [rsp + 0x20]
cmp byte [rdi], 0x20
jbe 0x10000ec23
cmp byte [rdi], 0x22
je 0x10002a22a
movzx ecx, byte [rdi]
call qword [sym.imp.msvcrt.dll__ismbblead]
test eax, eax
jne 0x10002a23c
inc rdi
mov qword [rsp + 0x28], rdi
jmp 0x10000ebfa
cmp byte [rdi], 0
je 0x10000ec2c
test esi, esi
jne 0x10000ebff
cmp byte [rdi], 0
je 0x10000ec40
cmp byte [rdi], 0x20
ja 0x10000ec40
inc rdi
mov qword [rsp + 0x28], rdi
jmp 0x10000ec2c
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rdi
xor edx, edx
lea rcx, [0x100000000]
call fcn.10000ec80
nop
jmp 0x10002a1fc
cmp rax, rdi
jne 0x10002a19d
mov esi, 1
jmp 0x10000eb3c
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10000eb2b
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x10000eba4
mov eax, 0xff
jmp 0x10002a276
mov dword [0x10007261c], 1
jmp 0x10000eba4
lea rcx, [0x100071e50]
call fcn.100048bac
test eax, eax
je 0x10000ebe7
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x100071e50]
nop
jmp 0x10000ebe7
mov dword [0x100072618], eax
cmp dword [0x1000700a8], 0
jne 0x10002a213
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x10007261c], 0
jne 0x10002a228
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x100072618]
jmp 0x10002a276
xor eax, eax
test esi, esi
sete al
mov esi, eax
mov dword [rsp + 0x20], eax
jmp 0x10000ec08
inc rdi
mov qword [rsp + 0x28], rdi
jmp 0x10000ec19
lea r11, [rsp + 0xb0]
mov rsi, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop r12
ret
Function at 0x10000f548
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x48
lea rax, [r11 + 0x18]
mov r8, rcx
mov r9d, 0x10
mov qword [r11 - 0x18], rax
mov qword [r11 - 0x20], rdx
and qword [r11 - 0x28], 0
lea rdx, str.SoftwareMicrosoftWindows_SearchTracing
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x60], 4
call qword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
add rsp, 0x48
ret

Function at 0x100016da0
Capabilities:
Get common file path
Set environment variable

Disassembly:
sub rsp, 0x258
mov rax, qword [0x1000700c8]
xor rax, rsp
mov qword [rsp + 0x240], rax
cmp byte [0x100070091], 0
je 0x10001ce05
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.100001250
add rsp, 0x258
ret
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x801c
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x100016dc8
lea rdx, [rsp + 0x30]
lea rcx, str.LOCALAPPDATA
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
je 0x1000288c2
mov byte [0x100070091], 1
jmp 0x100016dc6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
movzx eax, ax
or eax, 0x80070000
test r11d, r11d
cmovle eax, r11d
jmp 0x100016dc8

Function at 0x1000344e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
sub rsp, 0x58
cmp byte [0x100072649], 0
jne 0x1000345a6
cmp byte [0x100072648], 0
jne 0x1000345c7
and qword [r11 - 0x18], 0
lea rax, [r11 - 0x18]
lea rdx, str.SoftwareMicrosoftWindows_Search
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [r11 - 0x38], rax
mov byte [0x100072649], 1
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000345a6
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
lea rdx, [0x10005b550]
xor r8d, r8d
mov dword [rsp + 0x30], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100034594
cmp dword [rsp + 0x34], 4
jne 0x100034594
mov byte [0x100072648], 1
cmp dword [rsp + 0x38], eax
ja 0x10003459b
mov byte [0x100072648], 0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [0x100072648], 0
jne 0x1000345c7
mov rcx, qword [0x100070cf8]
lea rdx, [0x1000569c8]
call qword [sym.imp.ADVAPI32.dll_EventEnabled]
test al, al
je 0x1000345ed
mov r9, qword [rsp + 0x60]
lea rax, [rsp + 0x68]
xor r8d, r8d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x40]
or edx, 0xffffffff
xor ecx, ecx
mov qword [rsp + 0x20], rax
call fcn.1000345f8
add rsp, 0x58
ret
Function at 0x1000345f8
Capabilities:
Print debug messages

Disassembly:
push rdi
mov eax, 0x3710
call fcn.10000a5b0
sub rsp, rax
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x3720], rbx
mov rax, qword [0x1000700c8]
xor rax, rsp
mov qword [rsp + 0x3700], rax
mov rax, r9
mov r9, qword [rsp + 0x3740]
mov r9, qword [r9]
mov r8, rax
mov edi, 0xdab
mov rdx, rdi
lea rcx, [rsp + 0x40]
call qword [sym.imp.msvcrt.dll__vsnwprintf]
xor ebx, ebx
cmp eax, ebx
jl 0x10003470a
cdqe
cmp rax, rdi
ja 0x10003470a
cmp rax, rdi
jne 0x100034670
mov word [rsp + 0x1b96], bx
cmp byte [0x100072648], bl
je 0x1000346b6
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r9d, eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r8, str._4d__s_n
mov edx, 0xdac
lea rcx, [rsp + 0x1ba0]
call fcn.10000a254
cmp eax, ebx
jl 0x1000346b6
lea rcx, [rsp + 0x1ba0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [0x100070c9c], ebx
je 0x10003470a
mov al, byte [0x100070ca0]
cmp al, 4
jae 0x1000346cc
cmp al, bl
jne 0x10003470a
movabs rdx, 0x8000000000000004
test qword [0x100070c88], rdx
je 0x10003470a
mov rcx, qword [0x100070c90]
mov rax, rcx
and rax, rdx
cmp rax, rcx
jne 0x10003470a
lea r8, [rsp + 0x40]
lea rdx, [0x1000569c8]
mov rcx, qword [0x100070cf8]
call fcn.10002afb8
nop
mov rcx, qword [rsp + 0x3700]
xor rcx, rsp
call fcn.100001250
mov rbx, qword [rsp + 0x3720]
add rsp, 0x3710
pop rdi
ret

Function at 0x10003b514
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0x90
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rbx, r8
mov esi, edx
mov rdi, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor r12d, r12d
cmp qword [rdi + 0xb0], r12
jne 0x10003b55d
lea ecx, [r12 + 6]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10003b639
mov eax, dword [rbx + 0x10]
mov dword [rsp + 0xb0], eax
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0xb0]
mov r8, qword [rbx + 8]
mov edx, esi
mov rcx, qword [rdi + 0xb0]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0xea
jne 0x10003b5d0
mov eax, dword [rsp + 0xb0]
add eax, eax
mov dword [rsp + 0xb0], eax
mov edx, dword [rsp + 0xb0]
cmp edx, dword [rbx + 0x10]
jbe 0x10003b5ca
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
nop
jmp 0x10003b567
cmp eax, r12d
je 0x10003b5e1
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10003b639
mov eax, dword [rbx + 0x10]
dec eax
mov ecx, dword [rsp + 0xb0]
cmp ecx, eax
jbe 0x10003b625
mov edx, 0x800700ce
lea rcx, [rsp + 0x70]
call fcn.10002a990
lea rcx, [rsp + 0x50]
mov rdx, rax
mov r8d, 0x20
call sub.msvcrt.dll_memcpy
lea rdx, [0x10005db70]
lea rcx, [rsp + 0x50]
call sub.msvcrt.dll__CxxThrowException
int3
mov dword [rbx + 0x14], ecx
mov rdx, rcx
mov rcx, qword [rbx + 8]
mov word [rcx + rdx*2], r12w
mov eax, 1
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop r12
pop rdi
pop rsi
ret
Function at 0x10003ced4
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x40
lea rax, [rsp + 0x30]
mov rdi, rdx
mov rdx, rcx
xor ebx, ebx
xor r8d, r8d
mov rcx, 0xffffffff80000002
lea r9d, [rbx + 2]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x10003cf2e
mov rcx, qword [rsp + 0x30]
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea edx, [rbx + 1]
movzx ecx, bl
cmp eax, ebx
cmove ecx, edx
mov bl, cl
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret