joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003cc18
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
and dword [r9], 0
mov rdi, r9
cmp qword [rdx + 0x18], 8
mov rbx, r8
jb 0x14003cc3b
mov rdx, qword [rdx]
lea rax, [rsp + 0x50]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14003cce4
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetElement
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x38], rax
call fcn.1400602b4
movups xmm0, xmmword [rsp + 0x30]
lea rcx, vtable.appv::utility::scope_guard_func_impl_class_std::_Binder_struct_std::_Unforced__long_int____cdecl___struct_HKEY______ptr64___struct_HKEY______ptr64____ptr64__.0
mov qword [rsp + 0x68], rax
movdqu xmmword [rax + 8], xmm0
mov qword [rax], rcx
cmp qword [rbx + 0x18], 8
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x70], 4
jb 0x14003ccb3
mov rbx, qword [rbx]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea rcx, [rsp + 0x58]
mov ebx, eax
call fcn.140005b9c
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x14003e1b0
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x40
mov qword [rax - 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rdi, rdx
mov rbx, rcx
mov rcx, rdx
cmp qword [rdx + 0x18], 8
jb 0x14003e1df
mov rcx, qword [rdx]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea esi, [rax + 1]
xor ebp, ebp
mov word [rsp + 0x58], bp
mov edx, esi
lea r8, [rsp + 0x58]
lea rcx, [rsp + 0x28]
call fcn.14003ce1c
nop
cmp qword [rdi + 0x18], 8
jb 0x14003e210
mov rdi, qword [rdi]
mov r8d, esi
mov rsi, qword [rsp + 0x28]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], 7
mov word [rbx], bp
test eax, eax
je 0x14003e24e
lea rdx, [0x14008644c]
test rsi, rsi
cmovne rdx, rsi
mov rcx, rbx
call fcn.1400033fc
nop
lea rcx, [rsp + 0x28]
call fcn.1400174fc
mov rax, rbx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x140041070
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
and dword [rsp + 0x58], 0
mov ebx, edx
lea rdx, [rcx + 0x40]
mov dword [rsp + 0x40], r9d
cmp qword [rdx + 0x18], 8
jb 0x140041094
mov rdx, qword [rdx]
mov rcx, qword [rcx + 0x60]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x58]
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
je 0x140041103
mov edx, 0x5c
lea rcx, str.admin_appman_appv_sharedclientconfiguration_registryvalue.h
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_strrchr]
test rax, rax
je 0x1400410d7
inc rax
jmp 0x1400410de
lea rax, str.admin_appman_appv_sharedclientconfiguration_registryvalue.h
mov rdx, rax
lea rcx, [0x1400bd678]
call fcn.14000e7dc
shl rax, 0x34
movabs rcx, 0x342500000000
or rax, rdi
or rax, rcx
jmp 0x140041155
cmp ebx, dword [rsp + 0x58]
je 0x14004114b
mov edx, 0x5c
lea rcx, str.admin_appman_appv_sharedclientconfiguration_registryvalue.h
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_strrchr]
test rax, rax
je 0x140041125
inc rax
jmp 0x14004112c
lea rax, str.admin_appman_appv_sharedclientconfiguration_registryvalue.h
mov rdx, rax
lea rcx, [0x1400bd678]
call fcn.14000e7dc
shl rax, 0x34
movabs rcx, 0x350500040002
jmp 0x1400410fe
movabs rax, 0x8000000000
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14005fe6c
Capabilities:
Get hostname

