joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100069718
Capabilities:
Get session user name
Get user security identifier

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x80
and qword [rsp + 0x48], 0
lea rdx, [0x1000062c0]
or r8d, 0xffffffff
mov rbp, rcx
call fcn.10007d57c
mov ebx, eax
test eax, eax
js 0x100069952
lea rcx, [rsp + 0x60]
call fcn.10007d40c
lea rcx, [rsp + 0x50]
mov dword [rsp + 0xb0], 0x7fff
call fcn.10007d40c
mov edx, dword [rsp + 0xb0]
lea rcx, [rsp + 0x50]
call fcn.10007d51c
mov ebx, eax
test eax, eax
jns 0x100069795
lea rcx, [rsp + 0x50]
call fcn.10007d970
lea rcx, [rsp + 0x60]
call fcn.10007d970
jmp 0x100069952
mov rdx, qword [rsp + 0x50]
lea r8, [rsp + 0xb0]
mov ecx, 2
call sub.Secur32.dll_GetUserNameExW
test al, al
jne 0x1000697d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x57
test eax, eax
cmove eax, ecx
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x10006977c
mov ebx, 0x44
mov rdx, rbx
lea ecx, [rbx - 4]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
jne 0x1000697f3
mov ebx, 0x8007000e
jmp 0x100069930
mov rdx, qword [rsp + 0x50]
and dword [rsp + 0xa8], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xa8]
lea r9, [rsp + 0xb8]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
mov r8, rdi
xor ecx, ecx
mov dword [rsp + 0xb8], ebx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x10006985b
cmp eax, 0x7a
je 0x10006985b
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x100069930
lea rcx, [rsp + 0x70]
call fcn.10007d40c
mov edx, dword [rsp + 0xa8]
lea rcx, [rsp + 0x70]
inc edx
call fcn.10007d51c
mov ebx, eax
test eax, eax
js 0x100069926
mov rdx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0xb8]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xa8]
mov r8, rdi
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x70]
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x1000698d7
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x100069926
lea rdx, [rsp + 0x48]
mov rcx, rdi
call sub.ADVAPI32.dll_ConvertSidToStringSidW
test eax, eax
jne 0x1000698fa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x57
test eax, eax
cmove eax, ecx
jmp 0x1000698c7
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x60]
or r8d, 0xffffffff
call fcn.10007d57c
mov ebx, eax
test eax, eax
js 0x100069926
mov rdx, qword [rsp + 0x60]
or r8d, 0xffffffff
mov rcx, rbp
call fcn.10007d7d4
mov ebx, eax
lea rcx, [rsp + 0x70]
call fcn.10007d970
lea rcx, [rsp + 0x50]
call fcn.10007d970
lea rcx, [rsp + 0x60]
call fcn.10007d970
test rdi, rdi
je 0x100069952
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x100069962
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebx
add rsp, 0x80
pop rdi
pop rbp
pop rbx
ret
Function at 0x100069978
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
and dword [rsp + 0x40], 0
and qword [rsp + 0x58], 0
lea rax, [rsp + 0x58]
lea rdx, [0x100025840]
mov r9d, 0x101
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100069a0b
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
lea rdx, [0x10002e660]
xor r8d, r8d
mov dword [rsp + 0x48], 4
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000699fb
cmp dword [rsp + 0x48], 4
je 0x100069a00
and dword [rsp + 0x40], 0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x40]
add rsp, 0x38
ret

Function at 0x100069a1c
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x258
mov rax, qword [0x100086110]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rax, [rsp + 0x30]
test rax, rax
je 0x100069a93
lea rcx, [rsp + 0x30]
mov edx, 1
call fcn.100053eb0
test eax, eax
je 0x100069a93
lea r8, [0x10002e690]
lea rcx, [rsp + 0x30]
mov edx, 0x208
call fcn.100039fb0
lea rcx, [rsp + 0x30]
call fcn.100053454
test eax, eax
je 0x100069a93
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea r8, [rsp + 0x30]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.10007fa70
add rsp, 0x258
ret

Function at 0x100069ab4
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x100086110]
xor rax, rsp
mov qword [rsp + 0x250], rax
lea rax, [rsp + 0x40]
mov ebx, 1
test rax, rax
je 0x100069b8d
lea rcx, [rsp + 0x40]
mov edx, ebx
call fcn.100053eb0
test eax, eax
je 0x100069b8d
and qword [rsp + 0x30], 0
lea r8, [0x10002e690]
lea rcx, [rsp + 0x40]
mov edx, 0x208
call fcn.100039fb0
lea rdx, [rsp + 0x30]
mov r9d, 0x20106
mov qword [rsp + 0x20], rdx
lea rdx, [0x100027ff0]
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov r11, qword [rsp + 0x30]
test r11, r11
je 0x100069b8d
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x40]
repne scasw ax, word [rdi]
lea rax, [rsp + 0x40]
xor ebx, ebx
not rcx
lea r9d, [rbx + 1]
xor r8d, r8d
lea edx, [rcx + rcx]
mov rcx, r11
mov dword [rsp + 0x28], edx
lea rdx, [0x10002e6b0]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.10007fa70
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret
Function at 0x100073170
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
xor ebx, ebx
mov rbp, rdx
lea rax, [r11 - 0x20]
and dword [r8], ebx
and qword [r11 - 0x20], rbx
mov rsi, r8
lea rdx, [0x100030ac0]
xor r8d, r8d
mov r9d, 0x20019
mov rcx, 0xffffffff80000000
mov qword [r11 - 0x38], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100073262
mov rdi, qword [rsp + 0x38]
and dword [rsp + 0x70], ebx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], rbx
lea r9, [rsp + 0x78]
mov rcx, rdi
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x78], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100073224
mov ecx, dword [rsp + 0x70]
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new___unsigned_long_long_unsigned___int64__
mov rbx, rax
test rax, rax
je 0x100073224
lea rax, [rsp + 0x70]
lea r9, [rsp + 0x78]
xor r8d, r8d
mov qword [rsp + 0x28], rax
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [rsp + 0x30]
lea rcx, [rsp + 0x30]
test rcx, rcx
cmovne eax, dword [rsp + 0x78]
test rbx, rbx
je 0x100073262
cmp eax, 1
jne 0x100073262
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__strlwr]
mov rdx, rbp
mov rcx, rax
mov rbx, rax
call qword [sym.imp.msvcrt.dll_strstr]
test rax, rax
je 0x100073262
mov dword [rsi], 1
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x100073272
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rbx, rbx
je 0x10007327f
mov rcx, rbx
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x1000742d4
Capabilities:
Identify system language via api

Disassembly:
push rbx
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx ebx, ax
mov rax, qword [0x100089000]
test rax, rax
jne 0x100074326
lea rcx, [0x100030fe0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x10007431a
lea rdx, [0x100030ff0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x100089000], rax
jmp 0x100074321
mov rax, qword [0x100089000]
test rax, rax
je 0x10007432b
call rax
mov bx, ax
mov ax, bx
add rsp, 0x20
pop rbx
ret

Function at 0x1000747a8
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x40
mov eax, dword [r8]
and dword [rsp + 0x60], 0
mov rbx, r8
mov dword [rsp + 0x68], eax
lea rax, [r11 - 0x18]
lea r9, [r11 + 0x18]
mov qword [r11 - 0x20], rax
lea rax, [r11 + 0x20]
xor r8d, r8d
mov qword [r11 - 0x28], rax
mov dword [rsp + 0x30], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100074800
cmp dword [rsp + 0x60], 4
je 0x1000747f6
cmp dword [rsp + 0x60], 3
jne 0x100074800
mov eax, dword [rsp + 0x68]
mov dword [rbx], eax
mov al, 1
jmp 0x100074802
xor al, al
add rsp, 0x40
pop rbx
ret

Function at 0x100074810
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x40
and dword [rsp + 0x30], 0
and dword [rsp + 0x68], 0
lea rax, [r11 + 0x20]
mov rbx, r8
mov qword [r11 - 0x20], rax
and qword [r11 - 0x28], 0
lea r9, [r11 - 0x18]
xor r8d, r8d
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [rsp + 0x30], 3
mov edx, dword [rsp + 0x68]
jne 0x100074862
mov ecx, 2
test edx, edx
cmove eax, ecx
test eax, eax
jne 0x1000748bb
shr edx, 1
xor ecx, ecx
call qword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov qword [rbx], rax
test rax, rax
je 0x1000748bb
mov ecx, dword [rsp + 0x68]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x34], ecx
lea rcx, [rsp + 0x34]
mov rdx, rdi
mov qword [rsp + 0x28], rcx
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000748a9
mov al, 1
jmp 0x1000748bd
mov rcx, qword [rbx]
test rcx, rcx
je 0x1000748bb
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
and qword [rbx], 0
xor al, al
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x1000754ac
Capabilities:
Get disk information

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x30
mov rdi, rcx
lea rcx, [rax - 0x18]
xor ebp, ebp
mov ebx, ebp
call fcn.10007d40c
lea rdx, [0x100022d08]
mov rcx, rdi
call fcn.100075e14
cmp al, bpl
je 0x100075596
mov r9, qword [rdi + 0x38]
mov rcx, r9
call fcn.10007ea68
cmp al, bpl
je 0x100075506
lea ebx, [rbp + 4]
jmp 0x1000755b0
mov sil, bpl
mov eax, ebp
cmp r9, rbp
je 0x100075517
cmp word [r9], bp
setne al
lea r12, [0x100089010]
cmp al, bpl
je 0x100075543
movzx eax, byte [r9]
cmp ax, word [r9]
jne 0x100075543
movzx esi, byte [r9]
mov rax, rsi
cmp byte [rsi + r12], bpl
jbe 0x100075543
movzx ebx, byte [rax + r12]
cmp ebx, ebp
jne 0x1000755b0
lea rcx, [rsp + 0x20]
mov r8d, 3
mov rdx, r9
call fcn.10007d57c
cmp eax, ebp
jl 0x1000755b0
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ebx, eax
cmp eax, 2
jne 0x10007558c
mov rdx, qword [rsp + 0x20]
mov rcx, rdi
call fcn.100078214
cmp eax, 0x15e
je 0x100075587
cmp eax, 0x20d
jne 0x10007558c
mov ebx, 0x80
movzx eax, sil
mov byte [rax + r12], bl
jmp 0x1000755b0
lea rdx, [0x100022d48]
mov rcx, rdi
call fcn.100075e14
mov ecx, 5
cmp al, bpl
cmovne ebx, ecx
lea rcx, [rsp + 0x20]
call fcn.10007d970
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop r12
ret
Function at 0x100077b34
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rax, qword [0x100086110]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea r12, [rdx + 0x10]
mov r14, r9
mov r13, r8
movzx ecx, word [r12]
mov rsi, rdx
mov rdi, r12
call qword [sym.imp.msvcrt.dll_iswdigit]
xor ebx, ebx
jmp 0x100077b83
add rdi, 2
movzx ecx, word [rdi]
call qword [sym.imp.msvcrt.dll_iswdigit]
cmp eax, ebx
jne 0x100077b76
lea rdx, [0x100030cc0]
mov rcx, rdi
call fcn.10007d3c0
cmp al, bl
je 0x100077c15
movzx ecx, word [rsi]
movabs rax, 0x5c003a003f
mov qword [rsp + 0x20], rax
call qword [sym.imp.msvcrt.dll_towupper]
lea rcx, [rsp + 0x20]
movzx ebp, ax
mov word [rsp + 0x20], ax
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
jne 0x100077bfb
lea esi, [rax + 0x3c]
mov edi, ebx
cmp si, bp
jae 0x100077c03
lea r15d, [rax - 4]
lea rcx, [rsp + 0x20]
mov word [rsp + 0x20], si
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
jne 0x100077bf0
add edi, r15d
add si, r15w
cmp si, bp
jb 0x100077bd8
jmp 0x100077bfe
or edi, 0xffffffff
cmp edi, 0xffffffff
je 0x100077c15
mov rcx, r12
mov dword [r13], edi
call qword [sym.imp.msvcrt.dll__wtoi]
mov dword [r14], eax
jmp 0x100077c1a
mov ebx, 0x80070057
mov eax, ebx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.10007fa70
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x100078214
Capabilities:
Check os version
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x230
lea rcx, [rsp + 0x40]
mov rbx, rdx
call fcn.10007d40c
test rbx, rbx
je 0x100078379
cmp word [rbx], 0x41
jb 0x100078250
cmp word [rbx], 0x5a
ja 0x100078250
movzx edi, word [rbx]
sub edi, 0x40
jmp 0x100078256
movzx edi, word [rbx]
sub edi, 0x60
call qword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
js 0x100078348
lea r8d, [rdi + 0x40]
lea rdx, [0x100031730]
lea rcx, [rsp + 0x40]
call fcn.10007db7c
test eax, eax
js 0x100078342
and qword [rsp + 0x30], 0
mov rcx, qword [rsp + 0x40]
and dword [rsp + 0x28], 0
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x100078348
and qword [rsp + 0x38], 0
lea rax, [rsp + 0x248]
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov edx, 0x70c00
mov rcx, rsi
mov dword [rsp + 0x28], 0x1e0
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x100078335
cmp dword [rsp + 0x248], 0
jbe 0x100078335
mov eax, dword [rsp + 0x58]
cmp eax, 1
je 0x10007832e
jle 0x100078335
cmp eax, 5
jle 0x100078327
cmp eax, 0xa
jle 0x10007832e
cmp eax, 0xb
je 0x100078320
cmp eax, 0xc
jne 0x100078335
lea ebx, [rax - 0xb]
jmp 0x100078337
mov ebx, 2
jmp 0x100078337
mov ebx, 0x15e
jmp 0x100078337
mov ebx, 0x20d
jmp 0x100078337
xor ebx, ebx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100078344
xor ebx, ebx
test ebx, ebx
jne 0x10007837b
lea r8d, [rdi + 0x40]
lea rdx, [0x100031740]
lea rcx, [rsp + 0x40]
call fcn.10007db7c
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
je 0x1000783a3
cmp eax, 3
je 0x10007839c
jbe 0x100078379
cmp eax, 6
jbe 0x1000783a3
xor ebx, ebx
lea rcx, [rsp + 0x40]
call fcn.10007d970
lea r11, [rsp + 0x230]
mov eax, ebx
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov ebx, 1
jmp 0x10007837b
mov ebx, 2
jmp 0x10007837b
Function at 0x10007879c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x50
mov r12, rcx
lea rcx, [rsp + 0x40]
mov rbp, r9
mov rbx, r8
mov rdi, rdx
mov esi, 0xe
call fcn.10007d40c
and dword [rbp], 0
lea rcx, [rsp + 0x40]
mov r8, rbx
mov rdx, rdi
call fcn.10007db7c
test eax, eax
js 0x10007889a
mov rdx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
xor ebx, ebx
and qword [rsp + 0x38], rbx
mov r9d, 0x20019
xor r8d, r8d
mov rcx, r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test eax, eax
jne 0x100078818
mov rbx, qword [rsp + 0x38]
test esi, esi
jne 0x10007888c
and dword [rsp + 0x88], esi
lea rax, [rsp + 0x34]
lea r9, [rsp + 0x88]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
lea rdx, [0x100031810]
xor r8d, r8d
mov rcx, rbx
mov dword [rsp + 0x30], 0x10
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x34], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [rsp + 0x88], 4
mov esi, eax
je 0x100078875
mov esi, 0xd
jmp 0x10007888c
test eax, eax
jne 0x10007888c
mov eax, dword [rsp + 0x30]
cmp eax, 0x10
jae 0x100078887
mov dword [rbp], eax
jmp 0x10007888c
mov esi, 0x57
test rbx, rbx
je 0x10007889a
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x40]
call fcn.10007d970
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov eax, esi
add rsp, 0x50
pop r12
pop rdi
pop rsi
ret
Function at 0x100078970
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x30
xor edi, edi
mov rbp, rdx
mov rsi, rcx
test rdx, rdx
je 0x100078b03
test rcx, rcx
je 0x100078b03
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea r13, [0x100089110]
sub eax, dword [0x10008911c]
cmp eax, 0xea60
jae 0x1000789d9
mov rdx, rsi
mov rcx, r13
call fcn.10007d3c0
test al, al
je 0x1000789d9
mov eax, dword [0x100089120]
mov dword [rbp], eax
jmp 0x100078b08
lea rdx, [0x100031900]
mov r9, rbp
mov r8, rsi
mov rcx, 0xffffffff80000002
call fcn.10007879c
cmp eax, 3
je 0x100078a00
cmp eax, 2
jne 0x100078a94
lea rdx, [0x100031970]
mov r9, rbp
mov r8, rsi
mov rcx, 0xffffffff80000001
call fcn.10007879c
cmp eax, 3
je 0x100078a23
cmp eax, 2
jne 0x100078a94
mov rcx, rsi
call fcn.100074d28
movsxd rbx, eax
cmp ebx, 0xffffffff
je 0x100078a8d
lea r12, [0x1000876c0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp ebx, 0x2b
jge 0x100078a61
lea rax, [0x1000207a0]
shl rbx, 6
add rbx, rax
jmp 0x100078a73
lea edx, [rbx - 0x2b]
lea rcx, [0x100087698]
call fcn.1000785bc
mov rbx, qword [rax]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [rbx + 0x30]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [rbp], ebx
jmp 0x100078a92
mov edi, 0xc00d0fda
xor eax, eax
test eax, eax
je 0x100078aa6
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x100078b08
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 5
jae 0x100078b08
mov eax, 0x22
lea rcx, [rsp + 0x20]
or r8d, 0xffffffff
mov rdx, rsi
mov qword [rsp + 0x20], r13
mov dword [rsp + 0x28], 5
mov word [rsp + 0x2c], ax
call fcn.10007d57c
mov r11d, dword [rbp]
mov dword [0x100089120], r11d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [rsp + 0x20]
mov dword [0x10008911c], eax
call fcn.10007d970
jmp 0x100078b08
mov edi, 0x80004003
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov eax, edi
add rsp, 0x30
pop r13
pop r12
pop rdi
ret
Function at 0x100078cb0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x60
mov r12, rcx
lea rcx, [rax - 0x20]
mov rbp, r9
mov rbx, r8
mov rdi, rdx
mov esi, 0xe
call fcn.10007d40c
lea rcx, [rsp + 0x48]
mov r8, rbx
mov rdx, rdi
call fcn.10007db7c
xor edi, edi
cmp eax, edi
jl 0x100078d9c
mov rdx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, r12
mov rbx, rdi
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp eax, edi
jne 0x100078d33
mov rbx, qword [rsp + 0x40]
mov esi, edi
cmp esi, edi
jne 0x100078d8e
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x30]
lea rdx, [0x1000319e0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
xor r8d, r8d
mov rcx, rbx
mov dword [rsp + 0x34], edi
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x38], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [rsp + 0x30], 4
mov esi, eax
je 0x100078d83
mov esi, 0xd
jmp 0x100078d8e
cmp eax, edi
jne 0x100078d8e
mov edx, dword [rsp + 0x34]
mov dword [rbp], edx
cmp rbx, rdi
je 0x100078d9c
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x48]
call fcn.10007d970
lea r11, [rsp + 0x60]
mov eax, esi
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret
Function at 0x100078dcc
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x30
xor edi, edi
mov rbp, rdx
mov rsi, rcx
test rcx, rcx
je 0x100078f45
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea r13, [0x100089128]
sub eax, 0xea60
cmp eax, dword [0x100089134]
jae 0x100078e2c
mov rdx, rsi
mov rcx, r13
call fcn.10007d3c0
test al, al
je 0x100078e2c
mov eax, dword [0x100089138]
mov dword [rbp], eax
jmp 0x100078f4a
lea rdx, [0x100031900]
mov r9, rbp
mov r8, rsi
mov rcx, 0xffffffff80000002
call fcn.100078cb0
test eax, eax
je 0x100078eec
lea rdx, [0x100031970]
mov r9, rbp
mov r8, rsi
mov rcx, 0xffffffff80000001
call fcn.100078cb0
mov r12d, eax
test eax, eax
je 0x100078eec
mov rcx, rsi
call fcn.100074d28
movsxd rbx, eax
cmp ebx, 0xffffffff
je 0x100078ed7
lea r12, [0x1000876c0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp ebx, 0x2b
jge 0x100078eab
lea rax, [0x1000207a0]
shl rbx, 6
add rbx, rax
jmp 0x100078ebd
lea edx, [rbx - 0x2b]
lea rcx, [0x100087698]
call fcn.1000785bc
mov rbx, qword [rax]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [rbx + 0x38]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [rbp], ebx
jmp 0x100078eec
movzx edi, r12w
or edi, 0x80070000
test r12d, r12d
cmovle edi, r12d
test edi, edi
js 0x100078f4a
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 5
jae 0x100078f4a
mov eax, 0x22
lea rcx, [rsp + 0x20]
or r8d, 0xffffffff
mov rdx, rsi
mov qword [rsp + 0x20], r13
mov dword [rsp + 0x28], 5
mov word [rsp + 0x2c], ax
call fcn.10007d57c
mov r11d, dword [rbp]
mov dword [0x100089138], r11d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [rsp + 0x20]
mov dword [0x100089134], eax
call fcn.10007d970
jmp 0x100078f4a
mov edi, 0x80004003
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov eax, edi
add rsp, 0x30
pop r13
pop r12
pop rdi
ret