joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18006c7c4
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov rdi, rdx
test rcx, rcx
je 0x18006c7ea
mov r8, rdx
mov rdx, qword [rbx]
call fcn.18004c010
jmp 0x18006c851
cmp byte [0x18024b828], 0
jne 0x18006c82e
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18006c81e
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18024b820], rax
jmp 0x18006c825
mov rax, qword [0x18024b820]
mov byte [0x18024b828], 1
jmp 0x18006c835
mov rax, qword [0x18024b820]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x18006c84b
mov r8d, dword [rbx + 8]
xor r9d, r9d
call rax
jmp 0x18006c851
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x18006cb60
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rdx]
mov rbx, rdx
cmp dword [rcx - 0x10], 0
je 0x18006cb92
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x18006cb92
lea rcx, [rdi + 0x120]
mov rdx, rbx
call fcn.1800ed5a0
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x18008f69c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
xor ebx, ebx
mov rdi, r8
mov rsi, rdx
mov r13, rcx
test r8, r8
jne 0x18008f6cd
call fcn.180046630
mov rdi, qword [rax + 0x18]
mov r8, qword [0x18024c1f0]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
jne 0x18008f6ec
xor eax, eax
jmp 0x18008f738
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
je 0x18008f6e8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r12, rax
test rax, rax
je 0x18008f72d
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, r12
mov rcx, r13
mov r8d, eax
call fcn.18008f560
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret

Function at 0x1800da758
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x1800da769
xor eax, eax
jmp 0x1800da797
mov rcx, qword [rcx + 8]
lea rax, [rsp + 0x40]
mov r9d, 4
mov dword [rsp + 0x40], r8d
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x1800da92c
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x1800da93d
xor eax, eax
jmp 0x1800da961
mov rcx, qword [rcx + 8]
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], r8
mov r9d, 3
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x1800da968
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x38
mov rcx, qword [rcx + 8]
lea rax, [r11 + 8]
lea r9, [r11 + 0x20]
mov qword [r11 - 0x10], rax
mov qword [r11 - 0x18], r8
xor r8d, r8d
mov dword [rsp + 0x40], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor edx, edx
test eax, eax
jne 0x1800da9aa
mov ecx, dword [rsp + 0x58]
sub ecx, 4
neg ecx
sbb eax, eax
and eax, 0xd
test eax, eax
sete dl
mov eax, edx
add rsp, 0x38
ret

Function at 0x1800daabc
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, r9
mov rbx, r8
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
jne 0x1800daae7
call fcn.180041138
int3
test rbx, rbx
jne 0x1800daaf2
call fcn.180041138
int3
test r9, r9
jne 0x1800daafd
call fcn.180041138
int3
and qword [r8], 0
and dword [r9], 0
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x28], r9
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1800dab80
cmp dword [rsp + 0x48], 3
jne 0x1800dab80
test eax, eax
jne 0x1800dab80
cmp dword [rdi], eax
je 0x1800dab80
mov ecx, dword [rdi]
call fcn.18003484c
lea r9, [rsp + 0x48]
xor r8d, r8d
mov qword [rbx], rax
mov rcx, qword [rbp + 8]
mov rdx, rsi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1800dab74
cmp dword [rsp + 0x48], 3
jne 0x1800dab74
test eax, eax
jne 0x1800dab74
mov eax, 1
jmp 0x1800dab82
mov rcx, qword [rbx]
call fcn.180034898
and qword [rbx], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x1800dac8c
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
add rsp, 0x28
ret
Function at 0x180141770
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
test byte [rdx + 4], 1
mov esi, r8d
mov rbx, rdx
mov rbp, rcx
je 0x180141799
mov rdi, qword [rdx + 0x10]
jmp 0x1801417ea
mov rdx, qword [rdx + 0x10]
mov rcx, qword [rbx + 8]
mov r8d, 5
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
jne 0x1801417ba
call fcn.18003e8c0
mov rcx, qword [rbx + 8]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
jne 0x1801417d4
call fcn.18003e8c0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
jne 0x1801417ea
call fcn.18003e8c0
call fcn.180046630
cmp qword [rax + 0x68], 0
je 0x180141804
mov rdx, rdi
mov rcx, rbp
call fcn.18013fef8
mov rdi, rax
mov edx, esi
mov rcx, rdi
call fcn.1801415b0
mov rcx, qword [rbp + 0xe8]
mov rsi, rax
test rcx, rcx
je 0x18014182b
call qword [sym.imp.KERNEL32.dll_GlobalFree]
and qword [rbp + 0xe8], 0
test rsi, rsi
je 0x18014183a
mov rdi, rsi
mov qword [rbp + 0xe8], rsi
or dword [rbx + 4], 1
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov qword [rbx + 0x10], rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x18017e02b
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x180243cf0]
jne 0x18017792a
rol rcx, 0x10
test cx, 0xffff
jne 0x180177926
repz ret
ror rcx, 0x10
jmp 0x18017df84
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x180250a10]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x180250b08]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x18017e009
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x180250a10]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x18017e02b
mov rax, qword [rsp + 0x88]
mov qword [0x180250b08], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x180250aa8], rax
mov rax, qword [0x180250b08]
mov qword [0x180250980], rax
mov rax, qword [rsp + 0x90]
mov qword [0x180250a90], rax
mov dword [0x180250970], 0xc0000409
mov dword [0x180250974], 1
mov rax, qword [0x180243cf0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x180243cf8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x180250a08], eax
mov ecx, 1
call fcn.18018b644
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1801f5658]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x180250a08], 0
jne 0x18017e0b2
mov ecx, 1
call fcn.18018b644
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x18018dbb0
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x180243cf0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.18017fd6c
xor ebx, ebx
cmp qword [0x180251a28], rbx
mov rdi, rax
jne 0x18018dcc3
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x18018dd9a
lea rdx, [0x1801f7a40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18018dd9a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, [0x1801f7a30]
mov rcx, rsi
mov qword [0x180251a28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, [0x1801f7a18]
mov rcx, rsi
mov qword [0x180251a30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x180251a38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x180251a48], rax
test rax, rax
je 0x18018dcba
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x180251a40], rax
jmp 0x18018dcca
mov rax, qword [0x180251a40]
jmp 0x18018dcd1
mov rax, qword [0x180251a40]
mov r11, qword [0x180251a48]
cmp rax, rdi
je 0x18018dd38
cmp r11, rdi
je 0x18018dd38
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x180251a48]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x18018dd38
test rax, rax
je 0x18018dd38
call rsi
test rax, rax
je 0x18018dd32
lea rcx, [rsp + 0x30]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x18018dd32
test byte [rsp + 0x40], 1
jne 0x18018dd38
bts ebp, 0x15
jmp 0x18018dd78
mov rcx, qword [0x180251a30]
cmp rcx, rdi
je 0x18018dd78
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x18018dd78
call rax
mov rbx, rax
test rax, rax
je 0x18018dd78
mov rcx, qword [0x180251a38]
cmp rcx, rdi
je 0x18018dd78
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x18018dd78
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x180251a28]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x18018dd9a
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x18018dd9c
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180177910
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180190ff0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rsi, r8
mov rdi, rcx
test rdx, rdx
je 0x18019101e
or r9d, 0x20019
mov r8d, r9d
call fcn.180190fa0
mov rbx, rax
jmp 0x180191021
mov rbx, rcx
test rbx, rbx
je 0x1801910c7
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1801910ba
cmp dword [rsp + 0x30], 4
jne 0x1801910ba
mov eax, dword [rsp + 0x58]
mov ecx, 4
mov rdx, rsi
cmp eax, ecx
cmova eax, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x58], eax
lea rax, [rsp + 0x58]
mov rcx, rbx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1801910ba
cmp rbx, rdi
je 0x1801910a5
mov rcx, rbx
call fcn.180190fd0
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
cmp rbx, rdi
je 0x1801910c7
mov rcx, rbx
call fcn.180190fd0
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x40
pop rdi
ret

