joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100064d00
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 [0x100083138]
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.100068f30
cmp eax, ebx
jne 0x100064eea
lea r8, [0x100006320]
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 0x100064d84
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rcx, [rsp + 0x60]
call fcn.1000690dc
mov eax, ebx
jmp 0x100064eea
lea rcx, [rsp + 0x60]
call fcn.1000690dc
nop
or edx, 0xffffffff
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, ebx
je 0x100064db7
cmp eax, 0x80
je 0x100064db7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [rsp + 0x40], eax
jmp 0x100064ec6
mov esi, 1
mov dword [rsp + 0x48], esi
cmp dword [0x10008451c], ebx
je 0x100064dd3
mov edi, ebx
mov dword [rsp + 0x40], ebx
jmp 0x100064ec6
mov edx, 0x104
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, ebx
jne 0x100064df3
mov qword [rsp + 0x50], rbx
mov eax, esi
jmp 0x100064e00
lea rcx, [rsp + 0x90]
call fcn.100064c00
cmp eax, ebx
je 0x100064e12
mov edi, 0x6e
mov dword [rsp + 0x40], edi
jmp 0x100064ec6
xor edx, edx
lea r13, [0x1000840a0]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, ebx
jne 0x100064e39
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x100064ec6
mov edi, ebx
mov dword [rsp + 0x40], ebx
mov dword [0x10008451c], esi
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
bt eax, 0xb
jb 0x100064ec6
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 0x100064ec6
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 0x100064edf
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp eax, ebx
jne 0x100064edf
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.10006bd80
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 0x1000651e8
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.100020428
nop
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100065229
xor al, al
jmp 0x10006522e
shr eax, 4
and al, 1
test al, al
sete bl
lea rcx, [rsp + 0x60]
call fcn.10002006c
test bl, bl
je 0x100065248
mov eax, 2
jmp 0x1000652b5
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 0x100065287
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0xb7
jmp 0x1000652b5
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.100020428
nop
lea rcx, [rsp + 0x60]
call fcn.1000332a0
mov bl, al
lea rcx, [rsp + 0x60]
call fcn.10002006c
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 0x100065308
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.100020428
nop
lea rcx, [rsp + 0x50]
call fcn.100032d8c
test al, al
sete bl
lea rcx, [rsp + 0x50]
call fcn.10002006c
test bl, bl
je 0x10006535c
mov eax, 0x52
jmp 0x100065433
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 0x1000653de
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.100020428
nop
lea rcx, [rsp + 0x50]
call fcn.1000332a0
nop
lea rcx, [rsp + 0x50]
call fcn.10002006c
mov eax, 0x52
jmp 0x100065433
cmp dword [rsp + 0x80], 1
jne 0x100065423
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, [0x100006408]
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 0x100065488
Capabilities:
Delete registry key

Disassembly:
push rbx
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbx, rdx
test rcx, rcx
je 0x1000654c2
mov rdx, rcx
lea rcx, [rsp + 0x40]
call fcn.100020428
nop
lea rcx, [rsp + 0x40]
call fcn.1000332a0
nop
lea rcx, [rsp + 0x40]
call fcn.10002006c
test rbx, rbx
je 0x1000654d7
mov rdx, rbx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
add rsp, 0x30
pop rbx
ret
Function at 0x1000656d0
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 0x100065749
add rcx, 0x10
mov edx, 0x20019
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenClassRegKey]
mov qword [rdi + 0x20], rax
cmp rax, 0xffffffffffffffff
jne 0x100065749
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.10002006c
xor eax, eax
jmp 0x10006583c
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 0x100065794
cmp eax, 2
je 0x10006578a
mov ecx, 0x65b
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
jmp 0x100065832
mov ebx, 1
jmp 0x100065832
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 0x1000657bb
mov ecx, 0x65b
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
jmp 0x100065832
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 0x100065805
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 0x100065832
mov rdx, rsi
mov rcx, r12
call fcn.10003cc14
mov rcx, rsi
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
cmp qword [r12 + 0x10], rbx
jne 0x10006582d
mov ecx, 0x65b
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
jmp 0x100065832
mov ebx, 1
mov rcx, rbp
call fcn.10002006c
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x100065870
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 0x1000658ae
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rdi + 0x20], rbx
cmp qword [rdi + 0x20], rbx
jne 0x1000658e2
lea rcx, [rdi + 0x10]
mov edx, 0x20006
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenClassRegKey]
mov qword [rdi + 0x20], rax
cmp rax, 0xffffffffffffffff
jne 0x1000658e2
mov qword [rdi + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
jmp 0x10006595c
mov ebp, ebx
cmp qword [r12 + 0x10], rbx
jne 0x1000658fc
mov rdx, qword [rsi]
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ebp, eax
jmp 0x100065944
mov dword [rsp + 0x60], ebx
lea rdx, [rsp + 0x60]
mov rcx, r12
call fcn.100035004
mov r12, rax
cmp rax, rbx
je 0x100065944
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 0x100065957
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rdi + 0x20], rbx
cmp ebp, ebx
sete bl
mov rcx, rsi
call fcn.10002006c
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 0x100065f50
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
lea rcx, [0x100015058]
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
mov qword [rdi + 0x18], rax
jne 0x100065f93
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x100015070]
mov ecx, 3
mov ebx, eax
call fcn.100054fd8
jmp 0x10006603a
lea rdx, [0x1000150a8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [rdi + 0x30], rax
je 0x100066032
mov rcx, qword [rdi + 0x18]
lea rdx, [0x1000150c0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [rdi + 0x20], rax
je 0x100066032
mov rcx, qword [rdi + 0x18]
lea rdx, [0x1000150d8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [rdi + 0x28], rax
je 0x100066032
mov rcx, qword [rdi + 0x18]
lea rdx, [0x1000150f0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [rdi + 0x38], rax
je 0x100066032
mov rcx, qword [rdi + 0x18]
lea rdx, [0x100015100]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [rdi + 0x40], rax
je 0x100066032
mov rcx, qword [rdi + 0x18]
lea rdx, [0x100015118]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [rdi + 0x48], rax
jne 0x10006604f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
je 0x10006604f
lea rdx, [0x100015120]
mov ecx, 3
call fcn.100054fd8
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x100069408
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], 0x1388
and dword [rax - 0x28], 0
lea r8d, [r9 - 2]
mov edx, 0x80000000
call fcn.10006937c
test eax, eax
mov ebx, eax
jne 0x100069454
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 0x10006946c
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]
test rax, rax
mov qword [rdi], rax
je 0x1000694de
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]
test rax, rax
mov qword [rsi], rax
je 0x1000694c7
xor eax, eax
jmp 0x1000694e8
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 0x1000694e6
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 0x10006967c
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
test r8, r8
mov rsi, rdx
mov rdi, rcx
mov ebx, 1
je 0x1000696a6
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ebx, eax
test rsi, rsi
je 0x1000696c5
test ebx, ebx
je 0x1000696c3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1000696c3
mov ebx, 1
jmp 0x1000696c5
xor ebx, ebx
cmp rdi, 0xffffffffffffffff
je 0x1000696d4
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 0x1000696ec
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
sub rsp, 0x250
mov rax, qword [0x100083138]
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 0x10006985f
test eax, eax
jne 0x100069743
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100069864
mov rax, qword [rsp + 0x20]
test rax, rax
je 0x10006985f
lea rcx, [rsp + 0x30]
cmp rax, rcx
je 0x10006985f
and word [rax], 0
movzx ecx, word [rsp + 0x30]
cmp cx, 0x41
jb 0x100069774
cmp cx, 0x5a
jbe 0x10006977d
lea eax, [rcx - 0x61]
cmp ax, 0x19
ja 0x100069798
cmp word [rsp + 0x32], 0x3a
jne 0x100069798
cmp word [rsp + 0x34], 0x5c
jne 0x10006985f
lea rsi, [rsp + 0x34]
jmp 0x10006979d
mov rsi, qword [rsp + 0x20]
cmp cx, 0x5c
jne 0x1000697d9
cmp word [rsp + 0x32], cx
jne 0x1000697d9
movzx edx, cx
lea rcx, [rsp + 0x34]
call sub.msvcrt.dll_wcschr
test rax, rax
je 0x10006985f
lea rcx, [rax + 2]
mov dx, 0x5c
call sub.msvcrt.dll_wcschr
test rax, rax
mov rsi, rax
je 0x10006985f
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1000697f8
and al, 0x10
neg al
sbb eax, eax
not eax
and eax, 0x10b
jmp 0x100069864
mov rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_CharPrevW]
cmp rax, rsi
mov rdi, rax
je 0x10006985f
cmp word [rax], 0x5c
jne 0x10006985f
cmp rax, rsi
jbe 0x10006985f
and word [rdi], 0
lea rcx, [rsp + 0x30]
mov dx, 0x5c
call sub.msvcrt.dll_wcsrchr
test rax, rax
mov rbp, rax
je 0x10006985f
movzx ebx, word [rax + 2]
and word [rax + 2], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov word [rbp + 2], bx
cmp eax, 0xffffffff
jne 0x10006988d
cmp rbp, rsi
mov rdi, rbp
ja 0x10006981b
cmp rdi, rsi
ja 0x1000698b4
mov eax, 0x7b
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.10006bd80
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
test al, 0x10
jne 0x10006985a
mov eax, 0x10b
jmp 0x100069864
cmp word [rdi + 2], 0
je 0x1000698ca
mov rcx, rdi
mov word [rdi], 0x5c
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]
test eax, eax
jne 0x100069898
jmp 0x100069738
xor eax, eax
jmp 0x100069864
Function at 0x10006ae98
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x40
and qword [r11 + 0x20], 0
and qword [r11 - 0x18], 0
lea rax, [r11 + 0x20]
lea rdx, [0x100015440]
mov r9d, 1
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [r11 - 0x28], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x10006aef9
lea r8, [rsp + 0x50]
lea rdx, [0x1000154a0]
call fcn.10006b278
mov rcx, qword [rsp + 0x68]
test eax, eax
jne 0x10006aef9
mov edx, dword [rsp + 0x50]
jmp 0x10006aefb
xor edx, edx
mov eax, edx
movzx r8d, dl
shr edx, 8
and eax, 0xffff0000
test r8d, r8d
mov dword [0x100084828], eax
mov dword [0x100084810], eax
movzx eax, dl
mov edx, 5
jne 0x10006af27
mov r8d, edx
jmp 0x10006af2b
shr r8d, 4
test eax, eax
jne 0x10006af33
mov eax, edx
jmp 0x10006af36
shr eax, 4
cmp r8d, 7
mov edx, 6
cmova r8d, edx
cmp eax, 7
cmova eax, edx
test rcx, rcx
mov dword [0x100084820], r8d
mov dword [0x100084808], eax
je 0x10006af7b
lea r8, [rsp + 0x50]
lea rdx, [0x1000154b8]
call fcn.10006b278
mov rcx, qword [rsp + 0x68]
test eax, eax
jne 0x10006af7b
mov eax, dword [rsp + 0x50]
jmp 0x10006af7e
or eax, 0xffffffff
test rcx, rcx
mov dword [0x100084824], eax
mov dword [0x10008480c], eax
je 0x10006afba
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x30]
lea rdx, [0x1000154c8]
mov qword [rsp + 0x20], rax
call fcn.10006b190
test eax, eax
jne 0x10006afba
mov rbx, qword [rsp + 0x30]
jmp 0x10006afbc
xor ebx, ebx
and qword [0x100084830], 0
and qword [0x100084818], 0
test rbx, rbx
je 0x10006b020
cmp word [rbx], 0
je 0x10006b00e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
lea rdx, [rbx + rcx*2]
mov rcx, rbx
call qword [sym.imp.USER32.dll_CharPrevW]
cmp word [rax], 0x5c
je 0x10006b02f
cmp word [rax], 0x2f
je 0x10006b02f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10006b00e
test al, 0x10
jne 0x10006b02f
mov rcx, qword [0x1000847e8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x1000847d8]
call fcn.100069a20
mov rbx, rax
test rbx, rbx
je 0x10006b063
and qword [0x100084830], 0
and qword [0x100084818], 0
mov edx, 1
mov rcx, rbx
call fcn.10006b0e0
mov rcx, qword [0x1000847e8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x10006b073
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add rsp, 0x40
pop rbx
ret
Function at 0x10006b190
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r12
sub rsp, 0x40
and dword [rsp + 0x30], 0
lea rax, [r11 - 0x18]
mov rbx, r8
mov qword [r11 - 0x20], rax
and qword [r11 - 0x28], 0
xor r8d, r8d
mov rdi, r9
mov rbp, rdx
mov r12, rcx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rsi, qword [rsp + 0x70]
mov r8d, dword [rsp + 0x30]
test eax, eax
mov dword [rsi], r8d
jne 0x10006b254
test r8d, r8d
jne 0x10006b1ec
and qword [rbx], 0
jmp 0x10006b254
mov rcx, qword [0x1000847e8]
add r8d, 4
xor edx, edx
mov dword [rsp + 0x30], r8d
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov qword [rbx], rax
jne 0x10006b213
mov eax, 8
jmp 0x10006b254
mov r9, rdi
xor r8d, r8d
mov rdx, rbp
mov rcx, r12
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov edi, eax
je 0x10006b249
mov r8, qword [rbx]
mov rcx, qword [0x1000847e8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10006b252
mov eax, dword [rsi]
add rax, qword [rbx]
xor ecx, ecx
mov dword [rax], ecx
mov eax, edi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r12
ret

Function at 0x10006b8ac
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x100083138]
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 0x10006b93f
cmp dword [rsp + 0x24], 5
jb 0x10006b959
jmp 0x10006b955
cmp dword [rsp + 0x30], esi
jne 0x10006b959
cmp dword [rsp + 0x24], 4
ja 0x10006b955
jne 0x10006b959
cmp dword [rsp + 0x28], 0
jbe 0x10006b959
mov byte [rbx + 0x18], sil
lea rax, [0x100001d38]
lea rcx, [rbx + 0x28]
mov dword [rbx + 0x1c], 0x800
mov qword [rbx + 0x20], rax
call fcn.10006b6d8
movzx ecx, byte [0x1000849d8]
test eax, eax
mov rax, rbx
cmovs ecx, esi
mov byte [0x1000849d8], cl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.10006bd80
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x10006ba04
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rdi
mov qword [rsp + 0x10], r12
push r13
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 r12d, r12d
xor eax, eax
lock cmpxchg qword [0x100084ad0], rdi
je 0x10006ba5f
cmp rax, rdi
jne 0x10006ba52
mov r12d, 1
jmp 0x10006ba5f
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10006ba38
mov eax, dword [0x100084ac8]
cmp eax, 1
jne 0x10006ba74
lea ecx, [rax + 0x1e]
call fcn.100172000
jmp 0x10006bad9
mov eax, dword [0x100084ac8]
test eax, eax
jne 0x10006bacf
mov dword [0x100084ac8], 1
lea r13, [0x100001ca0]
lea rdi, [0x100001c88]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x24], eax
cmp rdi, r13
jae 0x10006bac1
test eax, eax
jne 0x10006bac1
mov rcx, qword [rdi]
test rcx, rcx
je 0x10006bab6
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x10006ba9f
test eax, eax
je 0x10006bad9
mov eax, 0xff
jmp 0x10006bc26
mov dword [0x100083a4c], 1
mov eax, dword [0x100084ac8]
cmp eax, 1
jne 0x10006bb01
lea rdx, [0x100001c80]
lea rcx, [0x100001b88]
call sub.msvcrt.dll__initterm
mov dword [0x100084ac8], 2
test r12d, r12d
jne 0x10006bb0f
xor eax, eax
xchg qword [0x100084ad0], rax
cmp qword [0x100084ae8], 0
je 0x10006bb38
lea rcx, [0x100084ae8]
call fcn.10006c530
test eax, eax
je 0x10006bb38
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x100084ae8]
mov rcx, qword [sym.imp.msvcrt.dll__wcmdln]
cmp qword [rcx], 0
jne 0x10006bb4f
mov eax, 0xff
jmp 0x10006bc26
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
ja 0x10006bbd8
cmp word [rcx], 0
je 0x10006bb6b
test edx, edx
jne 0x10006bbd8
cmp word [rcx], 0
je 0x10006bb82
cmp word [rcx], 0x20
ja 0x10006bb82
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x10006bb6b
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x100000000]
call fcn.100019410
mov dword [0x100083a48], eax
cmp dword [0x100083a2c], 0
jne 0x10006bbc1
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x100083a4c], 0
jne 0x10006bbd6
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x100083a48]
jmp 0x10006bc26
cmp word [rcx], 0x22
jne 0x10006bbeb
xor eax, eax
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x10006bb5b
lea r11, [rsp + 0xb0]
mov rdi, qword [r11 + 0x10]
mov r12, qword [r11 + 0x18]
mov rsp, r11
pop r13
ret
sub rsp, 0x28
call fcn.10006c674
add rsp, 0x28
jmp 0x10006ba04