Disassembly:
mov rax, rsp
mov dword [rax + 8], ecx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rdi, rdx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
xor esi, esi
mov qword [rbp - 0x10], rsi
mov dword [rbp + 0x30], esi
lea r8, [rbp + 0x30]
xor edx, edx
lea ecx, [rsi + 3]
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x14005feb4
lea ebx, [rsi + 0xd]
jmp 0x14005ff1f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0xea
jne 0x14005ff1f
mov word [rbp + 0x20], si
mov edx, dword [rbp + 0x30]
lea rax, [rbp - 0x20]
mov qword [rbp - 0x30], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
movaps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rbp - 0x30], xmm0
lea r8, [rbp - 0x30]
lea rcx, [rbp - 0x20]
call fcn.14003cffc
lea r8, [rbp + 0x30]
mov rdx, qword [rbp - 0x20]
mov ecx, 3
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
jne 0x14005ff11
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x14005ff1f
mov rdx, qword [rbp - 0x20]
mov rcx, rdi
call fcn.1400033fc
mov ebx, esi
lea rcx, [rbp - 0x20]
call fcn.1400174fc
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret

Function at 0x140060a48
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x1400bd0c0], eax
call fcn.140060cf8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400bd0c0], 0
jne case.default.0x140060a9e
mov ecx, 1
call fcn.140060cf8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
push rsi
invalid
Function at 0x100007498
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x30
mov rsi, rcx
xor ebx, ebx
mov word [rax - 0x18], bx
mov qword [rax + 0x10], rbx
mov edi, ebx
mov eax, dword [0x100012bc0]
cmp eax, ebx
je 0x1000074d9
lea rcx, [0x100001800]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x100012bc0]
cmp eax, ebx
jne 0x1000074e6
call fcn.100007244
cmp eax, ebx
je 0x100007502
lea rdx, [rsp + 0x48]
mov rcx, qword [0x100012120]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
cmp eax, ebx
cmovne edi, ecx
cmp edi, ebx
jne 0x10000750b
mov ax, bx
jmp 0x100007554
mov rcx, rsi
call qword [sym.imp.USER32.dll_RegisterClassExW]
movzx edi, ax
mov word [rsp + 0x20], ax
mov esi, ebx
cmp di, bx
sete sil
cmp esi, ebx
je 0x100007534
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
jmp 0x100007537
mov r12d, ebx
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
cmp esi, ebx
je 0x100007551
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ax, di
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret

Function at 0x100007570
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
mov qword [rax + 0x20], r13
push r14
sub rsp, 0x70
mov rsi, r8
mov r12, rdx
mov r13d, ecx
mov r14, qword [0x100012b30]
and qword [rax - 0x10], 0
and qword [rax - 0x18], 0
xor edi, edi
mov eax, dword [0x100012bc0]
test eax, eax
je 0x1000075c2
lea rcx, [0x100001800]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x100012bc0]
test eax, eax
jne 0x1000075cf
call fcn.100007244
test eax, eax
je 0x1000075eb
lea rdx, [rsp + 0x60]
mov rcx, qword [0x100012120]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne edi, ecx
test edi, edi
jne 0x1000075f6
xor eax, eax
jmp 0x100007682
and qword [rsp + 0x58], 0
mov qword [rsp + 0x50], r14
and qword [rsp + 0x48], 0
and qword [rsp + 0x40], 0
mov eax, dword [rsp + 0xb8]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0xb0]
mov dword [rsp + 0x30], eax
mov eax, 0x80000000
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov r9d, 0xcf0000
mov r8, rsi
mov rdx, r12
mov ecx, r13d
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov r12, rax
mov qword [rsp + 0x68], rax
xor edi, edi
test rax, rax
sete dil
test edi, edi
je 0x100007664
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x100007666
xor esi, esi
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test edi, edi
je 0x10000767f
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
lea r11, [rsp + 0x70]
mov rsi, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r12, qword [r11 + 0x20]
mov r13, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x1000076a4
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x40
mov rdi, r8
mov rsi, qword [0x100012b30]
or qword [rax - 0x10], 0xffffffffffffffff
and qword [rax - 0x18], 0
xor ebx, ebx
mov eax, dword [0x100012bc0]
test eax, eax
je 0x1000076e7
lea rcx, [0x100001800]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x100012bc0]
test eax, eax
jne 0x1000076f4
call fcn.100007244
test eax, eax
je 0x100007710
lea rdx, [rsp + 0x30]
mov rcx, qword [0x100012120]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne ebx, ecx
test ebx, ebx
jne 0x10000771a
or rax, 0xffffffffffffffff
jmp 0x100007775
and qword [rsp + 0x20], 0
lea r9, [0x10000bee8]
mov r8, rdi
mov edx, 0x65
mov rcx, rsi
call qword [sym.imp.USER32.dll_DialogBoxParamW]
mov rsi, rax
mov qword [rsp + 0x38], rax
xor ebx, ebx
cmp rax, 0xffffffffffffffff
sete bl
test ebx, ebx
je 0x100007757
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x100007759
xor edi, edi
mov rdx, qword [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x100007772
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x10000778c
Capabilities:
Print debug messages

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
push r14
push r15
sub rsp, 0x50
mov r12, r9
mov r13, r8
mov r14, rcx
mov r15, qword [0x100012b30]
mov rbx, qword [0x100012c10]
and qword [rax - 0x28], 0
xor edi, edi
mov eax, dword [0x100012bc0]
test eax, eax
je 0x1000077e4
lea rcx, [0x100001800]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x100012bc0]
test eax, eax
jne 0x1000077f6
call fcn.100007244
test eax, eax
jne 0x1000077f6
lea esi, [rax + 1]
jmp 0x100007812
lea rdx, [rsp + 0x40]
mov rcx, qword [0x100012120]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov esi, 1
test eax, eax
cmovne edi, esi
test edi, edi
jne 0x10000783c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
mov ecx, 0x54f
test eax, eax
cmove r11d, ecx
movzx eax, r11w
or eax, 0x80070000
test r11d, r11d
cmovle eax, r11d
jmp 0x1000078bb
test rbx, rbx
jne 0x10000787c
lea rcx, [0x100001840]
call fcn.1000078e0
mov rbx, rax
test rax, rax
jne 0x100007875
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x54f
test eax, eax
cmove eax, ecx
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1000078ac
mov qword [0x100012c10], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0xfffe
mov dword [rsp + 0x28], esi
and qword [rsp + 0x20], 0
mov r9, r12
mov r8, r13
mov rdx, r15
mov rcx, r14
call rbx
mov ebx, eax
mov rdx, qword [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
mov eax, ebx
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
ret
Function at 0x10000798c
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x30
mov r12, rcx
xor edi, edi
mov dword [rax - 0x18], edi
mov rbx, qword [0x100012c00]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x100012bc0]
test eax, eax
je 0x1000079d3
lea rcx, [0x100001800]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x100012bc0]
test eax, eax
jne 0x1000079e0
call fcn.100007244
test eax, eax
je 0x1000079fc
lea rdx, [rsp + 0x48]
mov rcx, qword [0x100012120]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x100007a04
xor eax, eax
jmp 0x100007a61
test rbx, rbx
jne 0x100007a24
lea rcx, [0x100001878]
call fcn.100007c54
mov rbx, rax
test rax, rax
je 0x100007a2f
mov qword [0x100012c00], rax
mov rcx, r12
call rbx
mov edi, eax
mov dword [rsp + 0x20], eax
xor ebx, ebx
test edi, edi
sete bl
test ebx, ebx
je 0x100007a44
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x100007a46
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x100007a5f
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret

Function at 0x100007a80
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x30
mov r12, rcx
xor edi, edi
mov dword [rax - 0x18], edi
mov rbx, qword [0x100012bf8]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x100012bc0]
test eax, eax
je 0x100007ac7
lea rcx, [0x100001800]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x100012bc0]
test eax, eax
jne 0x100007ad4
call fcn.100007244
test eax, eax
je 0x100007af0
lea rdx, [rsp + 0x48]
mov rcx, qword [0x100012120]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x100007af8
xor eax, eax
jmp 0x100007b55
test rbx, rbx
jne 0x100007b18
lea rcx, [0x100001890]
call fcn.100007c54
mov rbx, rax
test rax, rax
je 0x100007b23
mov qword [0x100012bf8], rax
mov rcx, r12
call rbx
mov edi, eax
mov dword [rsp + 0x20], eax
xor ebx, ebx
test edi, edi
sete bl
test ebx, ebx
je 0x100007b38
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x100007b3a
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x100007b53
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
Function at 0x1000085e8
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x90
and qword [rax + 0x18], 0
and dword [rax - 0x78], 0
xor edx, edx
mov rdi, rcx
lea r8d, [rdx + 0x6c]
lea rcx, [rax - 0x74]
call sub.msvcrt.dll_memset
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0xb0]
mov rcx, rax
mov edx, 8
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x100008636
xor ebx, ebx
jmp 0x100008652
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x10000872a
mov rcx, qword [rsp + 0xb0]
lea rdx, [rsp + 0xa8]
call fcn.10000c0cc
test eax, eax
js 0x100008726
mov eax, dword [rsp + 0xa8]
cmp eax, 3
lea ecx, [rax - 0x10]
cmovb ecx, eax
test ecx, ecx
je 0x100008726
sub ecx, 1
je 0x100008695
cmp ecx, 1
jne 0x100008726
cmp dword [0x100012b80], 0
je 0x1000086a8
mov ebx, 0x800702e4
jmp 0x10000872a
mov ecx, dword [0x100012b6c]
lea rax, [0x1000055a8]
mov dword [rsp + 0x20], 0x70
sub ecx, 1
mov qword [rsp + 0x30], rax
lea rax, [0x1000055c0]
mov dword [rsp + 0x24], 0x600
mov dword [rsp + 0x50], 1
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x38], rax
mov edx, 2
je 0x100008701
cmp ecx, edx
je 0x1000086f8
mov ebx, 0x80004005
jmp 0x10000872a
lea rax, [0x100005628]
jmp 0x100008708
lea rax, [0x100005608]
mov rcx, rdi
mov qword [rsp + 0x40], rax
call qword [sym.imp.USER32.dll_ShowWindow]
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ebx, 1
test ebx, ebx
jns 0x100008734
mov edx, ebx
mov rcx, rdi
call fcn.100008f34
mov rcx, qword [rsp + 0xb0]
test rcx, rcx
je 0x10000874d
cmp rcx, 0xffffffffffffffff
je 0x10000874d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rbx, qword [rsp + 0xa0]
add rsp, 0x90
pop rdi
ret