Function at 0x1801910e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x40
mov rbp, r8
mov rsi, rcx
test rdx, rdx
je 0x18019110e
or r9d, 0x20019
mov r8d, r9d
call fcn.180190fa0
mov rbx, rax
jmp 0x180191111
mov rbx, rcx
mov qword [rsp + 0x50], rdi
test rbx, rbx
je 0x1801911c3
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rbp
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1801911b6
cmp dword [rsp + 0x30], 3
jne 0x1801911b6
mov ecx, dword [rsp + 0x58]
call fcn.180034890
mov rdi, rax
test rax, rax
je 0x1801911b6
lea rax, [rsp + 0x58]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rbp
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1801911ae
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
mov qword [rax], rdi
mov eax, dword [rsp + 0x58]
mov dword [rcx], eax
cmp rbx, rsi
je 0x1801911a7
mov rcx, rbx
call fcn.180190fd0
mov eax, 1
jmp 0x1801911c5
mov rcx, rdi
call fcn.180034898
cmp rbx, rsi
je 0x1801911c3
mov rcx, rbx
call fcn.180190fd0
xor eax, eax
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop rsi
ret
Function at 0x180191290
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
mov edi, r9d
mov r12, r8
mov rbp, rcx
test rdx, rdx
je 0x1801912c3
mov r8d, dword [rcx + 8]
mov rcx, qword [rcx]
or r8d, 0x20019
call fcn.180190fa0
mov rsi, rax
jmp 0x1801912c6
mov rsi, qword [rcx]
test rsi, rsi
je 0x180191362
lea rax, [rsp + 0x30]
mov qword [rsp + 0x60], rbx
lea r9, [rsp + 0x68]
mov qword [rsp + 0x28], rax
xor ebx, ebx
xor r8d, r8d
mov rdx, r12
mov rcx, rsi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18019133f
test edi, edi
je 0x18019133a
dec edi
je 0x180191322
sub edi, 2
je 0x180191318
dec edi
jne 0x18019133f
cmp dword [rsp + 0x68], 4
sete bl
jmp 0x18019133f
cmp dword [rsp + 0x68], 3
sete bl
jmp 0x18019133f
mov eax, dword [rsp + 0x68]
cmp eax, 1
je 0x18019133a
cmp eax, 2
je 0x18019133a
cmp eax, 6
je 0x18019133a
cmp eax, 7
jne 0x18019133f
mov ebx, 1
cmp rsi, qword [rbp]
je 0x18019134d
mov rcx, rsi
call fcn.180190fd0
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
xor eax, eax
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
mov r9d, r8d
mov r8, rdx
xor edx, edx
jmp 0x180191290

