joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400441d0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov rsi, rdx
mov qword [rsp + 0x30], 0
lea rdx, str.SoftwareAMDEEU
mov rdi, rcx
mov dword [rsp + 0x28], 0x20006
xor r9d, r9d
mov dword [rsp + 0x20], 0
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov ebx, 1
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x14004426c
mov rcx, qword [0x1400da5d8]
test rcx, rcx
je 0x14004425a
lea r9, str.SoftwareAMDEEU
mov dword [rsp + 0x20], eax
lea r8, str.WriteRegKey_RegCreateKeyEx_failed_for_pcPath___s_with_error_code_0x_08x.
lea edx, [rbx + 7]
call fcn.140040530
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
mov rcx, qword [rsp + 0x70]
mov r9d, 4
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x1400442c2
mov rcx, qword [0x1400da5d8]
test rcx, rcx
je 0x1400442c0
mov dword [rsp + 0x28], eax
lea r8, str.WriteRegKey_RegSetValueEx_failed_for_value___s_and_ulSize___d_with_error_code_0x_08x.
mov r9, rdi
mov dword [rsp + 0x20], 4
mov edx, 8
call fcn.140040530
xor ebx, ebx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x1400442e0
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 0x14004431d
sub r9d, edi
je 0x140044316
cmp r9d, edi
je 0x140044312
xor ebx, ebx
jmp 0x140044322
mov ebx, edi
jmp 0x140044322
mov ebx, 3
jmp 0x140044322
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 0x140044386
mov rcx, qword [0x1400da5d8]
test rcx, rcx
je 0x140044382
mov r9, rsi
mov dword [rsp + 0x20], eax
lea r8, str.WriteRegKey_RegCreateKeyEx_failed_for_pcPath___s_with_error_code_0x_08x.
mov edx, 8
call fcn.140040530
xor eax, eax
jmp 0x1400443ed
mov rax, qword [rsp + 0x90]
mov r9d, ebx
mov esi, dword [rsp + 0x98]
xor r8d, r8d
mov rcx, qword [rsp + 0x50]
mov rdx, rbp
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x1400443e0
mov rcx, qword [0x1400da5d8]
test rcx, rcx
je 0x1400443de
mov dword [rsp + 0x28], eax
lea r8, str.WriteRegKey_RegSetValueEx_failed_for_value___s_and_ulSize___d_with_error_code_0x_08x.
mov r9, rbp
mov dword [rsp + 0x20], esi
mov edx, 8
call fcn.140040530
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 0x140044410
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x60
mov qword [r11 - 0x28], 0
lea rax, [r11 - 0x18]
mov qword [r11 - 0x30], rax
mov rbp, r9
mov qword [r11 - 0x38], 0
mov rsi, r8
mov dword [rsp + 0x28], 0x20006
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 0
mov rdi, rdx
mov ebx, 1
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x140044490
mov rcx, qword [0x1400da5d8]
test rcx, rcx
je 0x14004448c
mov r9, rdi
mov dword [rsp + 0x20], eax
lea r8, str.WriteUCODEStringRegKey_RegCreateKeyEx_failed_for_pcPath___s_with_error_code_0x_08x.
lea edx, [rbx + 7]
call fcn.140040530
xor eax, eax
jmp 0x1400444ef
mov edi, dword [rsp + 0x90]
mov r9d, ebx
mov rcx, qword [rsp + 0x50]
xor r8d, r8d
mov dword [rsp + 0x28], edi
mov rdx, rsi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1400444e2
mov rcx, qword [0x1400da5d8]
test rcx, rcx
je 0x1400444e0
mov dword [rsp + 0x28], eax
lea r8, str.WriteUCODEStringRegKey_RegSetValueExW_failed_for_value___s_and_ulSize___d_with_error_code_0x_08x.
mov r9, rsi
mov dword [rsp + 0x20], edi
mov edx, 8
call fcn.140040530
xor ebx, ebx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret

Function at 0x1400445f0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
xor ebx, ebx
mov rdi, rcx
test rcx, rcx
je 0x14004461a
mov edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rdi], rax
test rdi, rdi
setne bl
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140044640
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140040b70
Function at 0x140044740
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
lea rax, vtable.InterfaceWin7.0
xor edi, edi
mov qword [rcx], rax
mov rbx, rcx
mov dword [rcx + 8], edi
mov qword [rcx + 0x10], rdi
lea rcx, str.user32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x1400447a5
mov rcx, qword [0x1400da5d8]
test rcx, rcx
je 0x140044924
lea r8, str.InterfaceWin7::InterfaceWin7_LoadLibrary_for_user32.dll_failed
mov edx, 0x8000
call fcn.140040750
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
lea rdx, [0x1400b6658]
mov qword [rbx + 0x18], rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x18], rax
test rax, rax
jne 0x1400447f1
mov rcx, qword [0x1400da5d8]
test rcx, rcx
je 0x140044924
lea r8, str.InterfaceWin7::InterfaceWin7_GetProcAddress_for_GetDisplayConfigBufferSizes_failed
mov edx, 0x8000
call fcn.140040750
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [rbx + 0x10]
lea rdx, [0x1400b66d8]
mov qword [rbx + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x20], rax
test rax, rax
jne 0x14004483e
mov rcx, qword [0x1400da5d8]
test rcx, rcx
je 0x140044924
lea r8, str.InterfaceWin7::InterfaceWin7_GetProcAddress_for_QueryDisplayConfig_failed
mov edx, 0x8000
call fcn.140040750
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [rbx + 0x10]
lea rdx, [0x1400b6740]
mov qword [rbx + 0x28], rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x28], rax
test rax, rax
jne 0x14004488b
mov rcx, qword [0x1400da5d8]
test rcx, rcx
je 0x140044924
lea r8, str.InterfaceWin7::InterfaceWin7_GetProcAddress_for_SetDisplayConfig_failed
mov edx, 0x8000
call fcn.140040750
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [rbx + 0x10]
lea rdx, [0x1400b67a8]
mov qword [rbx + 0x30], rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x30], rax
test rax, rax
jne 0x1400448d4
mov rcx, qword [0x1400da5d8]
test rcx, rcx
je 0x140044924
lea r8, str.InterfaceWin7::InterfaceWin7_GetProcAddress_for_DisplayConfigGetDeviceInfo_failed
mov edx, 0x8000
call fcn.140040750
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [rbx + 0x10]
lea rdx, [0x1400b6828]
mov qword [rbx + 0x38], rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x38], rax
test rax, rax
jne 0x14004491d
mov rcx, qword [0x1400da5d8]
test rcx, rcx
je 0x140044924
lea r8, str.InterfaceWin7::InterfaceWin7_GetProcAddress_for_DisplayConfigSetDeviceInfo_failed
mov edx, 0x8000
call fcn.140040750
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov dword [rbx + 8], 1
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140045950
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x50
mov r15d, edx
mov rbp, rcx
xor r12d, r12d
lea rdx, [rax + 0x18]
lea rcx, str.HKPreferenceUseCCD
mov dword [rax + 0x18], r12d
mov edi, r12d
mov r14d, r8d
mov ebx, r8d
call fcn.140043d40
mov r9d, dword [rsp + 0x80]
test eax, eax
cmove r9d, r12d
mov dword [rsp + 0x80], r9d
test ebx, ebx
je 0x1400459b9
nop dword [rax]
lea eax, [rbx - 1]
inc edi
and ebx, eax
jne 0x1400459b0
cmp r9d, 1
jne 0x1400459d4
mov edx, r9d
lea rcx, str.DisplaySwitch
call qword [sym.imp.KERNEL32.dll_WinExec]
jmp 0x140045b5f
mov ecx, 0x48
mov qword [rsp + 0x30], r12
call fcn.14004feec
mov qword [rsp + 0x38], rax
test rax, rax
je 0x140045a0d
xorps xmm0, xmm0
mov dword [rsp + 0x34], 1
movups xmmword [rax], xmm0
xor ecx, ecx
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
mov qword [rax + 0x40], rcx
mov ecx, 0x40
mov qword [rsp + 0x40], r12
call fcn.14004feec
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140045a40
xorps xmm0, xmm0
mov dword [rsp + 0x44], 1
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
lea r9, [rsp + 0x40]
xor edx, edx
lea r8, [rsp + 0x30]
mov rcx, rbp
mov ebx, r12d
call fcn.140046610
test eax, eax
jne 0x140045a8e
mov rcx, qword [0x1400da5d8]
test rcx, rcx
je 0x140045a78
lea r8, str.CCDGetConnectedDisplayCount_GetPathAndModeList_failed
mov edx, 0x8000
call fcn.140040750
mov rcx, qword [rsp + 0x48]
call fcn.14004fef4
mov rcx, qword [rsp + 0x38]
call fcn.14004fef4
jmp 0x140045ae6
mov r9d, dword [rsp + 0x30]
mov edx, r12d
test r9d, r9d
je 0x140045acd
mov r8, qword [rsp + 0x38]
cmp edx, r9d
mov rax, r8
cmovae rax, r12
cmp dword [rax + 0x3c], r12d
je 0x140045ac2
cmp edx, r9d
mov rax, r8
cmovae rax, r12
cmp dword [rax + 8], r12d
jne 0x140045ac2
inc ebx
inc edx
add r8, 0x48
cmp edx, r9d
jb 0x140045aa0
mov rcx, qword [rsp + 0x48]
call fcn.14004fef4
mov rcx, qword [rsp + 0x38]
call fcn.14004fef4
cmp ebx, 2
ja 0x140045b51
cmp edi, 1
jbe 0x140045b51
cmp dword [rsp + 0x80], 2
jne 0x140045b51
xor r9d, r9d
mov dword [rsp + 0x20], 0x86
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [rbp + 0x28]
test eax, eax
je 0x140045b5f
xor r9d, r9d
mov dword [rsp + 0x20], 0x82
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [rbp + 0x28]
test eax, eax
je 0x140045b5f
mov rcx, qword [0x1400da5d8]
test rcx, rcx
je 0x140045b5f
mov r9d, eax
mov dword [rsp + 0x20], 0x82
lea r8, str.CCDApplyMultiDisplayDBConfig_SetDisplayConfig_failed__result___x__flags___x
mov edx, 0x8000
call fcn.140040750
jmp 0x140045b5f
mov r8d, r14d
mov edx, r15d
mov rcx, rbp
call fcn.140045180
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x88]
add rsp, 0x50
pop r15
pop r14
pop r12
ret
Function at 0x14004a590
Capabilities:
Check mutex on windows

