joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18002fc20
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov esi, edx
mov ebx, r15d
xor eax, eax
mov rdi, rcx
mov ebp, 1
lock cmpxchg dword [0x180046d00], ebp
je 0x18002fc77
cmp rbx, 0x20
jae 0x18002fc60
xor ecx, ecx
jmp 0x18002fc62
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x180046d00], ebp
jne 0x18002fc56
cmp qword [0x180046d08], r15
je 0x18002fd71
test rdi, rdi
jne 0x18002fc97
mov ecx, esi
call fcn.18002f6f0
mov ebp, eax
jmp 0x18002fd76
mov ecx, dword [0x18004739c]
mov ebx, r15d
test ecx, ecx
je 0x18002fcbf
mov r8, qword [0x180047390]
mov rax, r8
nop
cmp rdi, qword [rax]
je 0x18002fcc9
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x18002fcb0
mov ebp, 4
jmp 0x18002fd76
cmp ebx, 0xffffffff
je 0x18002fcbf
mov eax, ebx
imul rdx, rax, 0x38
movzx eax, byte [rdx + r8 + 0x20]
shr eax, 1
and eax, ebp
cmp eax, esi
je 0x18002fd68
mov r8d, ebp
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.18002f410
mov edx, esi
mov ecx, ebx
call fcn.18002f5c0
mov ebp, eax
cmp qword [rsp + 0x20], r15
je 0x18002fd76
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18002fd52
mov rbx, qword [rsp + 0x20]
mov esi, eax
nop word [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x18002fd48
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rsi, 1
jne 0x18002fd20
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x180046d08]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18002fd76
neg esi
sbb ebp, ebp
add ebp, 6
jmp 0x18002fd76
mov ebp, 2
xchg dword [0x180046d00], r15d
mov rbx, qword [rsp + 0x40]
mov eax, ebp
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x1800327e0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
test edx, edx
je 0x180032822
cmp edx, 1
jne 0x180032850
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor eax, eax
lea r8, [0x180032520]
mov qword [rsp + 0x28], rax
mov r9, rbx
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x30
pop rbx
ret
cmp dword [0x180046e68], 0
je 0x180032850
xor edx, edx
xor ecx, ecx
call fcn.18002fc20
mov rcx, qword [0x180046e60]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
mov qword [0x180046e60], rax
mov dword [0x180046e68], eax
mov eax, 1
add rsp, 0x30
pop rbx
ret
Function at 0x140001350
Capabilities:
Check mutex on windows
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rax
mov edi, edx
mov rbx, rcx
mov edx, 0xffffffff
mov rcx, qword [0x14002b140]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r8, qword [0x14002b170]
xor esi, esi
test r8, r8
je 0x1400013c8
mov rdx, qword [0x14002b180]
mov eax, esi
mov rcx, rdx
nop dword [rax]
cmp dword [rcx], edi
je 0x1400013b2
inc rax
add rcx, 0x18
cmp rax, r8
jb 0x1400013a0
jmp 0x1400013c8
lea rcx, [rax + rax*2]
movups xmm0, xmmword [rdx + rcx*8]
movsd xmm1, qword [rdx + rcx*8 + 0x10]
movups xmmword [rbx], xmm0
movsd qword [rbx + 0x10], xmm1
cmp qword [rbx + 0x10], rsi
jne 0x140001511
mov edx, 0x18
mov qword [rsp + 0x60], r14
xor ecx, ecx
mov r8d, 0x1000
lea r9d, [rdx - 0x14]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea r8, str.B4B615C28CCD059CF8ED1ABF1C71FE03C0354522990AF63ADF3C911E2287A4B906D47D
mov dword [rsp + 0x20], 0x3f005c
mov r14, rax
mov dword [rsp + 0x24], 0x5c003f
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x680050
mov dword [rax], edi
lea rcx, [rsp + 0x20]
mov eax, 0x65
mov dword [rsp + 0x2c], 0x730079
add di, 0x30
mov word [rsp + 0x40], ax
mov word [rsp + 0x42], di
mov dword [rsp + 0x30], 0x630069
mov dword [rsp + 0x34], 0x6c0061
mov dword [rsp + 0x38], 0x720044
mov dword [rsp + 0x3c], 0x760069
mov word [rsp + 0x44], si
call fcn.140002860
xor r8d, r8d
mov qword [r14 + 8], rax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [r14 + 0x10], rax
xor ecx, ecx
mov rax, qword [0x14002b170]
mov r8d, 0x1000
lea r9d, [rcx + 4]
lea rsi, [rax + rax*2]
shl rsi, 3
lea rdx, [rsi + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdx, qword [0x14002b180]
mov rdi, rax
test rdx, rdx
je 0x1400014ca
mov r8, rsi
mov rcx, rax
call fcn.140005c90
mov rcx, qword [0x14002b180]
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
movups xmm0, xmmword [r14]
mov rcx, qword [0x14002b170]
movups xmmword [rdi + rsi], xmm0
movsd xmm1, qword [r14 + 0x10]
lea rax, [rcx + rcx*2]
mov r14, qword [rsp + 0x60]
inc rcx
movsd qword [rdi + rsi + 0x10], xmm1
mov qword [0x14002b180], rdi
movups xmm0, xmmword [rdi + rax*8]
mov qword [0x14002b170], rcx
movsd xmm1, qword [rdi + rax*8 + 0x10]
movups xmmword [rbx], xmm0
movsd qword [rbx + 0x10], xmm1
mov rcx, qword [0x14002b140]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rsi, qword [rsp + 0x70]
mov rax, rbx
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140001890
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
xor ebx, ebx
lea rcx, str.disksdump.sys
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140001901
lea r9, [rsp + 0x50]
mov dword [rsp + 0x50], ebx
mov r8d, 0x93d0
mov qword [rsp + 0x20], rbx
lea rdx, [0x140020a50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140002060
Capabilities:
Check mutex on windows
Contain obfuscated stackstrings
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x70
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov rdi, rdx
mov dword [rsp + 0x28], 0x80
mov ebx, ecx
mov dword [rbp - 0x30], 0x3a0063
mov edx, 0x40000000
mov dword [rbp - 0x2c], 0x70005c
lea r8d, [r9 + 3]
mov dword [rbp - 0x28], 0x6f0072
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x24], 0x720067
mov dword [rbp - 0x20], 0x6d0061
mov dword [rbp - 0x1c], 0x610064
mov dword [rbp - 0x18], 0x610074
mov dword [rbp - 0x14], 0x77005c
mov dword [rbp - 0x10], 0x6f006c
mov dword [rbp - 0xc], 0x2e0067
mov dword [rbp - 8], 0x780074
mov dword [rbp - 4], 0x74
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [0x14002b120], rax
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [0x14002b140], rax
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [0x14002b138], rax
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov rcx, rax
mov qword [0x14002b128], rax
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x14002b120]
cmp rcx, 0xffffffffffffffff
je 0x140002193
mov dword [rbp + 0x10], 0
lea rdx, str.started._r_n
xor eax, eax
nop dword [rax + rax]
cmp word [rdx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140002170
lea r8d, [rax + rax]
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [0x14002b128]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp ebx, 1
je 0x1400021b8
jle 0x1400021bd
mov rax, qword [rdi + 8]
cmp word [rax], 0x62
jne 0x1400021b8
call fcn.140001da0
jmp 0x1400021bd
call fcn.140001990
lea r11, [rsp + 0x70]
xor eax, eax
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140002240
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
mov rbp, rsp
sub rsp, 0x78
mov qword [rsp + 0x70], rbx
lea rdx, [rbp + 0x20]
mov qword [rsp + 0x68], rdi
movsx edi, cl
mov byte [rbp + 0x20], dil
mov dword [rbp + 0x21], 0x3a00
mov byte [rbp + 0x25], 0
call fcn.140002540
xor r15d, r15d
mov dword [rbp + 0x28], 0x5c2e5c5c
mov qword [rsp + 0x30], r15
lea rcx, [rbp + 0x28]
mov dword [rsp + 0x28], r15d
xor r9d, r9d
mov edx, 0xc0000000
mov word [rbp + 0x2d], 0x3a
lea r8d, [r15 + 3]
mov byte [rbp + 0x2c], dil
mov dword [rbp + 0x18], r15d
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400022f5
mov qword [rsp + 0x38], r15
lea rax, [rbp + 0x18]
mov qword [rsp + 0x30], rax
xor r9d, r9d
lea rax, [rbp - 0x38]
mov dword [rsp + 0x28], 0x20
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x560000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbp - 0x28], r15
jle 0x140002388
mov ecx, dword [rbp - 0x30]
mov qword [rsp + 0x60], r14
call fcn.140001910
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x140002383
xor ecx, ecx
mov edx, 0x1f00000
mov r8d, 0x1000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rcx, qword [0x14002b138]
mov edx, 0xffffffff
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rax, qword [rbp - 0x28]
mov r9, rbx
cqo
mov r8d, 0xf800
and edx, 0x1ff
mov rcx, r14
add rdx, rax
sar rdx, 9
call fcn.1400028c0
mov rcx, qword [0x14002b138]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov r14, qword [rsp + 0x60]
mov rcx, qword [0x14002b128]
mov edx, 0xffffffff
mov dword [rbp + 0x32], 0xa000d
mov word [rbp + 0x36], r15w
mov word [rbp + 0x30], di
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x14002b120]
mov rdi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x70]
cmp rcx, 0xffffffffffffffff
je 0x1400023f2
mov rax, r15
mov dword [rbp + 0x18], r15d
cmp word [rbp + 0x30], r15w
je 0x1400023db
nop
inc rax
cmp word [rbp + rax*2 + 0x30], r15w
jne 0x1400023d0
lea r8d, [rax + rax]
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0x18]
lea rdx, [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [0x14002b128]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
add rsp, 0x78
pop r15
pop rbp
ret
Function at 0x140002410
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
lea rax, [rsp + 0x48]
mov dword [rsp + 0x40], 0
mov r9d, 0x20006
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetControlCrashControl
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14000248d
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], 4
lea rdx, str.CrashDumpEnabled
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rsp + 0x30], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x48]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x38
ret

Function at 0x1400024a0
Capabilities:
Modify service

Disassembly:
push rbx
sub rsp, 0x60
xor edx, edx
mov dword [rsp + 0x70], 0x535356
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rbx, rax
test rax, rax
je 0x140002538
mov r8d, 2
mov qword [rsp + 0x78], rdi
lea rdx, [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rdi, rax
test rax, rax
je 0x14000252a
xor eax, eax
mov edx, 0xffffffff
mov qword [rsp + 0x50], rax
mov r9d, edx
mov qword [rsp + 0x48], rax
mov rcx, rdi
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rax
lea r8d, [rax + 4]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x78]
add rsp, 0x60
pop rbx
ret
Function at 0x140002540
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x270
xor ecx, ecx
mov rsi, rdx
mov edx, 0x800
mov r8d, 0x1000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8, rsi
lea rdx, str._s.
mov rcx, rax
mov rbx, rax
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140002697
mov qword [rsp + 0x280], rbp
lea rbp, str.Windows
nop dword [rax]
movzx edx, word [rsp + 0x4c]
movzx ecx, word [rsp + 0x4e]
cmp dx, 0x2e
jne 0x1400025df
test cx, cx
je 0x140002670
cmp dx, dx
jne 0x1400025df
cmp cx, dx
jne 0x1400025df
cmp word [rsp + 0x50], 0
je 0x140002670
xor eax, eax
lea rdx, [rsp + 0x4c]
nop word [rax + rax]
movzx ecx, word [rdx + rax*2]
inc rax
cmp cx, word [rbp + rax*2 - 2]
jne 0x140002606
cmp rax, 8
jne 0x1400025f0
jmp 0x140002670
mov r8, qword [0x14002b130]
lea rax, [rsp + 0x4c]
sub r8, rax
nop word [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x140002634
add rax, 2
test ecx, ecx
jne 0x140002620
test edx, edx
je 0x140002670
lea r9, [rsp + 0x4c]
mov r8, rsi
lea rdx, str._s_s
mov rcx, rbx
call qword [sym.imp.USER32.dll_wsprintfW]
test byte [rsp + 0x20], 0x10
je 0x140002668
mov rdx, rbx
lea rcx, [fcn.1400021e0]
call fcn.140002540
jmp 0x140002670
mov rcx, rbx
call fcn.1400021e0
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400025b0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rbp, qword [rsp + 0x280]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140002a40
Capabilities:
Get disk size

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rbx, rdx
mov r8, rdx
lea rdx, [rsp + 0x70]
mov rdi, rcx
call fcn.140002930
test eax, eax
je 0x140002abf
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
xor r9d, r9d
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], 8
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x7405c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140002abf
mov rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x70]
cqo
idiv rcx
mov qword [rbx], rax
mov eax, 1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x140002d90
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x480
mov rax, qword [0x140020018]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov rdi, rdx
mov ebp, r8d
mov edx, 0x20019
xor ebx, ebx
call fcn.140003170
mov rsi, rax
test rax, rax
je 0x140002e1b
test rdi, rdi
je 0x140002e3e
lea rdx, [rsp + 0x260]
mov rcx, rdi
call fcn.140002f00
test ebp, ebp
jne 0x140002e3e
mov qword [rsp + 0x28], rbx
lea r9, [rsp + 0x44]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
lea rdx, [rsp + 0x260]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140002e10
mov ebx, 1
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140005250
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x480
pop rdi
pop rsi
pop rbp
ret
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rbx
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
xor edx, edx
mov qword [rsp + 0x20], rbx
mov rcx, rsi
mov dword [rsp + 0x40], 0x104
mov ebp, ebx
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x140002e10
nop word [rax + rax]
mov r8d, 4
lea rdx, [rsp + 0x50]
lea rcx, str.Guid
call fcn.140008998
test eax, eax
jne 0x140002ebe
test rdi, rdi
je 0x140002e0b
lea rdx, [rsp + 0x260]
lea rcx, [rsp + 0x50]
call fcn.1400087dc
test eax, eax
jne 0x140002e0b
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rbx
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
inc ebp
mov qword [rsp + 0x20], rbx
mov edx, ebp
mov dword [rsp + 0x40], 0x104
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x140002e80
jmp 0x140002e10

