joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2fc4d9290
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4da370
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d9c92
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fc108]
test eax, eax
je 0x2fc4d9d2a
lea rax, [0x2fc4fc0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fc110]
mov qword [rbp - 8], rax
jmp 0x2fc4d9d0e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d9d02
cmp qword [rbp - 0x10], 0
je 0x2fc4d9d02
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d9cc8
lea rax, [0x2fc4fc0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d9d2b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d9e30
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d9e58
mov eax, 0
jmp 0x2fc4d9ea6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d9e81
mov eax, 0
jmp 0x2fc4d9ea6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d9ea1
mov eax, 0
jmp 0x2fc4d9ea6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d9eac
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d9f2a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d9f21
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d9f21
mov rax, qword [rbp - 8]
jmp 0x2fc4d9f3f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d9ef4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140013590
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x40
mov rbp, rcx
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_GetLastActivePopup]
mov rcx, rax
mov rdi, rax
call qword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x1400135c5
mov rcx, rdi
call qword [sym.imp.USER32.dll_OpenIcon]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
test eax, eax
je 0x140013658
mov qword [rsp + 0x50], rsi
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebx, eax
je 0x140013607
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, 1
mov ecx, ebx
mov edx, eax
mov r8d, esi
call qword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
jne 0x140013609
xor esi, esi
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetForegroundWindow]
mov rcx, qword [rbp + 8]
xor r9d, r9d
mov dword [rsp + 0x30], 3
xor r8d, r8d
mov dword [rsp + 0x28], 0
xor edx, edx
mov dword [rsp + 0x20], 0
call qword [sym.imp.USER32.dll_SetWindowPos]
test esi, esi
mov rsi, qword [rsp + 0x50]
je 0x140013658
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r8d, r8d
mov ecx, ebx
mov edx, eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140014a30
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, rdx
lea r8, str.DIGITALPERSONA_HTMLHELP
mov rsi, rcx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rsi], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140014ac2
mov rcx, qword [rsi]
xor edi, edi
test rcx, rcx
je 0x140014a79
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi], rdi
mov rcx, rbx
call fcn.140014c50
lea rcx, str.DIGITALPERSONA_HTMLHELP
mov dword [rsp + 0x40], 8
call qword [sym.imp.USER32.dll_RegisterWindowMessageW]
xor r9d, r9d
mov qword [rsp + 0x20], rdi
mov r8d, eax
lea rdx, [rsp + 0x40]
lea ecx, [r9 + 0x32]
call qword [sym.imp.USER32.dll_BroadcastSystemMessageW]
xor al, al
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
lea rcx, [rsi + 8]
test rbx, rbx
jne 0x140014acf
xor edi, edi
jmp 0x140014adf
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], 0
jne 0x140014ad3
mov edi, eax
mov r8d, edi
mov rdx, rbx
call fcn.140014e60
mov rbx, qword [rsp + 0x48]
mov al, 1
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140015500
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x250
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x14003d020]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
xor edx, edx
mov r8d, 0x20a
lea rcx, [rsp + 0x30]
call fcn.14001b300
mov edx, 0x104
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rcx, [rsp + 0x30]
or rax, 0xffffffffffffffff
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x140015552
cmp word [rsp + rax*2 + 0x2e], 0x5c
je 0x140015589
or r9, 0xffffffffffffffff
lea r8, [0x1400369d8]
mov edx, 0x104
lea rcx, [rsp + 0x30]
call fcn.140021700
xor eax, eax
mov word [rsp + 0x236], ax
lea r8, str.dpappver.dll
mov edx, 0x104
lea rcx, [rsp + 0x30]
call fcn.140021868
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x1400155d3
lea rdx, str.HeapDetectionStart
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400155d3
mov rcx, rbx
call rax
nop
mov eax, 1
jmp 0x1400155d3
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140019920
add rsp, 0x250
pop rbx
ret
Function at 0x1400155f0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
xor esi, esi
mov ebx, esi
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x48], rsi
mov edi, esi
mov qword [rsp + 0x70], rsi
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREPoliciesDigitalPersonaAltus
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400156ca
mov dword [rsp + 0x40], esi
mov rbx, qword [rsp + 0x70]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x70], 1
mov dword [rsp + 0x78], 4
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x80]
xor r8d, r8d
lea rdx, str.NetworkSupport
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400156b0
cmp dword [rsp + 0x80], 4
jne 0x1400156b0
cmp dword [rsp + 0x70], esi
sete dil
test rbx, rbx
je 0x1400156c6
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, rsi
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x40], esi
test rbx, rbx
je 0x1400156dd
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x38], rsi
mov eax, edi
mov dword [rsp + 0x40], esi
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400158e0
Capabilities:
Create directory

