joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002b70
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
lea rax, vtable.IPCService.0
mov rbx, rcx
mov qword [rcx], rax
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
xor ebp, ebp
mov dword [rbx + 0x40], 0xffffffff
lea rdx, [rsp + 0x30]
mov qword [rbx + 0x48], rbp
lea rcx, [rsp + 0x48]
mov qword [rbx + 0x50], rbp
mov esi, eax
mov dword [rbx + 0x44], ebp
mov qword [rbx + 8], rbp
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], rbp
mov dword [rbx + 0x20], ebp
call fcn.1400081a0
lea rcx, [rbx + 0x38]
mov dword [rbx + 0x58], ebp
lea rdx, str.GlobalEEU_Memory_Map_Mutex
call fcn.140009e70
test eax, eax
jne 0x140002c0e
mov rcx, qword [0x140090dc0]
test rcx, rcx
je 0x140002d24
lea r9, str.CreateMutex_failed.
mov edx, 0x60004008
mov r8d, 1
call fcn.140006ad0
jmp 0x140002d24
xor r9d, r9d
lea rax, str.GlobalEEU_Memory_Map
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x30]
xor ecx, ecx
mov dword [rsp + 0x20], 0x17c
lea r8d, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov qword [rbx + 0x28], rax
test rax, rax
jne 0x140002c58
mov rcx, qword [0x140090dc0]
test rcx, rcx
je 0x140002d24
lea r9, str.CreateFileMapping_failed.
jmp 0x140002bf9
xor r9d, r9d
mov qword [rsp + 0x20], 0x17c
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 6]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbx + 0x30], rax
test rax, rax
jne 0x140002c99
mov rcx, qword [0x140090dc0]
test rcx, rcx
je 0x140002d24
lea r9, str.MapViewOfFile_failed.
jmp 0x140002bf9
xor edx, edx
mov r8d, 0x17c
mov rcx, rax
call fcn.140013d20
mov rax, qword [rbx + 0x30]
mov edx, esi
mov rcx, rbx
mov dword [rax], 8
call fcn.140003350
lea rdx, [rsp + 0x80]
lea rcx, str.ClientStatusMonitoring
call fcn.1400079a0
test eax, eax
je 0x140002d1d
cmp dword [rsp + 0x80], ebp
je 0x140002d1d
mov r9, rbx
lea r8, [0x140003a70]
mov edx, 8
lea rcx, [rbx + 0x50]
call fcn.140009ff0
test eax, eax
jne 0x140002d1d
mov rcx, qword [0x140090dc0]
test rcx, rcx
je 0x140002d24
lea r9, str.CreateTheThread_for_GetClientStatusThread_failed.
mov edx, 0x60004002
lea r8d, [rax + 1]
call fcn.140006ad0
jmp 0x140002d24
mov dword [rbx + 0x48], 1
lea r11, [rsp + 0x70]
mov rax, rbx
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140004040
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push rbx
sub rsp, 0x250
mov ebx, ecx
call fcn.1400043d0
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x104
call fcn.140013d20
xor edx, edx
lea rcx, [rsp + 0x140]
mov r8d, 0x104
call fcn.140013d20
mov r8d, 0x104
lea rdx, [rsp + 0x140]
lea rcx, str.COMMONPROGRAMFILES
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x1400040f3
lea rax, str.ATI_TechnologiesDSEManager.exe
mov qword [rsp + 0x28], 0
lea r9, [rsp + 0x140]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rcx, [rsp + 0x30]
mov edx, 0x104
call fcn.1400475f8
test eax, eax
jne 0x1400040de
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400040f3
cmp eax, 0x10
je 0x1400040f3
lea rdx, [rsp + 0x30]
mov ecx, ebx
call fcn.140004110
add rsp, 0x250
pop rbx
ret
lea rcx, str.Unable_to_create_path_for_DSE_Manager._n
call fcn.1400046d0
add rsp, 0x250
pop rbx
ret
Function at 0x1400043d0
Capabilities:
Check if file exists
Enumerate processes
Query environment variable
Terminate process

Disassembly:
push rbp
push r14
lea rbp, [rsp - 0x4b8]
sub rsp, 0x5b8
xor edx, edx
lea rcx, [rbp + 0x190]
mov r8d, 0x104
call fcn.140013d20
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x104
call fcn.140013d20
mov r8d, 0x104
lea rdx, [rsp + 0x50]
lea rcx, str.COMMONPROGRAMFILES
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x140004661
lea rax, str.ATI_TechnologiesDSEManager.exe
xor r14d, r14d
mov qword [rsp + 0x28], r14
lea r9, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x104
lea rcx, [rbp + 0x190]
call fcn.1400475f8
test eax, eax
jne 0x140004479
lea rcx, [rbp + 0x190]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140004661
cmp eax, 0x10
je 0x140004661
xor edx, edx
mov qword [rsp + 0x5e0], rsi
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400044b3
lea rcx, str.Unable_to_get_snapshot_of_all_processes._n
call fcn.1400046d0
mov rsi, qword [rsp + 0x5e0]
add rsp, 0x5b8
pop r14
pop rbp
ret
mov qword [rsp + 0x5b0], rdi
mov edi, r14d
mov qword [rsp + 0x5d8], rbx
nop word [rax + rax]
xor edx, edx
lea rcx, [rbp + 0x64]
mov r8d, 0x12c
call fcn.140013d20
mov dword [rbp + 0x60], 0x130
test edi, edi
jne 0x1400044fa
lea rdx, [rbp + 0x60]
mov rcx, rsi
call sub.KERNEL32.dll_Process32First
jmp 0x140004508
jle 0x140004510
lea rdx, [rbp + 0x60]
mov rcx, rsi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x140004635
xor edx, edx
lea rcx, [rbp + 0x2a0]
mov r8d, 0x100
call fcn.140013d20
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x100
call fcn.140013d20
mov qword [rsp + 0x40], 0x100
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rcx, [rbp + 0x8c]
lea rax, [rbp + 0x2a0]
mov qword [rsp + 0x30], 0x100
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r14
xor edx, edx
call fcn.1400485fc
test eax, eax
jne 0x14000462e
lea rdx, str.DSEManager
lea rcx, [rbp + 0x2a0]
call fcn.140047060
test eax, eax
jne 0x14000462e
lea rdx, str..exe
lea rcx, [rsp + 0x50]
call fcn.140047060
test eax, eax
jne 0x14000462e
mov r8d, dword [rbp + 0x68]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x14000462e
xor edx, edx
lea rcx, [rbp + 0x3a0]
mov r8d, 0x104
call fcn.140013d20
lea r9, [rbp + 0x4d0]
mov dword [rbp + 0x4d0], 0x104
lea r8, [rbp + 0x3a0]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameA]
test eax, eax
je 0x140004625
lea rdx, [rbp + 0x190]
lea rcx, [rbp + 0x3a0]
call fcn.140047060
test eax, eax
jne 0x140004625
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
jmp 0x1400044d0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x5b0]
mov rbx, qword [rsp + 0x5d8]
mov rsi, qword [rsp + 0x5e0]
add rsp, 0x5b8
pop r14
pop rbp
ret
lea rcx, str.Unable_to_create_path_for_DSE_Manager._n
call fcn.1400046d0
add rsp, 0x5b8
pop r14
pop rbp
ret
Function at 0x140006820
Capabilities:
Print debug messages

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x130
xor edi, edi
mov dword [rcx + 0x114], edx
lea rax, vtable.LogMsg.0
mov qword [rcx + 0x10c], rdi
mov qword [rcx], rax
lea rdx, [r11 + 0x10]
mov qword [rcx + 0x118], rdi
mov rbx, rcx
lea rcx, str.LogOutputDebug
mov dword [r11 + 0x10], edi
mov r14, r9
mov rbp, r8
call fcn.1400079a0
test eax, eax
je 0x140006887
cmp dword [rsp + 0x158], edi
je 0x140006887
or dword [rbx + 0x10c], 1
lea rdx, [rsp + 0x158]
lea rcx, str.LogOutputFile
call fcn.1400079a0
test eax, eax
je 0x1400068af
cmp dword [rsp + 0x158], edi
je 0x1400068af
or dword [rbx + 0x10c], 4
lea rdx, [rsp + 0x158]
lea rcx, str.LogOutputEtw
call fcn.1400079a0
test eax, eax
je 0x1400068f8
cmp dword [rsp + 0x158], edi
je 0x1400068f8
or dword [rbx + 0x10c], 8
lea r9, [section..data]
lea r8, [section..data]
lea rdx, [0x140006e40]
lea rcx, [0x140076158]
call fcn.140006f50
lea rdx, [rsp + 0x158]
lea rcx, str.LogMaskLevel
call fcn.1400079a0
test eax, eax
je 0x140006921
mov eax, dword [rsp + 0x158]
test eax, eax
je 0x140006921
mov dword [rbx + 0x110], eax
mov rdx, rbp
lea rcx, [rbx + 8]
call fcn.140002b10
test byte [rbx + 0x10c], 4
je 0x14000697f
lea r9, [rbx + 8]
mov r8, r14
lea rdx, str._s_s.txt
lea rcx, [rsp + 0x20]
call fcn.140002b10
lea rdx, [0x1400761fc]
lea rcx, [rsp + 0x20]
call fcn.14004941c
mov qword [rbx + 0x118], rax
test rax, rax
jne 0x14000697f
lea rcx, str.fopen_failed.
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
and dword [rbx + 0x10c], 0xfffffffb
cmp qword [0x140090e48], rdi
jne 0x1400069a9
mov ecx, 0x2e0
call fcn.140012a9c
test rax, rax
je 0x1400069a2
mov rcx, rax
call fcn.14000c9d0
mov rdi, rax
mov qword [0x140090e48], rdi
lea r11, [rsp + 0x130]
mov rax, rbx
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140006c10
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 0x140006d78
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.140002b10
test ebp, ebp
je 0x140006caf
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.140002b10
jmp 0x140006cd1
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.140002b10
test byte [rbx + 0x10c], 1
mov rsi, qword [rsp + 0x470]
je 0x140006ced
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test byte [rbx + 0x10c], 4
je 0x140006d13
mov rcx, qword [rbx + 0x118]
lea rdx, [rsp + 0x60]
call fcn.1400070f0
mov rcx, qword [rbx + 0x118]
call fcn.1400490e0
test byte [rbx + 0x10c], 8
je 0x140006d78
test byte [0x140090e40], 1
je 0x140006d78
lea rcx, [rsp + 0x60]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x140006d31
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, [0x140076178]
lea rcx, [section..data]
call fcn.140006f90
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x1400074f0
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 0x14000754c
mov rcx, qword [0x140090dc0]
test rcx, rcx
je 0x14000753f
mov r9d, eax
lea r8, str.DeleteRegKey_RegOpenKeyEx_failed_with_error_code_0x_08x.
lea edx, [rbx + 7]
call fcn.140006b70
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 0x140007584
mov rcx, qword [0x140090dc0]
test rcx, rcx
je 0x140007582
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.140006b70
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 0x14000d4e0
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.140002b10
lea r8, [rsp + 0x20]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov rbx, rax
test rax, rax
je 0x14000d541
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000d549
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 0x14000daa0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov byte [rdx], 0
mov rdi, rdx
cmp byte [0x140090e7c], 0
mov rbx, rcx
je 0x14000db1d
mov r9, rcx
mov qword [rsp + 0x28], 0
xor ecx, ecx
mov dword [rsp + 0x20], 0
lea r8, [0x14000d560]
mov edx, 8
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x14000db12
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 [0x140090e60]
test rax, rax
jne 0x14000db78
call fcn.1400115f0
mov rdx, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x14000db5e
mov qword [0x140090e60], rax
mov byte [rdi], 1
mov rax, qword [0x140090e60]
mov qword [rbx + 0x24], rax
mov rax, rdx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rax, qword [0x140090e60]
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 0x140011690
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
lea rax, [0x140078738]
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 0x1400117c8
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
Function at 0x140012390
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 0x1400123e8
sub r9d, edi
je 0x1400123e1
sub r9d, edi
je 0x1400123da
sub r9d, edi
je 0x1400123d3
cmp r9d, edi
je 0x1400123cc
mov ebx, edi
jmp 0x1400123ed
mov ebx, 0xffff
jmp 0x1400123ed
mov ebx, 0x40
jmp 0x1400123ed
mov ebx, 2
jmp 0x1400123ed
mov ebx, 8
jmp 0x1400123ed
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 0x14001241d
mov rdx, rsi
lea rcx, str.ReadRegKey_RegOpenKeyEx_failed_for_pcPath___s.
call fcn.140012860
xor eax, eax
jmp 0x14001247e
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 0x140012471
mov rdx, rbp
lea rcx, str.ReadRegKey_RegGetValue_failed_for_value___s.
call fcn.140012860
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 0x140012860
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 [0x140091618], 0
mov rbx, rcx
je 0x1400128fb
mov qword [rax - 0x10], rdi
lea rcx, [rsp + 0x40]
xor edx, edx
lea rdi, [rax + 0x10]
mov r8d, 0x200
call fcn.140013d20
call fcn.140002a20
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.140046004
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 0x140013824
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001386e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001386e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001386e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001386e
cmp dword [rcx + 0x84], 0xe
jbe 0x14001386e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140013870
xor al, al
add rsp, 0x28
ret
Function at 0x14005eb98
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14005ebc8
xor eax, eax
jmp 0x14005ec8b
mov rbp, rbx
cmp word [rax], si
je 0x14005ebed
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14005ebd4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14005ebd0
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14005a7f0
movsxd r14, eax
test eax, eax
jne 0x14005ec2b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14005ebc1
mov rcx, r14
call fcn.14005235c
mov rdi, rax
test rax, rax
jne 0x14005ec44
xor ecx, ecx
call fcn.140052320
jmp 0x14005ec20
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14005a7f0
test eax, eax
jne 0x14005ec75
mov rcx, rdi
call fcn.140052320
jmp 0x14005ec7f
xor ecx, ecx
call fcn.140052320
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x140068ca8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140068cbe
mov al, 1
jmp 0x140068d2a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140068ccf
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140068d28
mov ecx, dword [rcx + 0x18]
nop
call fcn.140060048
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140068d28
and qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov r9d, 1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140068d28
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140068d28
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140068d2a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140069b34
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140092260]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x140069b8b
cmp word [rdx], r13w
jne 0x140069b8b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140069b90
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140069cc1
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140069ce2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140069bc9
mov rdx, r9
mov word [rbx], cx
jmp 0x140069bf0
cmp r9, r8
jae 0x140069c00
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x140069baa
jmp 0x140069cc1
lea r9, [rsp + 0x80]
mov word [rsp + 0x70], si
mov r8d, r12d
mov dword [rsp + 0x80], esi
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x20], rsi
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140069cb6
cmp dword [rsp + 0x80], esi
je 0x140069cb6
lea r8, [0x140092260]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140069c8e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140069c5e
mov word [rbx], r13w
jmp 0x140069cbe
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x140069c6b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140069cbe
cmp word [rsp + 0x70], r13w
jne 0x140069c9b
cmp rbx, r14
je 0x140069c58
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400697e8
cmp word [rsp + 0x70], r13w
je 0x140069cc1
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140092260]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140069cbb
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140069cc1