Disassembly:
push rbx
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor ecx, ecx
lea rdx, str.agfb_0x_x
mov qword [rsp + 0x30], rcx
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
mov r8d, eax
movups xmmword [rsp + 0x20], xmm0
call fcn.140003f20
lea r8, [rsp + 0x20]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov rbx, rax
test rax, rax
je 0x14004a5f1
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14004a5f9
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rax, rbx
add rsp, 0x40
pop rbx
ret

Function at 0x14004ab50
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov byte [rdx], 0
mov rdi, rdx
cmp byte [0x1400e072c], 0
mov rbx, rcx
je 0x14004abcd
mov r9, rcx
mov qword [rsp + 0x28], 0
xor ecx, ecx
mov dword [rsp + 0x20], 0
lea r8, [0x14004a610]
mov edx, 8
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x14004abc2
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbx + 0x24]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rax, qword [0x1400e0710]
test rax, rax
jne 0x14004ac28
call fcn.14004e6a0
mov rdx, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x14004ac0e
mov qword [0x1400e0710], rax
mov byte [rdi], 1
mov rax, qword [0x1400e0710]
mov qword [rbx + 0x24], rax
mov rax, rdx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rax, qword [0x1400e0710]
xor edx, edx
mov qword [rbx + 0x24], rax
mov eax, edx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov qword [rbx + 0x24], rax
mov rdx, rax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14004ea30
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
lea rax, [0x1400bbef0]
mov byte [rcx + 8], 0
mov qword [rcx], rax
mov rbx, rcx
xor edi, edi
mov qword [rcx + 0x10], rdi
lea rcx, str.gdi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rbx + 0x10], rax
test rax, rax
je 0x14004eb68
lea rdx, str.D3DKMTCloseAdapter
mov qword [rbx + 0x18], rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x1400bbf20]
mov qword [rbx + 0x18], rax
mov qword [rbx + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x10]
lea rdx, str.D3DKMTEscape
mov qword [rbx + 0x20], rax
mov qword [rbx + 0x28], rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x10]
lea rdx, str.D3DKMTInvalidateActiveVidPn
mov qword [rbx + 0x28], rax
mov qword [rbx + 0x30], rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x10]
lea rdx, str.D3DKMTOpenAdapterFromDeviceName
mov qword [rbx + 0x30], rax
mov qword [rbx + 0x38], rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x10]
lea rdx, str.D3DKMTOpenAdapterFromHdc
mov qword [rbx + 0x38], rax
mov qword [rbx + 0x40], rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x10]
lea rdx, str.D3DKMTOpenAdapterFromGdiDisplayName
mov qword [rbx + 0x40], rax
mov qword [rbx + 0x48], rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x10]
lea rdx, str.D3DKMTOpenAdapterFromLuid
mov qword [rbx + 0x48], rax
mov qword [rbx + 0x50], rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x1400bbff0]
mov qword [rbx + 0x50], rax
mov qword [rbx + 0x58], rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x1400bc010]
mov qword [rbx + 0x58], rax
mov qword [rbx + 0x60], rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x60], rax
mov byte [rbx + 8], 1
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14004f730
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 0x14004f788
sub r9d, edi
je 0x14004f781
sub r9d, edi
je 0x14004f77a
sub r9d, edi
je 0x14004f773
cmp r9d, edi
je 0x14004f76c
mov ebx, edi
jmp 0x14004f78d
mov ebx, 0xffff
jmp 0x14004f78d
mov ebx, 0x40
jmp 0x14004f78d
mov ebx, 2
jmp 0x14004f78d
mov ebx, 8
jmp 0x14004f78d
mov ebx, 0x10
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 0x14004f7bd
mov rdx, rsi
lea rcx, str.ReadRegKey_RegOpenKeyEx_failed_for_pcPath___s.
call fcn.14004fc00
xor eax, eax
jmp 0x14004f81e
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 0x14004f811
mov rdx, rbp
lea rcx, str.ReadRegKey_RegGetValue_failed_for_value___s.
call fcn.14004fc00
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 0x14004fc00
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbx
sub rsp, 0x250
cmp byte [0x1400e0ec8], 0
mov rbx, rcx
je 0x14004fc9b
mov qword [rax - 0x10], rdi
lea rcx, [rsp + 0x40]
xor edx, edx
lea rdi, [rax + 0x10]
mov r8d, 0x200
call fcn.1400514f0
call fcn.140003e30
mov qword [rsp + 0x30], rdi
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rbx
mov ebx, 0x1ff
mov rcx, qword [rax]
mov r9d, ebx
lea r8d, [rbx + 1]
call fcn.140075e50
test eax, eax
mov ecx, 0xffffffff
cmovs eax, ecx
cmp eax, ecx
lea rcx, [rsp + 0x40]
cmove eax, ebx
cdqe
mov byte [rsp + rax + 0x40], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rdi, qword [rsp + 0x248]
add rsp, 0x250
pop rbx
ret
Function at 0x140001260
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov r8d, dword [0x140005708]
xor r14d, r14d
mov rbx, rcx
test r8d, r8d
je 0x14000139e
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x14000139e
cmp qword [rbx + 0x18], 0xf
mov rcx, rbx
jbe 0x1400012ae
mov rcx, qword [rbx]
mov rdi, 0xffffffffffffffff
mov r8, rdi
nop dword [rax + rax]
inc r8
cmp byte [rcx + r8], r14b
jne 0x1400012c0
inc r8
mov dword [rsp + 0x20], 4
xor edx, edx
mov r9d, 0x1000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
cmp qword [rbx + 0x18], 0xf
mov rbp, rax
jbe 0x1400012f7
mov rcx, qword [rbx]
mov r8, rcx
jmp 0x140001300
mov r8, rbx
mov rcx, rbx
nop dword [rax]
cmp byte [rcx + rdi + 1], r14b
lea rdi, [rdi + 1]
jne 0x140001300
lea r9, [rdi + 1]
mov qword [rsp + 0x20], r14
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.LoadLibraryA
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x30], r14
xor r8d, r8d
mov r9, rax
mov dword [rsp + 0x28], r14d
xor edx, edx
mov qword [rsp + 0x20], rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rdi, rax
test rax, rax
je 0x1400013f8
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x1400013d4
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x1400013cf
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140001432
mov rcx, r8
call fcn.140001b7c
mov al, 1
mov rbp, qword [rsp + 0x70]
mov byte [rbx], r14b
mov qword [rbx + 0x18], 0xf
mov qword [rbx + 0x10], r14
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x14000142e
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140001429
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140001432
mov rcx, r8
call fcn.140001b7c
xor al, al
jmp 0x1400013d6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x1400024c0
Capabilities:
Parse pe header

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

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140042ad0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140042ad0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140033270
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140187644]
mov rbx, rcx
test esi, esi
jle 0x1400333a0
mov rax, qword [0x140187648]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400332bb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140033345
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400332a0
mov rcx, rbx
call fcn.140033cc0
mov rdi, rax
test rax, rax
je 0x1400333c2
mov rax, qword [0x140187648]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140033e00
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140187648]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400333a7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14003333e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140033350
add dword [0x140187644], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140187648]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14003333e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140033200
nop dword [rax]
xor esi, esi
jmp 0x1400332c8
mov rax, qword [0x140187648]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140033200
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140033200
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140033930
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1401876a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140187680]
test rbx, rbx
je 0x14003398c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140033983
test rsi, rsi
je 0x140033983
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140033968
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]