Disassembly:
push rbp
push r14
push r15
sub rsp, 0x40
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x10], 0xfffffffffffffffe
mov qword [rbp + 0x40], rbx
mov qword [rbp + 0x48], rsi
mov qword [rbp + 0x50], rdi
mov rax, qword [0x14003d020]
xor rax, rbp
mov qword [rbp + 0x18], rax
mov r15, rcx
test rcx, rcx
je 0x140015a73
cmp word [rcx], 0
je 0x140015a73
xor esi, esi
mov ebx, esi
mov qword [rbp + 8], rbx
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rcx + rdi*2], 0
jne 0x140015933
add rdi, 0xa
lea r14, [rdi + rdi]
cmp r14, 0x400
ja 0x140015980
mov rcx, r14
call fcn.140014960
test al, al
je 0x140015980
lea rax, [r14 + 0xf]
cmp rax, r14
ja 0x14001596d
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.14001a420
sub rsp, rax
lea r14, [rsp + 0x20]
jmp 0x1400159b1
mov rax, r14
not rax
cmp rax, 0x10
jb 0x140015a68
lea rcx, [r14 + 0x10]
call fcn.140021104
test rax, rax
jne 0x1400159a3
mov r14, rsi
jmp 0x1400159b1
mov qword [rax], rsi
mov rbx, rax
mov qword [rbp + 8], rax
lea r14, [rax + 0x10]
test r14, r14
jne 0x1400159c0
mov esi, 0x8007000e
jmp 0x140015a40
or r9, 0xffffffffffffffff
mov r8, r15
mov rdx, rdi
mov rcx, r14
call fcn.1400219b0
mov qword [rbp], rsi
lea r8, [rbp]
lea rdx, [0x1400369d8]
mov rcx, r14
call fcn.140021978
test rax, rax
je 0x140015a40
mov edi, 0x5c
mov rcx, r14
call fcn.140015750
test al, al
jne 0x140015a0e
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x140015a2b
lea r8, [rbp]
lea rdx, [0x1400369d8]
xor ecx, ecx
call fcn.140021978
test rax, rax
je 0x140015a40
mov word [rax - 2], di
jmp 0x1400159f3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test eax, eax
jle 0x140015a40
movzx esi, ax
or esi, 0x80070000
test rbx, rbx
je 0x140015a64
nop word [rax + rax]
mov rcx, rbx
mov rbx, qword [rbx]
mov qword [rbp + 8], rbx
call fcn.14001df3c
test rbx, rbx
jne 0x140015a50
mov eax, esi
jmp 0x140015a78
mov ecx, 0x80070216
call fcn.140013350
nop
mov eax, 0x80070057
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.140019920
mov rbx, qword [rbp + 0x40]
mov rsi, qword [rbp + 0x48]
mov rdi, qword [rbp + 0x50]
lea rsp, [rbp + 0x20]
pop r15
pop r14
pop rbp
ret
Function at 0x140017560
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x14003f278]
test rax, rax
jne 0x1400176c9
lea rcx, [rsp + 0x38]
call fcn.140015b00
nop
xor ebx, ebx
mov dword [rsp + 0x60], ebx
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14001767f
mov dword [rsp + 0x68], 4
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
xor r8d, r8d
lea rdx, str.DoTrace
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001767f
cmp dword [rsp + 0x70], 4
jne 0x14001767f
cmp dword [rsp + 0x60], ebx
seta al
test al, al
je 0x14001767f
mov dword [rsp + 0x60], ebx
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140017665
mov dword [rsp + 0x68], 4
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
xor r8d, r8d
lea rdx, str.TraceToFile
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140017665
cmp dword [rsp + 0x70], 4
jne 0x140017665
cmp dword [rsp + 0x60], 1
je 0x140017665
lea ecx, [rbx + 8]
call fcn.14001a0d8
mov qword [rsp + 0x60], rax
lea rcx, vtable.DPTraceNS::COutput.0
mov qword [rax], rcx
lea rcx, vtable.DPTraceNS::CNoOutput.0
mov qword [rax], rcx
jmp 0x1400176a2
mov ecx, 0x220
call fcn.14001a0d8
mov qword [rsp + 0x60], rax
mov rcx, rax
call fcn.1400176d0
nop
jmp 0x1400176a2
mov ecx, 8
call fcn.14001a0d8
mov qword [rsp + 0x60], rax
lea rcx, vtable.DPTraceNS::COutput.0
mov qword [rax], rcx
lea rcx, vtable.DPTraceNS::CNoOutput.0
mov qword [rax], rcx
mov qword [0x14003f278], rax
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400176c5
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x38], rbx
mov rax, qword [0x14003f278]
mov dword [rsp + 0x40], ebx
add rsp, 0x50
pop rbx
ret
Function at 0x140017d80
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rsi, r8
mov rcx, qword [rcx + 8]
mov rbx, rdx
cmp rcx, 0xffffffffffffffff
je 0x140017de7
mov r9d, 2
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
movzx eax, word [rbx + 5]
test ax, ax
je 0x140017dc9
movzx r8d, ax
lea rdx, [rbx + 7]
call fcn.140018670
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x40]
mov r8d, esi
mov qword [rsp + 0x20], 0
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140017e00
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x170
mov rax, qword [0x14003d020]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x105
call fcn.14001b300
xor r8d, r8d
mov dword [rsp + 0x30], 0
lea edx, [r8 + 0xa]
call fcn.140015430
test al, al
je 0x140017e58
lea r8, str.OS:_Windows10_r_n
jmp 0x140017f30
call fcn.1400152d0
test al, al
je 0x140017e7f
mov edx, 6
lea r8d, [rdx - 4]
call fcn.140015430
test al, al
je 0x140017e7f
lea r8, str.OS:_Server2012_r_n
jmp 0x140017f30
mov edx, 6
lea r8d, [rdx - 4]
call fcn.140015430
test al, al
je 0x140017e9d
lea r8, str.OS:_Windows8_r_n
jmp 0x140017f30
mov edx, 6
lea r8d, [rdx - 5]
call fcn.140015430
test al, al
je 0x140017eb8
lea r8, str.OS:_Windows7_r_n
jmp 0x140017f30
call fcn.1400152d0
test al, al
je 0x140017eda
xor r8d, r8d
lea edx, [r8 + 6]
call fcn.140015430
test al, al
je 0x140017eda
lea r8, str.OS:_Server2008_r_n
jmp 0x140017f30
xor r8d, r8d
lea edx, [r8 + 6]
call fcn.140015430
test al, al
je 0x140017ef3
lea r8, str.OS:_WindowsVista_r_n
jmp 0x140017f30
mov edx, 5
lea r8d, [rdx - 4]
call fcn.140015430
test al, al
je 0x140017f0e
lea r8, str.OS:_WindowsXP_r_n
jmp 0x140017f30
call fcn.1400152d0
test al, al
je 0x140017f48
mov edx, 5
lea r8d, [rdx - 3]
call fcn.140015430
test al, al
je 0x140017f48
lea r8, str.OS:_Server2003_r_n
or rbx, 0xffffffffffffffff
lea rcx, [rsp + 0x40]
mov r9, rbx
mov edx, 0x105
call fcn.14002132c
jmp 0x140017f96
xor r8d, r8d
lea edx, [r8 + 5]
call fcn.140015430
or rbx, 0xffffffffffffffff
lea rcx, [rsp + 0x40]
mov edx, 0x105
test al, al
je 0x140017f77
mov r9, rbx
lea r8, str.OS:_Windows2000_r_n
call fcn.14002132c
jmp 0x140017f96
mov eax, dword [rsp + 0x48]
lea r9, str.OS:_UNKNOWN_OS_Major:_u_Minor:_u__r_n
mov dword [rsp + 0x28], eax
mov r8, rbx
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x20], eax
call fcn.1400150b0
lea rax, [rsp + 0x40]
mov r8, rbx
nop
inc r8
cmp byte [rax + r8], 0
jne 0x140017fa0
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
call fcn.140015370
lea r9, str.ServicePack:__ls_r_n
mov qword [rsp + 0x20], rax
mov r8, rbx
lea rcx, [rsp + 0x40]
mov edx, 0x105
call fcn.1400150b0
lea rax, [rsp + 0x40]
nop
inc rbx
cmp byte [rax + rbx], 0
jne 0x140017ff0
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x30]
mov r8, rbx
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140019920
mov rbx, qword [rsp + 0x188]
add rsp, 0x170
pop rdi
ret
Function at 0x140018040
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x290]
sub rsp, 0x390
mov rax, qword [0x14003d020]
xor rax, rsp
mov qword [rbp + 0x280], rax
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x105
call fcn.14001b300
xor esi, esi
lea rax, [rsp + 0x30]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x3c], esi
lea rdx, str.SOFTWAREDigitalPersonaProducts
mov qword [rsp + 0x30], rsi
mov rcx, 0xffffffff80000002
mov ebx, esi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14001824e
xor edx, edx
lea rcx, [rbp + 0x60]
mov r8d, 0x105
call fcn.14001b300
mov rcx, qword [rsp + 0x30]
lea r8, [rbp + 0x60]
mov r9d, 0x104
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x140018243
xor edx, edx
lea rcx, [rbp + 0x170]
mov r8d, 0x105
call fcn.14001b300
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rsp + 0x40], rsi
lea rdx, [rbp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400181b7
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rdx, str.Version
lea rax, [rbp + 0x170]
mov dword [rsp + 0x38], 0x104
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
or r8, 0xffffffffffffffff
lea rcx, [rsp + 0x50]
mov edx, 0x104
test eax, eax
jne 0x140018191
lea rax, [rbp + 0x170]
mov qword [rsp + 0x28], rax
lea r9, str.Product:__s__Version:__s_r_n
jmp 0x14001819c
mov dword [rsp + 0x28], eax
lea r9, str.Product:__s__Version:_ERROR_0x_X__r_n
lea rax, [rbp + 0x60]
mov qword [rsp + 0x20], rax
call fcn.1400150b0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400181de
mov dword [rsp + 0x28], eax
lea r9, str.Product:__s_ERROR_0x_X__r_n
lea rax, [rbp + 0x60]
or r8, 0xffffffffffffffff
mov edx, 0x104
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x50]
call fcn.1400150b0
movzx eax, word [0x140036d24]
or r8, 0xffffffffffffffff
mov word [rbp + 0x52], ax
movzx eax, byte [0x140036d26]
mov byte [rbp + 0x54], al
lea rax, [rsp + 0x50]
nop dword [rax]
inc r8
cmp byte [rax + r8], sil
jne 0x140018200
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x3c]
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x30]
lea r8, [rbp + 0x60]
inc ebx
mov r9d, 0x104
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x1400180f1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x280]
xor rcx, rsp
call fcn.140019920
lea r11, [rsp + 0x390]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x1400182f0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x290
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x18], 0xfffffffffffffffe
mov qword [rbp + 0x2a0], rbx
mov rax, qword [0x14003d020]
xor rax, rbp
mov qword [rbp + 0x240], rax
mov rbx, rdx
mov r13, rcx
lea rdx, str.VerQueryValueA
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
test rax, rax
jne 0x14001834d
xor al, al
jmp 0x140018518
lea rdx, str.GetFileVersionInfoSizeA
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x140018346
lea rdx, str.GetFileVersionInfoA
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
test rax, rax
je 0x140018346
xor edx, edx
mov r8d, 0x105
lea rcx, [rbp + 0x20]
call fcn.14001b300
mov r8d, 0x105
lea rdx, [rbp + 0x20]
mov rcx, qword [0x14003f2a8]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x140018346
xor edx, edx
lea rcx, [rbp + 0x20]
call rdi
mov esi, eax
test eax, eax
je 0x140018346
xor r12d, r12d
mov ebx, r12d
mov qword [rbp + 0x10], rbx
cmp esi, 0x400
ja 0x1400183fa
mov ecx, esi
call fcn.140014960
test al, al
je 0x1400183fa
lea rax, [rsi + 0xf]
cmp rax, rsi
ja 0x1400183e7
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.14001a420
sub rsp, rax
lea rdi, [rsp + 0x40]
jmp 0x14001841b
lea rcx, [rsi + 0x10]
call fcn.140021104
test rax, rax
jne 0x14001840d
mov rdi, r12
jmp 0x14001841b
mov qword [rax], r12
mov rbx, rax
mov qword [rbp + 0x10], rax
lea rdi, [rax + 0x10]
test rdi, rdi
je 0x1400184f2
mov r9, rdi
mov r8d, esi
xor edx, edx
lea rcx, [rbp + 0x20]
call r14
test eax, eax
je 0x1400184f2
mov qword [rbp + 8], r12
mov dword [rbp], r12d
lea r9, [rbp]
lea r8, [rbp + 8]
lea rdx, [0x140036f9c]
mov rcx, rdi
call r15
test eax, eax
je 0x1400184f2
xor edx, edx
mov r8d, 0x105
lea rcx, [rbp + 0x130]
call fcn.14001b300
mov dword [rbp + 4], r12d
mov r8, qword [rbp + 8]
movzx eax, word [r8 + 0x14]
movzx ecx, word [r8 + 0x16]
movzx edx, word [r8 + 8]
movzx r8d, word [r8 + 0xa]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], r8d
lea r9, str.FileVersion:__u._u._u._u_r_n
or rdi, 0xffffffffffffffff
mov r8, rdi
mov edx, 0x104
lea rcx, [rbp + 0x130]
call fcn.1400150b0
lea rax, [rbp + 0x130]
inc rdi
cmp byte [rax + rdi], 0
jne 0x1400184c7
mov r8, rdi
mov qword [rsp + 0x20], r12
lea r9, [rbp + 4]
lea rdx, [rbp + 0x130]
mov rcx, qword [r13 + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dil, 1
jmp 0x1400184f5
xor dil, dil
test rbx, rbx
je 0x140018514
nop word [rax + rax]
mov rcx, rbx
mov rbx, qword [rbx]
mov qword [rbp + 0x10], rbx
call fcn.14001df3c
test rbx, rbx
jne 0x140018500
movzx eax, dil
mov rcx, qword [rbp + 0x240]
xor rcx, rbp
call fcn.140019920
mov rbx, qword [rbp + 0x2a0]
lea rsp, [rbp + 0x250]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140018550
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x1a0
mov rax, qword [0x14003d020]
xor rax, rsp
mov qword [rsp + 0x190], rax
xor eax, eax
mov rdi, rcx
xor esi, esi
mov qword [rsp + 0x6a], rax
lea rcx, [rsp + 0x68]
mov word [rsp + 0x68], si
mov dword [rsp + 0x72], eax
mov word [rsp + 0x76], ax
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
xor edx, edx
lea rcx, [rsp + 0x80]
mov r8d, 0x105
call fcn.14001b300
movzx ecx, word [rsp + 0x74]
or rbx, 0xffffffffffffffff
movzx edx, word [rsp + 0x72]
movzx r8d, word [rsp + 0x70]
movzx r9d, word [rsp + 0x68]
movzx eax, word [rsp + 0x76]
movzx r10d, word [rsp + 0x6e]
movzx r11d, word [rsp + 0x6a]
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x48], ecx
lea rcx, [rsp + 0x80]
mov dword [rsp + 0x40], edx
mov edx, 0x104
mov dword [rsp + 0x38], r8d
mov r8, rbx
mov dword [rsp + 0x30], r9d
lea r9, str._02u__02u__04u__02u:_02u:_02u._03u_r_n
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], r11d
call fcn.1400150b0
lea rax, [rsp + 0x80]
mov dword [rsp + 0x60], esi
inc rbx
cmp byte [rax + rbx], sil
jne 0x140018621
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x60]
mov r8, rbx
mov qword [rsp + 0x20], rsi
lea rdx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140019920
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret