joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003b430
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 fcn.14004cbb0
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.14004cbb0
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x14003c102
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400626a8]
test eax, eax
je 0x14003c19a
lea rax, [0x140062680]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400626b0]
mov qword [rbp - 8], rax
jmp 0x14003c17e
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 0x14003c172
cmp qword [rbp - 0x10], 0
je 0x14003c172
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 0x14003c138
lea rax, [0x140062680]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14003c19b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14003c2a0
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 0x14003c2c8
mov eax, 0
jmp 0x14003c316
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 0x14003c2f1
mov eax, 0
jmp 0x14003c316
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 0x14003c311
mov eax, 0
jmp 0x14003c316
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14003c31c
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 0x14003c39a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14003c391
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 0x14003c391
mov rax, qword [rbp - 8]
jmp 0x14003c3af
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 0x14003c364
mov eax, 0
add rsp, 0x20
pop rbp
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.14000ab30
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.140015b40
test rax, rax
je 0x1400012be
mov rcx, rax
call fcn.1400012e0
mov qword [0x140089e20], rax
test rax, rax
je 0x1400012c5
call fcn.14000ab90
test eax, eax
je 0x140001288
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x80]
call fcn.14000ab30
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.14000ab30
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 0x14000158d
mov r9d, esi
lea rdx, [rsp + 0x30]
xor r8d, r8d
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0x102
jne 0x14000158d
mov ebx, r14d
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
cmp eax, 0xffffffff
je 0x14000157f
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x68]
xor ecx, ecx
mov r8d, 8
mov edx, eax
call sub.WTSAPI32.dll_WTSQuerySessionInformationA
test eax, eax
je 0x14000157f
mov rcx, qword [rsp + 0x68]
mov eax, dword [rcx]
test eax, eax
jne 0x140001553
call sub.WTSAPI32.dll_WTSFreeMemory
mov ebx, 1
jmp 0x14000157f
cmp eax, 1
jne 0x140001564
call sub.WTSAPI32.dll_WTSFreeMemory
mov ebx, 1
jmp 0x14000157f
cmp eax, 2
jne 0x14000157a
call sub.WTSAPI32.dll_WTSFreeMemory
mov ebx, 2
mov esi, 0xfa
jmp 0x14000157f
call sub.WTSAPI32.dll_WTSFreeMemory
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.14000d4e0
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.14000d4e0
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.14000d4e0
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.14000d4e0
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.14000d4e0
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.14000d4e0
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, 0x100
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.140016dc0
mov dword [rbp + 0x1f0], 0x100
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 [0x140071e38]
movsd qword [rcx], xmm0
mov dword [rcx + 8], eax
lea rdx, [rsp + 0x30]
mov byte [rbp + 0x1e0], r14b
lea rcx, [rbp - 0x70]
call fcn.14000b1f0
test al, al
je 0x1400037eb
mov qword [rsp + 0x2e8], rsi
lea rdx, [rsp + 0x30]
lea rsi, [rbx + 0x44]
mov rcx, rsi
call fcn.14000b9d0
test al, al
je 0x1400037e3
cmp word [rdi], 0
je 0x14000371c
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14000b9d0
test al, al
je 0x1400037e3
mov r8d, dword [rbp + 0x1f0]
lea rdx, [rbp - 0x70]
lea rcx, [rbp + 0x90]
call fcn.14000ada0
lea r9, [rbp + 0x1e0]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x58]
lea rcx, [rbp + 0x90]
call fcn.14000af10
lea rcx, [rbp + 0x90]
movzx r14d, al
call fcn.14000aed0
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.14000a0c0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x58]
call fcn.1400096b0
mov ecx, 3
call fcn.14000cb50
or dword [rbx + 0x40], 1
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.14000b9d0
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 0x140005d30
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.140015b40
mov rbx, rax
test rax, rax
je 0x140005ebb
xor r15d, r15d
xor edx, edx
mov r8d, 0xb8
mov qword [rax], r15
mov rcx, rax
mov qword [rax + 8], r15
mov qword [rax + 0x68], r15
mov qword [rax + 0x70], r15
mov dword [rax + 0x78], r15d
call fcn.140016dc0
mov rax, qword [rsp + 0x78]
lea r8, [0x140004d70]
mov qword [rbx + 0x10], rax
lea edx, [r15 + 8]
mov eax, dword [rsp + 0x70]
mov r9, rbx
mov dword [rbx + 0x3c], eax
xor ecx, ecx
movzx eax, byte [rsp + 0x80]
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 0x140005eae
test rdi, rdi
je 0x140005e5d
cmp qword [rdi + 0x1c8], r15
jne 0x140005e34
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 0x140005ebd
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 0x140005ebd
cmp qword [rsi + 0x3a0], r15
jne 0x140005e85
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 0x140005ebd
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 0x140005ebd
mov edx, 0xb8
mov rcx, rbx
call fcn.140015b7c
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
Function at 0x140006560
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x10], edx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov bl, 1
xor r12d, r12d
mov byte [rsp + 0x90], bl
mov r13d, r12d
mov r14, rcx
nop word [rax + rax]
cmp r13d, dword [r14 + 0x48]
jae 0x140006778
mov eax, r13d
mov ebp, r12d
imul r15, rax, 0x3b0
mov rax, qword [r14 + 0x50]
cmp dword [r15 + rax + 0x248], 0
jbe 0x140006739
nop word [rax + rax]
mov r12, qword [0x140089e58]
lea rsi, [r15 + rax]
mov eax, ebp
mov ecx, 0xb8
imul rdi, rax, 0x230
add rdi, qword [rsi + 0x340]
call fcn.140015b40
mov rbx, rax
test rax, rax
je 0x1400067ab
xor eax, eax
xor edx, edx
mov r8d, 0xb8
mov qword [rbx], rax
mov rcx, rbx
mov qword [rbx + 8], rax
mov qword [rbx + 0x68], rax
mov qword [rbx + 0x70], rax
mov dword [rbx + 0x78], eax
call fcn.140016dc0
mov eax, dword [rsp + 0x88]
lea r8, [0x140004d70]
mov qword [rbx + 0x10], r12
mov r9, rbx
xor r12d, r12d
mov qword [rbx + 0x28], rdi
mov dword [rbx + 0x3c], r12d
xor ecx, ecx
mov byte [rbx + 0x60], r12b
mov qword [rbx + 0x20], rsi
mov qword [rbx + 0x18], r14
lea edx, [r12 + 8]
mov dword [rbx + 0x38], eax
movups xmm0, xmmword [r14 + 0x6750]
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], r12d
movups xmmword [rbx + 0x82], xmm0
movups xmm0, xmmword [r14 + 0x6760]
movups xmmword [rbx + 0xa2], xmm0
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x50], rax
test rax, rax
je 0x140006793
test rdi, rdi
je 0x1400066d8
cmp qword [rdi + 0x1c8], r12
jne 0x1400066b1
mov qword [rdi + 0x1c0], rbx
mov qword [rdi + 0x1c8], rbx
mov qword [rbx], r12
mov qword [rbx + 8], r12
inc dword [rdi + 0x1d0]
jmp 0x14000671d
mov qword [rbx], r12
mov rax, qword [rdi + 0x1c8]
mov qword [rbx + 8], rax
mov rax, qword [rdi + 0x1c8]
mov qword [rax], rbx
inc dword [rdi + 0x1d0]
mov qword [rdi + 0x1c8], rbx
jmp 0x14000671d
cmp qword [rsi + 0x3a0], r12
jne 0x1400066f8
mov qword [rsi + 0x398], rbx
mov qword [rsi + 0x3a0], rbx
mov qword [rbx], r12
mov qword [rbx + 8], r12
jmp 0x140006717
mov qword [rbx], r12
mov rax, qword [rsi + 0x3a0]
mov qword [rbx + 8], rax
mov rax, qword [rsi + 0x3a0]
mov qword [rax], rbx
mov qword [rsi + 0x3a0], rbx
inc dword [rsi + 0x3a8]
mov rax, qword [r14 + 0x50]
inc ebp
cmp ebp, dword [rax + r15 + 0x248]
jb 0x1400065c0
movzx ebx, byte [rsp + 0x90]
mov rcx, qword [0x140089e58]
xor r8d, r8d
mov rdx, qword [r14 + 0x50]
mov r9d, dword [rsp + 0x88]
add rdx, r15
mov byte [rsp + 0x30], 0
mov qword [rsp + 0x28], rcx
mov rcx, r14
mov dword [rsp + 0x20], r12d
call fcn.140005d30
test al, al
je 0x1400067b9
inc r13d
test bl, bl
jne 0x140006590
movzx eax, bl
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov edx, 0xb8
mov rcx, rbx
call fcn.140015b7c
xor bl, bl
mov byte [rsp + 0x90], bl
jmp 0x140006739
xor r12d, r12d
xor bl, bl
mov byte [rsp + 0x90], bl
jmp 0x140006739
xor al, al
jmp 0x14000677b
Function at 0x140006880
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov ebx, edx
lea rcx, str.NotifyAmdlogState_Enter_n
call fcn.14000d4e0
sub ebx, 1
je 0x14000691b
sub ebx, 1
je 0x140006905
sub ebx, 1
je 0x14000691b
cmp ebx, 1
jne 0x140006994
lea rcx, str.NotifyAmdlogState_Driver_SystemChange_is_called_n
call fcn.14000d4e0
mov rcx, qword [rdi + 0x6740]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call fcn.140007bc0
mov rcx, qword [0x140089e48]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
cmp qword [0x140089e58], 0
jne 0x1400068f8
mov rcx, rdi
call fcn.140007a40
mov rcx, rdi
call fcn.1400084a0
jmp 0x140006987
mov rcx, rdi
call fcn.140007a40
lea rcx, str.NotifyAmdlogState_Driver_Loaded_n
call fcn.14000d4e0
jmp 0x140006994
lea rcx, str.NotifyAmdlogState_Driver_Unload_Or_End_is_called_n
call fcn.14000d4e0
mov rcx, qword [rdi + 0x6740]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call fcn.140007bc0
mov rcx, qword [0x140089e58]
test rcx, rcx
je 0x14000697a
mov r8, qword [0x140089e38]
xor r9d, r9d
mov rdx, qword [rdi + 0x6748]
call sym.amdfendrsr.exe_amdlogumlib_register_systemchangeevent2
mov rcx, qword [0x140089e58]
call sym.amdfendrsr.exe_close_amdlog_umlib
mov qword [0x140089e58], 0
mov rcx, qword [0x140089e38]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [rdi + 0x6740]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea rcx, str.NotifyAmdlogState_exit_n
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.14000d4e0
Function at 0x14000bad0
Capabilities:
Compress data via winapi

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov dword [rax + 0x18], r8d
mov qword [rax + 0x10], rdx
push rbx
push rdi
push r15
sub rsp, 0x80
mov rdi, rcx
xor r15b, r15b
xor ecx, ecx
mov ebx, 0x200
mov dword [rax + 8], ecx
mov r11d, ebx
mov dword [rax - 0x58], ecx
mov r10d, dword [rdi + 4]
sub r10d, 1
je 0x14000bb18
cmp r10d, 1
jne 0x14000bb1b
mov r11d, 0x100
jmp 0x14000bb1b
mov r11d, ecx
mov ecx, dword [rdi]
mov qword [rsp + 0x70], rsi
sub ecx, 1
je 0x14000bb41
sub ecx, 1
je 0x14000bb3a
cmp ecx, 1
jne 0x14000bcb0
lea esi, [rcx + 3]
jmp 0x14000bb46
mov esi, 3
jmp 0x14000bb46
mov esi, 2
cmp r11d, ebx
je 0x14000bcb0
test rdx, rdx
je 0x14000bcb0
test r8d, r8d
je 0x14000bcb0
test r9, r9
je 0x14000bcb0
mov qword [rsp + 0x68], r12
mov r12d, dword [rsp + 0xc0]
test r12d, r12d
je 0x14000bcab
mov qword [rsp + 0x60], r13
mov r13, qword [rsp + 0xc8]
test r13, r13
je 0x14000bca6
lea rcx, str.ntdll.dll
mov qword [rsp + 0x78], rbp
or si, r11w
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
test rax, rax
je 0x14000bca1
lea rdx, str.RtlGetCompressionWorkSpaceSize
mov qword [rsp + 0x58], r14
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.RtlCompressBuffer
mov rcx, rbp
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x48], rax
test r14, r14
je 0x14000bc9c
test rax, rax
je 0x14000bc9c
lea r8, [rsp + 0x40]
movzx ecx, si
lea rdx, [rsp + 0xa0]
call r14
test eax, eax
jne 0x14000bc9c
mov eax, dword [rsp + 0xa0]
test eax, eax
je 0x14000bc9c
mov ecx, eax
call fcn.140015bbc
mov rbp, rax
test rax, rax
je 0x14000bc9c
mov edx, dword [rdi + 8]
sub edx, 1
je 0x14000bc51
sub edx, 1
je 0x14000bc4c
sub edx, 1
je 0x14000bc45
mov ebx, 0x1000
jmp 0x14000bc51
mov ebx, 0x800
jmp 0x14000bc51
mov ebx, 0x400
mov r9, qword [rsp + 0xb8]
movzx ecx, si
mov r8d, dword [rsp + 0xb0]
mov rdx, qword [rsp + 0xa8]
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], r12d
call qword [rsp + reloc.ODBC32.dll_SQLBindParameter]
mov rcx, rbp
mov ebx, eax
call fcn.140015bc4
test ebx, ebx
movzx r15d, r15b
mov eax, 1
cmove r15d, eax
mov r14, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x78]
mov r13, qword [rsp + 0x60]
mov r12, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
movzx eax, r15b
add rsp, 0x80
pop r15
pop rdi
pop rbx
ret