joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800089b0
Capabilities:
Parse pe header

Disassembly:
push rbx
push r13
sub rsp, 0x18
mov r11, qword [rcx]
xor r9d, r9d
mov r13, r8
mov rbx, rdx
test r11, r11
je 0x180008ae9
mov qword [rsp + 0x30], rbp
mov eax, 0x5a4d
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x10], r12
mov qword [rsp + 8], r14
mov qword [rsp], r15
cmp word [r11], ax
jne 0x180008abe
movsxd rax, dword [r11 + 0x3c]
add rax, r11
cmp dword [rax], 0x4550
cmovne rax, r9
test rax, rax
je 0x180008abe
add rax, 0x18
mov ecx, 0x20b
cmp word [rax], cx
jne 0x180008abe
test rax, rax
je 0x180008abe
cmp dword [rax + 0x6c], r9d
jbe 0x180008abe
lea r14, [rax + 0x70]
test r14, r14
je 0x180008abe
mov r15d, dword [r14]
mov r10d, r9d
mov edi, dword [r11 + r15 + 0x18]
lea rsi, [r11 + r15]
test edi, edi
je 0x180008abe
mov r12d, dword [rsi + 0x20]
nop dword [rax]
mov ebp, r10d
mov r8, r13
lea rax, [r12 + rbp*4]
mov eax, dword [rax + r11]
add rax, r11
sub r8, rax
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x180008a87
inc rax
test ecx, ecx
jne 0x180008a74
test edx, edx
je 0x180008a95
inc r10d
cmp r10d, edi
jb 0x180008a60
jmp 0x180008abe
mov ecx, dword [rsi + 0x24]
add rcx, r11
movzx edx, word [rcx + rbp*2]
mov ecx, dword [rsi + 0x1c]
add rcx, r11
mov r8d, dword [rcx + rdx*4]
cmp r8d, r15d
jb 0x180008aba
mov eax, r8d
sub eax, r15d
cmp eax, dword [r14 + 4]
jb 0x180008abe
lea r9, [r11 + r8]
mov qword [rbx], r9
mov rax, rbx
mov r15, qword [rsp]
mov r14, qword [rsp + 8]
mov r12, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
add rsp, 0x18
pop r13
pop rbx
ret
mov qword [rdx], r9
mov rax, rbx
add rsp, 0x18
pop r13
pop rbx
ret

Function at 0x180008f00
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r10, qword [rcx]
xor r8d, r8d
test r10, r10
je 0x180008f8a
mov eax, 0x5a4d
cmp word [r10], ax
jne 0x180008f73
movsxd rcx, dword [r10 + 0x3c]
add rcx, r10
cmp dword [rcx], 0x4550
cmovne rcx, r8
test rcx, rcx
je 0x180008f73
movzx eax, word [rcx + 0x14]
add rax, 0x18
add rax, rcx
movzx ecx, word [rcx + 6]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8]
cmp rax, r9
je 0x180008f73
test dword [rax + 0x24], 0x40000000
je 0x180008f61
cmp dword [rax], 0x6164722e
jne 0x180008f61
cmp word [rax + 4], 0x6174
je 0x180008f67
add rax, 0x28
jmp 0x180008f43
mov ecx, dword [rax + 0xc]
mov r8d, dword [rax + 8]
add rcx, r10
jmp 0x180008f7a
mov qword [rdx + 8], r8
mov rcx, r8
mov eax, 8
mov qword [rdx], rcx
mov qword [rax + rdx], r8
mov rax, rdx
ret
mov qword [rdx], r8
mov rax, rdx
mov qword [rdx + 8], r8
ret
Function at 0x18000d550
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
xor ebx, ebx
cmp edx, 1
jne 0x18000d696
cmp qword [0x180014028], rbx
jne 0x18000d696
lea rax, [0x180014478]
mov qword [0x180014478], 0xf4240
mov qword [0x180014030], rax
lea rdx, str.SDL3.dll
lea rax, [0x180014030]
mov qword [0x180014480], rbx
lea rcx, [rsp + 0x68]
mov qword [0x180014028], rax
mov byte [0x180014470], bl
call fcn.180003aa0
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x18000d62a
mov edx, 0x5a4d
mov rcx, rax
cmp word [rax], dx
cmovne rcx, rbx
test rcx, rcx
je 0x18000d62a
movsxd r8, dword [rcx + 0x3c]
add r8, rax
cmp dword [r8], 0x4550
cmovne r8, rbx
test r8, r8
je 0x18000d62a
movzx edx, word [r8 + 0x14]
movzx ecx, word [r8 + 6]
add rdx, 0x18
add rdx, r8
lea rcx, [rcx + rcx*4]
lea r8, [rdx + rcx*8]
cmp rdx, r8
je 0x18000d62a
test dword [rdx + 0x24], 0x20000000
je 0x18000d621
cmp dword [rdx], 0x7865742e
jne 0x18000d621
cmp byte [rdx + 4], 0x74
je 0x18000d6b7
add rdx, 0x28
cmp rdx, r8
jne 0x18000d606
mov rcx, rbx
mov rax, rbx
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x28], rcx
lea rcx, [0x180014038]
mov qword [rsp + 0x20], rax
call fcn.180005c30
lea r9, [rsp + 0x20]
mov byte [0x180014470], 0xff
lea r8, [rsp + 0x68]
xor edx, edx
lea rcx, [0x180014038]
call fcn.180001010
mov rcx, qword [0x180014038]
mov byte [0x180014470], 1
test rcx, rcx
je 0x18000d696
mov rax, qword [rcx]
mov qword [0x180014040], rax
lea rax, [0x18000e0c3]
mov qword [rcx], rax
lea rdx, [0x18000d934]
lea rcx, section..text
mov rax, rdx
sub rax, rcx
cmp rdx, rcx
cmovb rax, rbx
add rsp, 0x40
pop rbx
ret
mov ecx, dword [rdx + 0xc]
add rcx, rax
mov eax, dword [rdx + 8]
jmp 0x18000d630
Function at 0x1400021dc
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x140004650], rbx
je 0x140002228
cmp rax, rbx
jne 0x14000221b
mov ebx, 1
mov esi, ebx
jmp 0x14000222d
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140002200
mov ebx, 1
mov eax, dword [0x140004658]
cmp eax, ebx
jne 0x140002243
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x1400022a8
mov eax, dword [0x140004658]
test eax, eax
jne 0x1400022a2
mov dword [0x140004658], ebx
lea r15, [0x1400033b0]
lea rdi, [0x140003398]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140002294
test eax, eax
jne 0x140002298
cmp qword [rdi], 0
je 0x140002289
mov rax, qword [rdi]
mov rcx, qword [0x140003378]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x14000226a
test eax, eax
je 0x1400022a8
mov eax, 0xff
jmp 0x140002384
mov dword [0x140004064], ebx
mov eax, dword [0x140004658]
cmp eax, ebx
jne 0x1400022cf
lea rdx, [0x140003390]
lea rcx, [0x140003380]
call sub.msvcrt.dll__initterm
mov dword [0x140004658], 2
test esi, esi
jne 0x1400022dc
xor eax, eax
xchg qword [0x140004650], rax
cmp qword [0x140004660], 0
je 0x140002310
lea rcx, [0x140004660]
call fcn.140002540
test eax, eax
je 0x140002310
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140004660]
mov r9, qword [0x140003378]
call r9
mov r8, qword [0x140004078]
mov rdx, qword [0x140004070]
mov ecx, dword [0x140004068]
call fcn.140001800
mov dword [0x140004060], eax
cmp dword [0x140004080], 0
jne 0x140002340
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140004064], 0
jne 0x140002355
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140004060]
jmp 0x140002384
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.140094000
add rsp, 0x28
jmp 0x1400021dc

Function at 0x140002450
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000249c
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140002494
cmp dword [rcx + 0x3c], edx
jl 0x140002494
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140002494
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14000249c
mov rax, rdx
add rsp, 0x18
ret

Function at 0x140094000
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
push rbp
mov rbp, rsp
sub rsp, 0x20
and rsp, 0xfffffffffffffff0
lea rbx, [0x140007200]
movabs rdi, 0
push rbx
Function at 0x140002670
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rbx, rdx
mov rdi, rcx
xor esi, esi
call fcn.140002e80
test rax, rax
je 0x1400027bf
xor ecx, ecx
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x30], rcx
mov ebp, 1
mov word [rsp + 0x31], cx
mov qword [rsp + 0x28], rcx
mov rcx, rax
mov dword [rdi + 0x174a4], ebp
mov dword [rsp + 0x20], ebx
call qword [sym.imp.USER32.dll_IsImmersiveProcess]
test eax, eax
je 0x14000279b
mov byte [rsp + 0x33], bpl
mov ebx, esi
mov edi, esi
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowExW]
mov rbx, rax
test rax, rax
je 0x140002784
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x60], esi
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x20], eax
jne 0x140002776
xor ecx, ecx
mov qword [rsp + 0x28], rbx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rbx
call qword [sym.imp.USER32.dll_IsWindowVisible]
movzx ecx, byte [rsp + 0x34]
test eax, eax
cmove ecx, ebp
mov byte [rsp + 0x34], cl
cmp byte [rsp + 0x33], sil
je 0x14000275e
mov edx, 4
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindow]
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 0x10]
call qword [sym.imp.USER32.dll_PostMessageW]
mov byte [rsp + 0x31], bpl
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
lea edx, [r9 + 0x10]
call qword [sym.imp.USER32.dll_PostMessageW]
mov byte [rsp + 0x31], bpl
inc edi
cmp edi, 0x3e8
jb 0x1400026d4
mov eax, ebp
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
lea rdx, [rsp + 0x20]
lea rcx, [0x1400027e0]
call qword [sym.imp.USER32.dll_EnumWindows]
cmp byte [rsp + 0x34], sil
jne 0x1400027bb
cmp qword [rsp + 0x28], rsi
jne 0x140002784
mov eax, esi
jmp 0x140002786
mov rbx, qword [rsp + 0x58]
mov eax, esi
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x140006b00
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x460
test byte [rcx + 0x10c], 0xd
mov rdi, r9
mov ebp, r8d
mov rbx, rcx
je 0x140006c68
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x470], rsi
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [rsp + 0x3c]
lea rcx, [rsp + 0x260]
movzx eax, word [rsp + 0x3e]
movzx r9d, word [rsp + 0x3a]
movzx r8d, word [rsp + 0x38]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], edx
lea rdx, str._02d:_02d:_02d:_03d
call fcn.140004840
test ebp, ebp
je 0x140006b9f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
lea r9, [rsp + 0x260]
lea r8, [rbx + 8]
mov qword [rsp + 0x20], rdi
lea rdx, str._s__t_s__s_GetLastError___x_r_n
lea rcx, [rsp + 0x60]
call fcn.140004840
jmp 0x140006bc1
lea r9, [rsp + 0x260]
mov qword [rsp + 0x20], rdi
lea r8, [rbx + 8]
lea rdx, str._s__t_s__s_r_n
lea rcx, [rsp + 0x60]
call fcn.140004840
test byte [rbx + 0x10c], 1
mov rsi, qword [rsp + 0x470]
je 0x140006bdd
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test byte [rbx + 0x10c], 4
je 0x140006c03
mov rcx, qword [rbx + 0x118]
lea rdx, [rsp + 0x60]
call fcn.140007030
mov rcx, qword [rbx + 0x118]
call fcn.140032ea8
test byte [rbx + 0x10c], 8
je 0x140006c68
test byte [0x140071dc0], 1
je 0x140006c68
lea rcx, [rsp + 0x60]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x140006c21
inc eax
mov dword [rsp + 0x5c], 0
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x58], eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x50], rcx
mov r9d, 2
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [0x14005c5c8]
lea rcx, [section..data]
call fcn.140006e80
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140007430
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rdx
lea rax, [rsp + 0x50]
xor edx, edx
mov qword [rsp + 0x20], rax
mov r9d, 0x10000
xor r8d, r8d
mov ebx, 1
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x14000748c
mov rcx, qword [0x140071d50]
test rcx, rcx
je 0x14000747f
mov r9d, eax
lea r8, str.DeleteRegKey_RegOpenKeyEx_failed_with_error_code_0x_08x.
lea edx, [rbx + 7]
call fcn.140006a60
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rsp + 0x50]
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x1400074c4
mov rcx, qword [0x140071d50]
test rcx, rcx
je 0x1400074c2
mov r9, rdi
mov dword [rsp + 0x20], eax
lea r8, str.DeleteRegKey_RegDeleteKey_failed_for_pcPath___s_with_error_code_0x_08x.
mov edx, 8
call fcn.140006a60
xor ebx, ebx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1400074e0
Capabilities:
Delete 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 + 0x78]
mov qword [rsp + 0x38], rax
mov rdi, r8
mov qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x20006
xor r8d, r8d
mov dword [rsp + 0x20], 0
mov rsi, rdx
mov ebx, 1
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x14000756a
mov rcx, qword [0x140071d50]
test rcx, rcx
je 0x140007558
mov r9, rsi
mov dword [rsp + 0x20], eax
lea r8, str.DeleteRegValue_RegCreateKeyEx_failed_for_pcPath___s_with_error_code_0x_08x.
lea edx, [rbx + 7]
call fcn.140006a60
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
mov rcx, qword [rsp + 0x78]
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x1400075a2
mov rcx, qword [0x140071d50]
test rcx, rcx
je 0x1400075a0
mov r9, rdi
mov dword [rsp + 0x20], eax
lea r8, str.DeleteRegValue_RegDeleteValue_failed_for_value___s_with_error_code_0x_08x.
mov edx, 8
call fcn.140006a60
xor ebx, ebx
mov rcx, qword [rsp + 0x78]
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 0x1400078e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rsi, rdx
mov dword [rsp + 0x60], 4
mov rdi, rcx
lea rax, [rsp + 0x68]
lea rdx, str.SoftwareAMDEEU
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
mov r9d, 0x20019
xor r8d, r8d
mov ebx, 1
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140007965
mov rcx, qword [0x140071d50]
test rcx, rcx
je 0x140007953
lea r9, str.SoftwareAMDEEU
mov dword [rsp + 0x20], eax
lea r8, str.ReadRegKey_RegOpenKeyEx_failed_for_pcPath___s_with_error_code_0x_08x.
lea edx, [rbx + 7]
call fcn.140006a60
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov r9d, 0x10
mov qword [rsp + 0x28], rsi
mov r8, rdi
xor edx, edx
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegGetValueA]
test eax, eax
je 0x1400079c5
mov rcx, qword [0x140071d50]
test rcx, rcx
je 0x1400079c3
mov dword [rsp + 0x28], eax
lea r8, str.ReadRegKey_RegGetValue_failed_for_value___s_and_ulSize___d_with_error_code_0x_08x.
mov eax, dword [rsp + 0x60]
mov r9, rdi
mov edx, 8
mov dword [rsp + 0x20], eax
call fcn.140006a60
xor ebx, ebx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1400079f0
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 0x140007a3c
sub r9d, edi
je 0x140007a35
sub r9d, edi
je 0x140007a2e
cmp r9d, edi
je 0x140007a27
mov ebx, edi
jmp 0x140007a41
mov ebx, 0x20
jmp 0x140007a41
mov ebx, 2
jmp 0x140007a41
mov ebx, 8
jmp 0x140007a41
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 0x140007a86
mov rcx, qword [0x140071d50]
test rcx, rcx
je 0x140007a82
mov r9, rsi
mov dword [rsp + 0x20], eax
lea r8, str.ReadRegKey_RegOpenKeyEx_failed_for_pcPath___s_with_error_code_0x_08x.
mov edx, 8
call fcn.140006a60
xor eax, eax
jmp 0x140007b05
mov rax, qword [rsp + 0x80]
mov r9d, ebx
mov rsi, qword [rsp + 0x88]
mov r8, rbp
mov rcx, qword [rsp + 0x40]
xor edx, edx
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegGetValueA]
mov edx, eax
test eax, eax
je 0x140007af8
mov rcx, qword [0x140071d50]
test rcx, rcx
je 0x140007af6
mov eax, 0xffffffff
test rsi, rsi
je 0x140007ada
mov eax, dword [rsi]
mov dword [rsp + 0x28], edx
lea r8, str.ReadRegKey_RegGetValue_failed_for_value___s_and_ulSize___d_with_error_code_0x_08x.
mov edx, 8
mov dword [rsp + 0x20], eax
mov r9, rbp
call fcn.140006a60
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 0x140007e80
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 0x140007ebd
sub r9d, edi
je 0x140007eb6
cmp r9d, edi
je 0x140007eb2
xor ebx, ebx
jmp 0x140007ec2
mov ebx, edi
jmp 0x140007ec2
mov ebx, 3
jmp 0x140007ec2
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 0x140007f26
mov rcx, qword [0x140071d50]
test rcx, rcx
je 0x140007f22
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.140006a60
xor eax, eax
jmp 0x140007f8d
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 0x140007f80
mov rcx, qword [0x140071d50]
test rcx, rcx
je 0x140007f7e
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.140006a60
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 0x140008740
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.140004840
lea r8, [rsp + 0x20]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov rbx, rax
test rax, rax
je 0x1400087a1
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1400087a9
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 0x140008d00
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov byte [rdx], 0
mov rdi, rdx
cmp byte [0x140071dec], 0
mov rbx, rcx
je 0x140008d7d
mov r9, rcx
mov qword [rsp + 0x28], 0
xor ecx, ecx
mov dword [rsp + 0x20], 0
lea r8, [0x1400087c0]
mov edx, 8
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x140008d72
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 [0x140071dd0]
test rax, rax
jne 0x140008dd8
call fcn.14000cb40
mov rdx, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140008dbe
mov qword [0x140071dd0], rax
mov byte [rdi], 1
mov rax, qword [0x140071dd0]
mov qword [rbx + 0x24], rax
mov rax, rdx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rax, qword [0x140071dd0]
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 0x14000cbe0
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
lea rax, [0x14005d8d8]
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 0x14000cd18
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, str.D3DKMTEnumAdapters
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, str.D3DKMTPollDisplayChildren
mov qword [rbx + 0x50], rax
mov qword [rbx + 0x58], rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x10]
lea rdx, str.D3DKMTQueryAdapterInfo
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