Function at 0x140002fe0
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov edx, 0x2001f
xor edi, edi
call fcn.140003170
mov rbx, rax
test rax, rax
je 0x14000309b
lea rax, [rsp + 0x60]
mov dword [rsp + 0x60], 4
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
lea rax, [rsp + 0x58]
xor r8d, r8d
lea rdx, [0x140015630]
mov qword [rsp + 0x20], rax
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140003045
cmp dword [rsp + 0x68], 4
jne 0x140003045
mov eax, dword [rsp + 0x58]
jmp 0x140003057
lea rdx, [0x140015630]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, edi
inc eax
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x58], eax
lea rdx, [0x140015630]
lea rax, [rsp + 0x58]
mov r9d, 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x140003096
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14000309b
mov edi, 1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test rbx, rbx
je 0x1400030b1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x140003210
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x140020018]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor r8d, r8d
mov rsi, rdx
mov rbx, rcx
xor edi, edi
call fcn.140002d90
test eax, eax
je 0x140003250
lea eax, [rdi + 1]
jmp 0x1400032d6
mov edx, 0x2001f
mov rcx, rbx
call fcn.140003170
mov rbx, rax
test rax, rax
je 0x1400032b6
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140002f00
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x30], 1
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1400032b1
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400032b6
mov edi, 1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test rbx, rbx
je 0x1400032cc
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140005250
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140003300
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x288
mov rax, qword [0x140020018]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rbx, rdx
mov rbp, r9
lea rdx, [rsp + 0x60]
mov esi, r8d
call fcn.140002d00
xor edi, edi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rdi
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], rdi
xor r8d, r8d
mov dword [rsp + 0x28], 0x2001f
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x14000337b
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1400033bc
mov eax, dword [rsp + 0x2d0]
mov r9d, esi
mov rcx, qword [rsp + 0x50]
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov rdx, rbx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
sete dil
mov eax, edi
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140005250
add rsp, 0x288
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140003ca0
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov qword [rsp + 0x50], rbp
xor esi, esi
mov qword [rsp + 0x58], r14
mov r14d, r9d
mov qword [rsp + 0x60], r15
mov r15, rcx
mov ebp, r8d
mov rdi, rdx
test r9d, r9d
je 0x140003cd4
call fcn.140003d50
mov rbx, rax
jmp 0x140003cd9
mov rbx, qword [rsp + 0x20]
test ebp, ebp
jne 0x140003cf9
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140003cf9
and eax, 0xfffffffe
mov rcx, rdi
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov r8d, ebp
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
mov ecx, 1
cmovne esi, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15, qword [rsp + 0x60]
test r14d, r14d
mov r14, qword [rsp + 0x58]
mov edi, eax
mov rbp, qword [rsp + 0x50]
je 0x140003d36
mov rcx, rbx
call fcn.140004990
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret

Function at 0x140003dd0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x20
xor edi, edi
mov qword [rsp + 0x30], rsi
mov esi, edx
mov rbp, rcx
test edx, edx
je 0x140003df9
call fcn.140003d50
mov rbx, rax
jmp 0x140003dfe
mov rbx, qword [rsp + 0x40]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140003e1d
test al, 0x10
jne 0x140003e1d
xor ecx, ecx
mov edi, 1
call qword [sym.imp.KERNEL32.dll_SetLastError]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
mov rsi, qword [rsp + 0x30]
mov ebp, eax
je 0x140003e36
mov rcx, rbx
call fcn.140004990
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x38]
mov eax, edi
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140003e50
Capabilities:
Get file version info

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x40
mov qword [rsp + 0x60], rdi
xor ebp, ebp
mov qword [rsp + 0x70], r12
mov r12, r9
mov qword [rsp + 0x78], r13
mov r13, r8
mov qword [rsp + 0x38], r14
mov rdi, rcx
mov qword [rsp + 0x30], r15
mov r15d, edx
mov ebx, ebp
test edx, edx
je 0x140003e8f
call fcn.140003d50
mov r14, rax
jmp 0x140003e94
mov r14, qword [rsp + 0x28]
mov rcx, rdi
call fcn.140008718
mov rdi, rax
test rax, rax
je 0x140003f0f
lea rdx, [rsp + 0x68]
mov rcx, rax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test eax, eax
je 0x140003f0f
mov ecx, esi
call fcn.140008710
mov rbx, rax
test rax, rax
je 0x140003f0f
mov r9, rax
mov r8d, esi
xor edx, edx
mov rcx, rdi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x140003f0f
lea r9, [rsp + 0x20]
mov rcx, rbx
lea r8, [rsp + 0x28]
lea rdx, [0x1400155b4]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140003f0f
mov rcx, qword [rsp + 0x28]
mov ebp, 1
mov eax, dword [rcx + 8]
mov dword [r13], eax
mov eax, dword [rcx + 0xc]
mov dword [r12], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r13, qword [rsp + 0x78]
test r15d, r15d
mov r15, qword [rsp + 0x30]
mov esi, eax
mov r12, qword [rsp + 0x70]
je 0x140003f33
mov rcx, r14
call fcn.140004990
mov r14, qword [rsp + 0x38]
test rdi, rdi
je 0x140003f45
mov rcx, rdi
call fcn.1400086fc
mov rdi, qword [rsp + 0x60]
test rbx, rbx
je 0x140003f57
mov rcx, rbx
call fcn.1400086fc
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebp
add rsp, 0x40
pop rsi
pop rbp
pop rbx
ret