Function at 0x180191410
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
mov edi, r9d
mov r12, r8
mov rbp, rcx
test rdx, rdx
je 0x1801912c3
mov r8d, dword [rcx + 8]
mov rcx, qword [rcx]
or r8d, 0x20019
call fcn.180190fa0
mov rsi, rax
jmp 0x1801912c6
mov rsi, qword [rcx]
test rsi, rsi
je 0x180191362
lea rax, [rsp + 0x30]
mov qword [rsp + 0x60], rbx
lea r9, [rsp + 0x68]
mov qword [rsp + 0x28], rax
xor ebx, ebx
xor r8d, r8d
mov rdx, r12
mov rcx, rsi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18019133f
test edi, edi
je 0x18019133a
dec edi
je 0x180191322
sub edi, 2
je 0x180191318
dec edi
jne 0x18019133f
cmp dword [rsp + 0x68], 4
sete bl
jmp 0x18019133f
cmp dword [rsp + 0x68], 3
sete bl
jmp 0x18019133f
mov eax, dword [rsp + 0x68]
cmp eax, 1
je 0x18019133a
cmp eax, 2
je 0x18019133a
cmp eax, 6
je 0x18019133a
cmp eax, 7
jne 0x18019133f
mov ebx, 1
cmp rsi, qword [rbp]
je 0x18019134d
mov rcx, rsi
call fcn.180190fd0
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
xor eax, eax
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
mov r9d, r8d
mov r8, rdx
xor edx, edx
jmp 0x180191290
Function at 0x180191450
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push r12
sub rsp, 0x40
mov r12, r8
mov rbp, rcx
test rdx, rdx
je 0x180191478
or r9d, 0x20019
mov r8d, r9d
call fcn.180190fa0
mov rbx, rax
jmp 0x18019147b
mov rbx, rcx
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x70], rdi
test rbx, rbx
je 0x180191590
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x30]
xor edi, edi
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, r12
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x180191583
mov eax, dword [rsp + 0x30]
cmp eax, 1
je 0x1801914d7
cmp eax, 2
je 0x1801914d7
cmp eax, 6
je 0x1801914d7
cmp eax, 7
jne 0x180191583
mov ecx, dword [rsp + 0x68]
add ecx, 2
call fcn.180034890
mov r8d, dword [rsp + 0x68]
xor edx, edx
add r8d, 2
mov rcx, rax
mov rsi, rax
call fcn.18017a8f0
lea r11, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x28], r11
xor r8d, r8d
mov rdx, r12
mov rcx, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x180191564
test rsi, rsi
je 0x180191535
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
lea edi, [rcx - 1]
mov rcx, qword [rsp + 0x80]
mov r8d, edi
mov rdx, rsi
call fcn.180005a60
cmp rbx, rbp
je 0x180191555
mov rcx, rbx
call fcn.180190fd0
mov rcx, rsi
call fcn.180034898
mov eax, 1
jmp 0x180191592
mov rcx, rsi
call fcn.180034898
mov rcx, qword [rsp + 0x80]
lea rdx, [0x1801a8d38]
xor r8d, r8d
call fcn.180005a60
cmp rbx, rbp
je 0x180191590
mov rcx, rbx
call fcn.180190fd0
xor eax, eax
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop r12
pop rbp
pop rbx
ret
Function at 0x1801915b0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
sub rsp, 0x40
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rbx
mov qword [rbp + 0x28], rsi
mov qword [rbp + 0x30], rdi
mov qword [rbp + 0x38], r12
mov rax, qword [0x180243cf0]
xor rax, rbp
mov qword [rbp + 8], rax
mov rsi, r8
mov rdi, rcx
test rdx, rdx
je 0x1801915f8
or r9d, 0x20019
mov r8d, r9d
call fcn.180190fa0
mov rbx, rax
jmp 0x1801915fb
mov rbx, rcx
test rbx, rbx
je 0x1801917ea
call fcn.1801926e0
test eax, eax
je 0x1801916b2
lea rax, [rbp]
lea r9, [rbp + 4]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1801917dd
mov eax, dword [rbp + 4]
cmp eax, 1
je 0x180191659
cmp eax, 2
je 0x180191659
cmp eax, 6
je 0x180191659
cmp eax, 7
jne 0x1801917dd
mov ecx, dword [rbp]
add ecx, 2
call fcn.180034890
mov r8d, dword [rbp]
xor edx, edx
add r8d, 2
mov rcx, rax
mov r12, rax
call fcn.18017a8f0
lea r11, [rbp]
xor r9d, r9d
mov qword [rsp + 0x28], r11
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1801917c2
mov rcx, qword [rbp + 0x40]
mov rdx, r12
call fcn.180005c30
jmp 0x1801917a6
test rsi, rsi
je 0x18019170e
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x1801916cd
xor esi, esi
jmp 0x18019170e
lea r8d, [rax + rax]
cdqe
add rax, rax
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x1801916e9
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.18017b990
sub rsp, rcx
mov r9d, 3
lea rcx, [rsp + 0x30]
mov rdx, rsi
call fcn.180041344
mov rsi, rax
lea rax, [rbp]
lea r9, [rbp + 4]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1801917dd
mov eax, dword [rbp + 4]
cmp eax, 1
je 0x180191756
cmp eax, 2
je 0x180191756
cmp eax, 6
je 0x180191756
cmp eax, 7
jne 0x1801917dd
mov ecx, dword [rbp]
add ecx, 2
call fcn.180034890
mov r8d, dword [rbp]
xor edx, edx
add r8d, 2
mov rcx, rax
mov r12, rax
call fcn.18017a8f0
lea r11, [rbp]
xor r9d, r9d
mov qword [rsp + 0x28], r11
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1801917c2
mov rcx, qword [rbp + 0x40]
mov rdx, r12
call fcn.18004a1d0
cmp rbx, rdi
je 0x1801917b3
mov rcx, rbx
call fcn.180190fd0
mov rcx, r12
call fcn.180034898
mov eax, 1
jmp 0x1801917ec
mov rcx, r12
call fcn.180034898
mov rcx, qword [rbp + 0x40]
lea rdx, [0x1801a8d38]
xor r8d, r8d
call fcn.180005a60
cmp rbx, rdi
je 0x1801917ea
mov rcx, rbx
call fcn.180190fd0
xor eax, eax
mov rcx, qword [rbp + 8]
xor rcx, rbp
call fcn.180177910
mov rbx, qword [rbp + 0x20]
mov rsi, qword [rbp + 0x28]
mov rdi, qword [rbp + 0x30]
mov r12, qword [rbp + 0x38]
lea rsp, [rbp + 0x10]
pop rbp
ret
Function at 0x74a71710
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbp
mov rbp, rsp
lea rsp, [rsp - 0x90]
mov qword [rbp - 8], rcx
mov dword [rbp - 0x10], edx
mov qword [rbp - 0x18], r8
mov byte [rbp - 0x20], 0
mov dword [rbp - 0x58], 0x14
mov dword [rsp + 0x20], 0xf0000000
lea rax, [rbp - 0x30]
mov rcx, rax
mov r9d, 1
movabs r8, 0
movabs rdx, 0
call sub.advapi32.dll_CryptAcquireContextA
test eax, eax
je 0x74a717eb
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
mov rcx, qword [rbp - 0x30]
mov r9d, 0
movabs r8, 0
mov edx, 0x8004
call sub.advapi32.dll_CryptCreateHash
test eax, eax
je 0x74a717dd
mov r8d, dword [rbp - 0x10]
mov rdx, qword [rbp - 8]
mov rcx, qword [rbp - 0x38]
mov r9d, 0
call sub.advapi32.dll_CryptHashData
test eax, eax
je 0x74a717d4
mov dword [rsp + 0x20], 0
lea r9, [rbp - 0x58]
mov r8, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x38]
mov edx, 2
call sub.advapi32.dll_CryptGetHashParam
or eax, eax
setne al
mov byte [rbp - 0x20], al
mov rcx, qword [rbp - 0x38]
call sub.advapi32.dll_CryptDestroyHash
mov rcx, qword [rbp - 0x30]
mov edx, 0
call sub.advapi32.dll_CryptReleaseContext
movzx eax, byte [rbp - 0x20]
nop
lea rsp, [rbp]
pop rbp
ret

Function at 0x74a71800
Capabilities:
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbp
mov rbp, rsp
lea rsp, [rsp - 0x80]
mov qword [rbp - 8], rcx
mov dword [rbp - 0x10], edx
mov qword [rbp - 0x18], r8
mov qword [rbp - 0x20], r9
mov byte [rbp - 0x28], 0
mov dword [rsp + 0x20], 0xf0000000
lea rax, [rbp - 0x38]
mov rcx, rax
mov r9d, 1
movabs r8, 0
movabs rdx, 0
call sub.advapi32.dll_CryptAcquireContextA
test eax, eax
je 0x74a71923
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
mov rcx, qword [rbp - 0x38]
mov r9d, 0
movabs r8, 0
mov edx, 0x8004
call sub.advapi32.dll_CryptCreateHash
test eax, eax
je 0x74a71915
mov r8d, dword [rbp + 0x30]
mov rdx, qword [rbp - 0x20]
mov rcx, qword [rbp - 0x40]
mov r9d, 0
call sub.advapi32.dll_CryptHashData
test eax, eax
je 0x74a7190c
lea rax, [rbp - 0x48]
mov qword [rsp + 0x20], rax
mov r8, qword [rbp - 0x40]
mov rcx, qword [rbp - 0x38]
mov r9d, 0
mov edx, 0x6609
call sub.advapi32.dll_CryptDeriveKey
test eax, eax
je 0x74a7190c
mov rax, qword [rbp - 0x18]
mov edx, dword [rbp - 0x10]
mov dword [rax], edx
mov rax, qword [rbp - 8]
mov qword [rsp + 0x20], rax
mov rax, qword [rbp - 0x18]
mov qword [rsp + 0x28], rax
mov rcx, qword [rbp - 0x48]
mov r9d, 0
mov r8d, 0xffffffff
movabs rdx, 0
call sub.advapi32.dll_CryptDecrypt
test eax, eax
je 0x74a71903
mov byte [rbp - 0x28], 1
mov rcx, qword [rbp - 0x48]
call sub.advapi32.dll_CryptDestroyKey
mov rcx, qword [rbp - 0x40]
call sub.advapi32.dll_CryptDestroyHash
mov rcx, qword [rbp - 0x38]
mov edx, 0
call sub.advapi32.dll_CryptReleaseContext
movzx eax, byte [rbp - 0x28]
nop
lea rsp, [rbp]
pop rbp
ret