Function at 0x100008768
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x90
and dword [rax + 0x10], 0
and dword [rax - 0x78], 0
xor edx, edx
mov rdi, rcx
lea r8d, [rdx + 0x6c]
lea rcx, [rax - 0x74]
call sub.msvcrt.dll_memset
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0xa8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x1000087b0
xor ebx, ebx
jmp 0x1000087c8
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x100008842
cmp dword [rsp + 0xa8], 0
je 0x10000883e
mov ecx, dword [0x100012b6c]
lea rax, [0x1000055a8]
mov ebx, 1
mov qword [rsp + 0x30], rax
lea rax, [0x100005650]
mov dword [rsp + 0x20], 0x70
mov dword [rsp + 0x24], 0x600
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x38], rax
cmp ecx, ebx
je 0x100008819
mov ebx, 0x80004005
jmp 0x100008842
lea rax, [0x100005698]
mov edx, 2
mov rcx, rdi
mov qword [rsp + 0x40], rax
call qword [sym.imp.USER32.dll_ShowWindow]
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test ebx, ebx
jns 0x10000884c
mov edx, ebx
mov rcx, rdi
call fcn.100008f34
mov eax, ebx
mov rbx, qword [rsp + 0xa0]
add rsp, 0x90
pop rdi
ret
Function at 0x1000095c0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov rax, qword [0x100012b90]
xor esi, esi
mov ebp, 0x8007000e
mov ebx, esi
mov qword [rsp + 0x70], rsi
mov rdi, rsi
cmp rax, rsi
jne 0x100009613
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r12d, 0x800
xor edx, edx
mov rcx, rax
mov r8, r12
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
cmp rax, rsi
jne 0x10000964a
mov ebx, ebp
mov rax, qword [0x100012b90]
lea r12, [0x100005940]
cmp ebx, esi
jge 0x1000096fe
mov rcx, rax
mov ebx, esi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, r12
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [0x100012b90], rax
cmp r12, rsi
je 0x10000961a
cmp rax, rsi
cmove ebx, ebp
jmp 0x10000961a
mov word [rax], si
lea rax, [rsp + 0x70]
lea rdx, [0x100005900]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
je 0x100009686
movzx ebx, ax
or ebx, 0x80070000
cmp eax, esi
cmovle ebx, eax
cmp ebx, esi
jl 0x10000960c
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rdx, [0x100005930]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x60], r12d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, esi
cmp eax, esi
je 0x1000096cc
movzx ebx, ax
or ebx, 0x80070000
cmp eax, esi
cmovle ebx, eax
cmp ebx, esi
jl 0x10000960c
mov rcx, qword [0x100012b90]
mov ebx, esi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
cmp rax, rsi
mov qword [0x100012b90], rax
cmove ebx, ebp
jmp 0x100009613
cmp rdi, rsi
je 0x100009717
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0x70]
cmp rcx, rsi
je 0x100009727
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x30
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x10000973c
Capabilities:
Copy file

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, 0x40
mov rbp, qword [0x100012b88]
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov r8d, 0x800
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor r12d, r12d
mov rdi, rax
cmp rax, r12
jne 0x100009788
mov ebx, 0x8007000e
jmp 0x1000097f8
mov word [rax], r12w
lea rax, [0x100005978]
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x28], rax
mov r9, rdi
xor edx, edx
mov r8d, 0x81
mov rcx, rsi
mov qword [rsp + 0x20], 0x400
call fcn.100008468
cmp eax, r12d
mov ebx, eax
jl 0x1000097f8
cmp eax, 1
jne 0x1000097ca
mov ebx, r12d
jmp 0x100009802
xor r8d, r8d
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, r12d
jne 0x1000097c5
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
cmp eax, r12d
cmovle ebx, eax
cmp ebx, r12d
jge 0x100009802
mov edx, ebx
mov rcx, rsi
call fcn.100008f34
cmp rdi, r12
je 0x10000981b
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop r12
ret
Function at 0x10000a454
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov r8d, dword [0x100012b6c]
and qword [rsp + 0x58], 0
mov rdi, rdx
sub r8d, 1
je 0x10000a492
cmp r8d, 1
je 0x10000a489
mov ebx, 1
jmp 0x10000a5ed
lea rsi, [0x1000059e0]
jmp 0x10000a499
lea rsi, [0x1000059d0]
xor r8d, r8d
test ecx, ecx
lea rdx, [0x100001790]
mov rcx, 0xffffffff80000001
je 0x10000a55d
lea rax, [rsp + 0x58]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ebx, ebx
test eax, eax
je 0x10000a4dc
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x10000a5dd
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x80]
lea r9, [rsp + 0x88]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x80], 0x10
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ebx, ebx
test eax, eax
je 0x10000a52e
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x10000a5dd
cmp dword [rsp + 0x80], 0x10
jne 0x10000a553
mov eax, dword [rdi]
cmp dword [rdi + 8], eax
jl 0x10000a553
mov eax, dword [rdi + 4]
cmp dword [rdi + 0xc], eax
jge 0x10000a5dd
mov ebx, 1
jmp 0x10000a5dd
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20006
and dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
xor ebx, ebx
test eax, eax
je 0x10000a5a1
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x10000a5dd
mov rcx, qword [rsp + 0x58]
mov r9d, 3
xor r8d, r8d
mov rdx, rsi
mov dword [rsp + 0x28], 0x10
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ebx, ebx
test eax, eax
je 0x10000a5dd
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x10000a5ed
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret