joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004cd94
Capabilities:
Delete registry value
Set registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
and qword [rsp + 0x60], 0
and qword [rsp + 0x68], 0
xor edi, edi
and dword [rsp + 0x50], edi
mov rsi, rdx
mov rbx, rcx
cmp qword [rcx + 0x20], rdi
jne 0x10004cdfa
add rcx, 0x10
mov edx, 0x20019
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenClassRegKey]
mov qword [rbx + 0x20], rax
cmp rax, 0xffffffffffffffff
jne 0x10004cdfa
and qword [rbx + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10004ceee
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x10004ce0d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rbx + 0x20], rdi
lea rax, [rsp + 0x60]
lea rdx, [0x100012470]
mov r9d, 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10004ceab
lea rcx, [rbx + 0x10]
lea rdx, [rsp + 0x68]
call qword [sym.imp.ole32.dll_StringFromCLSID]
test eax, eax
jne 0x10004ceab
cmp qword [rsi + 0x10], rdi
je 0x10004ce92
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.100031ad4
mov rdi, rax
test rax, rax
je 0x10004ceab
mov eax, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
add eax, eax
mov r9d, 7
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jmp 0x10004cea9
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x10004ceba
cmp eax, 2
je 0x10004ceba
mov ecx, 0x65b
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x10004cebf
mov ebx, 1
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x10004cecf
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rdi, rdi
je 0x10004cedc
mov rcx, rdi
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x10004ceec
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, ebx
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x10004d640
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x70
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov ebp, r8d
mov rdi, rdx
mov rsi, rcx
lea rcx, [rax + 0x20]
call fcn.10001e06c
nop
lea rcx, [rsp + 0x98]
call fcn.10001e06c
nop
xor ebx, ebx
mov qword [rsp + 0x50], rbx
cmp rdi, rbx
jne 0x10004d6a9
lea rcx, [rsp + 0x98]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0xa8]
call fcn.10001f3ec
nop
jmp 0x10004d7ce
lea rdx, [0x1000124e0]
lea rcx, [rsp + 0x58]
call fcn.10001e134
nop
lea r8, [rsp + 0xa8]
mov rdx, rsi
lea rcx, [rsp + 0x58]
call fcn.10002f9d0
nop
lea rcx, [rsp + 0x58]
call fcn.10001f3ec
lea rdx, [0x100012410]
lea rcx, [rsp + 0x58]
call fcn.10001e134
nop
lea r8, [rsp + 0x98]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0xa8]
call fcn.10002f9d0
nop
lea rcx, [rsp + 0x58]
call fcn.10001f3ec
mov rdx, qword [rsp + 0x98]
cmp dword [rdx - 8], 1
jle 0x10004d738
mov edx, dword [rdx - 0x10]
lea rcx, [rsp + 0x98]
call fcn.10001e9a0
mov rdx, qword [rsp + 0x98]
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
je 0x10004d773
mov edi, ebx
jmp 0x10004d79f
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rdi
mov r9d, 7
xor r8d, r8d
lea rdx, [0x100010678]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, ebx
cmp eax, ebx
sete dil
mov rcx, qword [rsp + 0x50]
cmp rcx, rbx
je 0x10004d7b0
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rsp + 0x98]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0xa8]
call fcn.10001f3ec
nop
mov ebx, edi
mov rcx, rsi
call fcn.10001f3ec
mov eax, ebx
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
Function at 0x100050f78
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x40
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rdi, rcx
and qword [rsp + 0x70], 0
lea rcx, [rsp + 0x78]
call fcn.10001e06c
nop
lea rcx, [rsp + 0x68]
call fcn.10001e06c
nop
lea rdx, [0x1000124e0]
lea rcx, [rsp + 0x30]
call fcn.10001e134
nop
lea r8, [rsp + 0x78]
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.10002f9d0
nop
lea rcx, [rsp + 0x30]
call fcn.10001f3ec
lea rdx, [0x100012410]
lea rcx, [rsp + 0x30]
call fcn.10001e134
nop
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x78]
call fcn.10002f9d0
nop
lea rcx, [rsp + 0x30]
call fcn.10001f3ec
lea r11, [rsp + 0x70]
mov qword [rsp + 0x20], r11
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
je 0x100051055
cmp eax, 2
je 0x100051051
mov r9, qword [rdi]
mov r8d, eax
lea rdx, [0x1000112b0]
mov ecx, 3
call fcn.100037e18
jmp 0x1000510c3
xor ebx, ebx
jmp 0x1000510c3
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x100010678]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ebx, ebx
lea ebp, [rbx + 1]
cmp eax, 2
cmove ebx, ebp
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x1000510c1
mov rdx, qword [rsp + 0x68]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
test eax, eax
je 0x1000510c1
mov r9, qword [rdi]
mov r8d, eax
lea rdx, [0x100011590]
mov ecx, ebp
call fcn.100037e18
jmp 0x1000510c3
xor ebx, ebx
lea rcx, [rsp + 0x68]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x78]
call fcn.10001f3ec
mov eax, ebx
add rsp, 0x40
pop rdi
pop rbp
pop rbx
ret
Function at 0x1000569dc
Capabilities:
Check mutex on windows
Create directory
Get common file path
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r13
sub rsp, 0x2b0
mov rax, qword [0x100081138]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
xor ebx, ebx
mov edi, ebx
mov esi, ebx
mov dword [rsp + 0x48], ebx
lea rcx, [rsp + 0x60]
call fcn.100057130
cmp eax, ebx
jne 0x100056bc6
lea r8, [0x100002590]
xor edx, edx
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov r12, rax
mov qword [rsp + 0x58], rax
cmp rax, rbx
jne 0x100056a60
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rcx, [rsp + 0x60]
call fcn.1000572dc
mov eax, ebx
jmp 0x100056bc6
lea rcx, [rsp + 0x60]
call fcn.1000572dc
nop
or edx, 0xffffffff
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, ebx
je 0x100056a93
cmp eax, 0x80
je 0x100056a93
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [rsp + 0x40], eax
jmp 0x100056ba2
mov esi, 1
mov dword [rsp + 0x48], esi
cmp dword [0x10008252c], ebx
je 0x100056aaf
mov edi, ebx
mov dword [rsp + 0x40], ebx
jmp 0x100056ba2
mov edx, 0x104
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, ebx
jne 0x100056acf
mov qword [rsp + 0x50], rbx
mov eax, esi
jmp 0x100056adc
lea rcx, [rsp + 0x90]
call fcn.10005690c
cmp eax, ebx
je 0x100056aee
mov edi, 0x6e
mov dword [rsp + 0x40], edi
jmp 0x100056ba2
xor edx, edx
lea r13, [0x1000820a0]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, ebx
jne 0x100056b15
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x100056ba2
mov edi, ebx
mov dword [rsp + 0x40], ebx
mov dword [0x10008252c], esi
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
bt eax, 0xb
jb 0x100056ba2
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, esi
mov edx, 0xc0000000
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x100056ba2
mov word [rsp + 0x44], si
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
mov r9d, 2
lea r8, [rsp + 0x44]
mov edx, 0x9c040
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp esi, ebx
je 0x100056bbb
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp eax, ebx
jne 0x100056bbb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.10005cbe0
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r12, qword [r11 + 0x28]
mov rsp, r11
pop r13
ret
Function at 0x100056dd4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov rsi, rdx
mov rdi, rcx
mov rdx, rcx
lea rcx, [rsp + 0x60]
call fcn.10001e134
nop
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100056e15
xor al, al
jmp 0x100056e1a
shr eax, 4
and al, 1
test al, al
sete bl
lea rcx, [rsp + 0x60]
call fcn.10001f3ec
test bl, bl
je 0x100056e34
mov eax, 2
jmp 0x100056ea1
and qword [rsp + 0x68], 0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, rsi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100056e73
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0xb7
jmp 0x100056ea1
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.10001e134
nop
lea rcx, [rsp + 0x60]
call fcn.100030000
mov bl, al
lea rcx, [rsp + 0x60]
call fcn.10001f3ec
neg bl
sbb eax, eax
and eax, 0xfffffff5
add eax, 0xd
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x100056eb8
Capabilities:
Set registry value

Disassembly:
push rdi
sub rsp, 0x60
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rsi
mov rsi, rdx
mov rdi, rcx
mov rdx, rcx
lea rcx, [rsp + 0x50]
call fcn.10001e134
nop
lea rcx, [rsp + 0x50]
call fcn.10002fbf4
test al, al
sete bl
lea rcx, [rsp + 0x50]
call fcn.10001f3ec
test bl, bl
je 0x100056f0c
mov eax, 0x52
jmp 0x100056fe3
and dword [rsp + 0x80], 0
and qword [rsp + 0x88], 0
lea rax, [rsp + 0x80]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x88]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2001f
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x100056f8e
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.10001e134
nop
lea rcx, [rsp + 0x50]
call fcn.100030000
nop
lea rcx, [rsp + 0x50]
call fcn.10001f3ec
mov eax, 0x52
jmp 0x100056fe3
cmp dword [rsp + 0x80], 1
jne 0x100056fd3
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov dword [rsp + 0x28], 8
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
lea rdx, [0x100002678]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret

Function at 0x100056ffc
Capabilities:
Delete registry key

Disassembly:
push rbx
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbx, rdx
test rcx, rcx
je 0x100057036
mov rdx, rcx
lea rcx, [rsp + 0x40]
call fcn.10001e134
nop
lea rcx, [rsp + 0x40]
call fcn.100030000
nop
lea rcx, [rsp + 0x40]
call fcn.10001f3ec
test rbx, rbx
je 0x10005704b
mov rdx, rbx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
add rsp, 0x30
pop rbx
ret
Function at 0x10005740c
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov r12, r8
mov rbp, rdx
mov rdi, rcx
xor ebx, ebx
cmp qword [rcx + 0x20], rbx
jne 0x100057485
add rcx, 0x10
mov edx, 0x20019
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenClassRegKey]
mov qword [rdi + 0x20], rax
cmp rax, 0xffffffffffffffff
jne 0x100057485
mov qword [rdi + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
mov rcx, rbp
call fcn.10001f3ec
xor eax, eax
jmp 0x100057578
mov dword [rsp + 0x70], ebx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbp]
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
je 0x1000574d0
cmp eax, 2
je 0x1000574c6
mov ecx, 0x65b
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
jmp 0x10005756e
mov ebx, 1
jmp 0x10005756e
mov eax, dword [rsp + 0x70]
add eax, 4
mov r13d, eax
mov ecx, eax
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new___unsigned_long_long_unsigned___int64__
mov rsi, rax
cmp rax, rbx
jne 0x1000574f7
mov ecx, 0x65b
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
jmp 0x10005756e
mov r8, r13
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbp]
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
je 0x100057541
mov rcx, rsi
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov ecx, 0x65b
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
jmp 0x10005756e
mov rdx, rsi
mov rcx, r12
call fcn.10003de0c
mov rcx, rsi
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
cmp qword [r12 + 0x10], rbx
jne 0x100057569
mov ecx, 0x65b
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
jmp 0x10005756e
mov ebx, 1
mov rcx, rbp
call fcn.10001f3ec
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x100057594
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov qword [rsp + 0x10], rdx
push rsi
push rdi
push r12
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rbp
mov r12, r8
mov rsi, rdx
mov rdi, rcx
mov rcx, qword [rcx + 0x20]
xor ebx, ebx
cmp rcx, rbx
je 0x1000575d2
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rdi + 0x20], rbx
cmp qword [rdi + 0x20], rbx
jne 0x100057606
lea rcx, [rdi + 0x10]
mov edx, 0x20006
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenClassRegKey]
mov qword [rdi + 0x20], rax
cmp rax, 0xffffffffffffffff
jne 0x100057606
mov qword [rdi + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
jmp 0x100057680
mov ebp, ebx
cmp qword [r12 + 0x10], rbx
jne 0x100057620
mov rdx, qword [rsi]
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ebp, eax
jmp 0x100057668
mov dword [rsp + 0x60], ebx
lea rdx, [rsp + 0x60]
mov rcx, r12
call fcn.100031ad4
mov r12, rax
cmp rax, rbx
je 0x100057668
mov eax, dword [rsp + 0x60]
add eax, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r12
mov r9d, 7
xor r8d, r8d
mov rdx, qword [rsi]
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebp, eax
mov rcx, r12
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rdi + 0x20]
cmp rcx, rbx
je 0x10005767b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rdi + 0x20], rbx
cmp ebp, ebx
sete bl
mov rcx, rsi
call fcn.10001f3ec
mov eax, ebx
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
Function at 0x100057c5c
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
lea rcx, [0x100014bb8]
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rdi + 0x18], rax
test rax, rax
jne 0x100057c9f
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x100014bd0]
mov ecx, 3
mov ebx, eax
call fcn.100037e18
jmp 0x100057d46
lea rdx, [0x100014c08]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x30], rax
test rax, rax
je 0x100057d3e
mov rcx, qword [rdi + 0x18]
lea rdx, [0x100014c20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x100057d3e
mov rcx, qword [rdi + 0x18]
lea rdx, [0x100014c38]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x28], rax
test rax, rax
je 0x100057d3e
mov rcx, qword [rdi + 0x18]
lea rdx, [0x100014c50]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x38], rax
test rax, rax
je 0x100057d3e
mov rcx, qword [rdi + 0x18]
lea rdx, [0x100014c60]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x40], rax
test rax, rax
je 0x100057d3e
mov rcx, qword [rdi + 0x18]
lea rdx, [0x100014c78]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x48], rax
test rax, rax
jne 0x100057d5b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
je 0x100057d5b
lea rdx, [0x100014c80]
mov ecx, 3
call fcn.100037e18
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x10005a8a8
Capabilities:
Get file size

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x40
mov qword [rax - 0x18], r8
mov rsi, r9
mov r9d, 3
mov rdi, r8
mov dword [rax - 0x20], 0x7530
and dword [rax - 0x28], 0
lea r8d, [r9 - 2]
mov edx, 0x80000000
call fcn.10005a81c
mov ebx, eax
test eax, eax
jne 0x10005a8f4
mov rcx, qword [rdi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsi], eax
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x10005a90c
Capabilities:
Read file via mapping

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x30
and qword [rax - 0x10], 0
mov ebx, edx
mov rsi, r9
xor r9d, r9d
mov rdi, r8
xor edx, edx
lea r8d, [r9 + 2]
mov dword [rax - 0x18], ebx
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rdi], rax
test rax, rax
je 0x10005a97e
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 4]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsi], rax
test rax, rax
je 0x10005a967
xor eax, eax
jmp 0x10005a988
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rdi]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rdi], 0
jmp 0x10005a986
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x10005ab1c
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
mov ebx, 1
test r8, r8
je 0x10005ab46
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ebx, eax
test rsi, rsi
je 0x10005ab65
test ebx, ebx
je 0x10005ab63
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x10005ab63
mov ebx, 1
jmp 0x10005ab65
xor ebx, ebx
cmp rdi, 0xffffffffffffffff
je 0x10005ab74
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x10005ab8c
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x250
mov rax, qword [0x100081138]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov ebx, 0x104
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x30]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp eax, ebx
jae 0x10005ad13
xor r12d, r12d
cmp eax, r12d
jne 0x10005abeb
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10005ad18
mov rax, qword [rsp + 0x20]
cmp rax, r12
je 0x10005ad13
lea rcx, [rsp + 0x30]
cmp rax, rcx
je 0x10005ad13
mov word [rax], r12w
movzx ecx, word [rsp + 0x30]
mov r13d, 0x5c
cmp cx, 0x41
jb 0x10005ac22
cmp cx, 0x5a
jbe 0x10005ac2b
lea eax, [rcx - 0x61]
cmp ax, 0x19
ja 0x10005ac46
cmp word [rsp + 0x32], 0x3a
jne 0x10005ac46
cmp word [rsp + 0x34], r13w
jne 0x10005ad13
lea rsi, [rsp + 0x34]
jmp 0x10005ac4b
mov rsi, qword [rsp + 0x20]
cmp cx, r13w
jne 0x10005ac87
cmp word [rsp + 0x32], r13w
jne 0x10005ac87
lea rcx, [rsp + 0x34]
mov edx, r13d
call sub.msvcrt.dll_wcschr
cmp rax, r12
je 0x10005ad13
lea rcx, [rax + 2]
mov edx, r13d
call sub.msvcrt.dll_wcschr
mov rsi, rax
cmp rax, r12
je 0x10005ad13
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10005aca6
and al, 0x10
neg al
sbb eax, eax
not eax
and eax, 0x10b
jmp 0x10005ad18
mov rdi, qword [rsp + 0x20]
lea rax, [rsp + 0x30]
cmp rdi, rax
jne 0x10005acbc
lea rdi, [rsp + 0x30]
jmp 0x10005acc0
add rdi, 0xfffffffffffffffe
cmp rdi, rsi
je 0x10005ad13
cmp word [rdi], r13w
jne 0x10005ad13
cmp rdi, rsi
jbe 0x10005ad13
lea rcx, [rsp + 0x30]
mov edx, r13d
mov word [rdi], r12w
call sub.msvcrt.dll_wcsrchr
mov rbp, rax
cmp rax, r12
je 0x10005ad13
movzx ebx, word [rax + 2]
lea rcx, [rsp + 0x30]
mov word [rax + 2], r12w
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov word [rbp + 2], bx
cmp eax, 0xffffffff
jne 0x10005ad45
mov rdi, rbp
cmp rbp, rsi
ja 0x10005acd0
cmp rdi, rsi
ja 0x10005ad6b
mov eax, 0x7b
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.10005cbe0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
test al, 0x10
jne 0x10005ad0e
mov eax, 0x10b
jmp 0x10005ad18
cmp word [rdi + 2], r12w
je 0x10005ad82
mov rcx, rdi
mov word [rdi], r13w
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
lea rdi, [rdi + rcx*2]
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, r12d
jne 0x10005ad50
jmp 0x10005abe0
xor eax, eax
jmp 0x10005ad18
Function at 0x10005c734
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x100081138]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call sub.msvcrt.dll_memset
and qword [rbx + 0x50], 0
and dword [rbx + 0x58], 0
and dword [rbx + 0x5c], 0
lea rax, [0x100000000]
mov esi, 0x94
lea rcx, [rsp + 0x20]
mov r8, rsi
xor edx, edx
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rax
mov dword [rbx], 0x60
mov byte [rbx + 0x18], 0
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x30], 2
mov esi, 1
jne 0x10005c7c7
cmp dword [rsp + 0x24], 5
jb 0x10005c7e1
jmp 0x10005c7dd
cmp dword [rsp + 0x30], esi
jne 0x10005c7e1
cmp dword [rsp + 0x24], 4
ja 0x10005c7dd
jne 0x10005c7e1
cmp dword [rsp + 0x28], 0
jbe 0x10005c7e1
mov byte [rbx + 0x18], sil
lea rax, [0x100001d48]
lea rcx, [rbx + 0x28]
mov dword [rbx + 0x1c], 0x800
mov qword [rbx + 0x20], rax
call fcn.10005c590
movzx ecx, byte [0x100082a08]
test eax, eax
mov rax, rbx
cmovs ecx, esi
mov byte [0x100082a08], cl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.10005cbe0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret