joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140073bd8
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r14
sub rsp, 0x250
mov rax, qword [0x140094940]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rsi, rdx
mov ebx, ecx
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x200
mov edi, 1
call sub.msvcrt.dll_memset
mov rcx, qword [str.___t_]
lea r14, str.___t_
cmp rcx, r14
je 0x140073c4e
test byte [rcx + 0x1c], 2
je 0x140073c4e
cmp byte [rcx + 0x19], 5
jb 0x140073c4e
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x23]
lea r8, [0x1400864b8]
call fcn.140001024
lea r9, str.SoftwareMicrosoftFaxSetupOriginal_Setup_Data
mov dword [rsp + 0x20], ebx
lea r8, str._s_010d
mov edx, 0x100
lea rcx, [rsp + 0x40]
call fcn.1400029e8
mov ebx, eax
test eax, eax
jns 0x140073cc8
mov rcx, qword [str.___t_]
cmp rcx, r14
je 0x140073ca5
test byte [rcx + 0x1c], 2
je 0x140073ca5
cmp byte [rcx + 0x19], 2
jb 0x140073ca5
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400864b8]
mov edx, 0x25
mov r9d, eax
call fcn.140001048
mov ecx, ebx
movzx eax, bx
and ecx, 0x1fff0000
cmp ecx, 0x70000
cmove ebx, eax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x140073e43
mov r12, 0xffffffff80000002
lea rdx, [rsp + 0x40]
mov rcx, r12
mov r9d, 0x20019
xor r8d, r8d
call fcn.140066b60
mov rbx, rax
test rax, rax
jne 0x140073d4f
mov r9d, 0x20019
lea rdx, str.SoftwareMicrosoftFaxSetupOriginal_Setup_Data
xor r8d, r8d
mov rcx, r12
xor edi, edi
call fcn.140066b60
mov rbx, rax
test rax, rax
jne 0x140073d4f
mov rax, qword [str.___t_]
cmp rax, r14
je 0x140073cc1
test byte [rax + 0x1c], 2
je 0x140073cc1
cmp byte [rax + 0x19], 2
jb 0x140073cc1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
lea edx, [rdi + 0x26]
mov r9d, eax
lea r8, [0x1400864b8]
mov rcx, qword [rcx + 0x10]
call fcn.140001048
jmp 0x140073cc1
lea rcx, [0x140081e18]
call fcn.14006409c
lea r9, [0x140082638]
mov qword [rsi + 0x10], rax
lea r8, str.CSID
mov edx, 1
mov rcx, rbx
call fcn.140066c24
lea r9, [0x140082638]
mov qword [rsi], rax
lea r8, str.TSID
mov edx, 1
mov rcx, rbx
call fcn.140066c24
and dword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
xor r9d, r9d
mov qword [rsi + 8], rax
lea rdx, str.Rings
mov rcx, rbx
call fcn.140066eac
neg eax
lea r8, [rsp + 0x30]
lea rdx, str.Flags
sbb ecx, ecx
xor r9d, r9d
and ecx, dword [rsp + 0x30]
and dword [rsp + 0x30], 0
mov dword [rsi + 0x18], ecx
mov rcx, rbx
call fcn.140066eac
neg eax
mov rcx, rbx
sbb edx, edx
and edx, dword [rsp + 0x30]
mov dword [rsi + 0x1c], edx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, 1
jne 0x140073e3e
xor r9d, r9d
lea rdx, [rsp + 0x40]
xor r8d, r8d
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
test eax, eax
je 0x140073e3e
mov rcx, qword [str.___t_]
cmp rcx, r14
je 0x140073e3e
test byte [rcx + 0x1c], 2
je 0x140073e3e
cmp byte [rcx + 0x19], 2
jb 0x140073e3e
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x26]
mov r9d, eax
lea r8, [0x1400864b8]
call fcn.140001048
mov eax, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140078ba0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r12
pop rdi
ret
Function at 0x1400758a8
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x250
mov rax, qword [0x140094940]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov edi, edx
mov ebx, ecx
mov rcx, qword [str.___t_]
lea rbp, str.___t_
cmp rcx, rbp
je 0x140075904
test byte [rcx + 0x1c], 2
je 0x140075904
cmp byte [rcx + 0x19], 5
jb 0x140075904
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400864b8]
mov edx, 0x65
call fcn.140001024
mov r9d, ebx
mov dword [rsp + 0x20], edi
lea r8, str._ld:_ld
mov edx, 0x104
lea rcx, [rsp + 0x30]
call fcn.1400029e8
mov ebx, eax
test eax, eax
jns 0x140075970
mov rcx, qword [str.___t_]
cmp rcx, rbp
je 0x140075957
test byte [rcx + 0x1c], 2
je 0x140075957
cmp byte [rcx + 0x19], 2
jb 0x140075957
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400864b8]
mov edx, 0x66
mov r9d, eax
call fcn.140001048
mov ecx, ebx
movzx eax, bx
and ecx, 0x1fff0000
cmp ecx, 0x70000
cmove ebx, eax
jmp 0x140075a1f
mov r9d, 0x10000
lea rdx, [0x140084730]
xor r8d, r8d
mov rcx, 0xffffffff80000002
call fcn.140066b60
mov rdi, rax
test rax, rax
jne 0x1400759cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, rbp
je 0x140075a1f
test byte [rcx + 0x1c], 2
je 0x140075a1f
cmp byte [rcx + 0x19], 2
jb 0x140075a1f
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x67]
mov r9d, eax
lea r8, [0x1400864b8]
call fcn.140001048
jmp 0x140075a1f
xor r9d, r9d
lea rdx, [rsp + 0x30]
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov ebx, eax
test eax, eax
je 0x140075a16
mov rcx, qword [str.___t_]
cmp rcx, rbp
je 0x140075a16
test byte [rcx + 0x1c], 2
je 0x140075a16
cmp byte [rcx + 0x19], 2
jb 0x140075a16
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400864b8]
mov edx, 0x68
mov r9d, eax
call fcn.140001048
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140078ba0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140075e98
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x30
and qword [rsp + 0x48], 0
mov rdi, rcx
mov rcx, qword [str.___t_]
lea rbp, str.___t_
cmp rcx, rbp
je 0x140075ee4
test byte [rcx + 0x1c], 2
je 0x140075ee4
cmp byte [rcx + 0x19], 5
jb 0x140075ee4
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400864b8]
mov edx, 0x75
call fcn.140001024
lea rax, [rsp + 0x48]
mov r9d, 0x10000
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftFaxDevice_Providers
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
je 0x140075f3f
mov rcx, qword [str.___t_]
cmp rcx, rbp
je 0x140075fcc
test byte [rcx + 0x1c], 2
je 0x140075fcc
cmp byte [rcx + 0x19], 2
jb 0x140075fcc
mov edx, 0x76
mov r9d, eax
jmp 0x140075fbc
mov rcx, qword [rsp + 0x48]
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov ebx, eax
test eax, eax
je 0x140075f8d
mov rcx, qword [str.___t_]
cmp rcx, rbp
je 0x140075f8d
test byte [rcx + 0x1c], 2
je 0x140075f8d
cmp byte [rcx + 0x19], 2
jb 0x140075f8d
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400864b8]
mov edx, 0x77
mov dword [rsp + 0x20], eax
mov r9, rdi
call fcn.1400012fc
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x140075fcc
mov rcx, qword [str.___t_]
cmp rcx, rbp
je 0x140075fcc
test byte [rcx + 0x1c], 2
je 0x140075fcc
cmp byte [rcx + 0x19], 2
jb 0x140075fcc
mov edx, 0x78
mov r9d, eax
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400864b8]
call fcn.140001048
mov rbp, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140078084
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rax, qword [0x140094940]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor edi, edi
lea rdx, [rbp + 0x27]
mov bl, dil
call qword [sym.imp.RPCRT4.dll_I_RpcBindingIsClientLocal]
test eax, eax
jne 0x14007815a
cmp dword [rbp + 0x27], edi
je 0x14007815a
lea ebx, [rdi + 1]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea r9, [rbp + 0x37]
mov r8d, ebx
mov rcx, rax
lea edx, [rdi + 8]
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
je 0x14007815a
lea rax, [rbp + 0x2f]
mov dword [rbp + 0x3f], edi
mov qword [rsp + 0x50], rax
lea r8d, [rdi + 2]
mov dword [rsp + 0x48], edi
lea rcx, [rbp + 0x3f]
mov dword [rsp + 0x40], edi
xor r9d, r9d
mov dword [rsp + 0x38], edi
mov dl, bl
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
mov word [rbp + 0x43], 0x500
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x140078150
mov rdx, qword [rbp + 0x2f]
lea r8, [rbp + 0x2b]
mov rcx, qword [rbp + 0x37]
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x140078146
cmp dword [rbp + 0x2b], edi
cmovne ebx, edi
mov rcx, qword [rbp + 0x2f]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rbp + 0x37]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140078ba0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140078900
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x140098780], rbx
je 0x140078967
cmp rax, rbx
jne 0x14007895a
mov ebx, 1
mov esi, ebx
jmp 0x14007896c
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14007893f
mov ebx, 1
mov eax, dword [0x140098788]
cmp eax, ebx
jne 0x140078984
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x1400789f0
mov eax, dword [0x140098788]
test eax, eax
jne 0x1400789e5
mov dword [0x140098788], ebx
lea r15, [0x1400818a0]
lea rdi, [0x140081888]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x1400789d7
test eax, eax
jne 0x1400789db
cmp qword [rdi], r14
je 0x1400789cc
mov rax, qword [rdi]
mov rcx, qword [0x140081860]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x1400789ae
test eax, eax
je 0x1400789eb
mov eax, 0xff
jmp 0x140078b46
mov dword [0x140097a14], ebx
mov edi, 0x1f
mov eax, dword [0x140098788]
cmp eax, ebx
jne 0x140078a17
lea rdx, [0x140081880]
lea rcx, [0x140081868]
call sub.msvcrt.dll__initterm
mov dword [0x140098788], 2
test esi, esi
jne 0x140078a25
mov rax, r14
xchg qword [0x140098780], rax
cmp qword [0x140098790], r14
je 0x140078a58
lea rcx, [0x140098790]
call fcn.140079440
test eax, eax
je 0x140078a58
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140098790]
mov r9, qword [0x140081860]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x140078a71
mov eax, 0xff
jmp 0x140078b46
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x140078af7
test ax, ax
je 0x140078a8c
test edx, edx
jne 0x140078af7
sub ax, bx
cmp ax, di
ja 0x140078aa2
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x140078a8c
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140021c88
mov dword [0x140097a10], eax
cmp dword [0x140097a30], r14d
jne 0x140078ae0
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140097a14], r14d
jne 0x140078af5
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140097a10]
jmp 0x140078b46
cmp ax, 0x22
jne 0x140078b0b
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x140078a7a
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.14012c000
add rsp, 0x28
jmp 0x140078900
Function at 0x140078f38
Capabilities:
Print debug messages

Disassembly:
jmp 0x140078f44
push rbx
sub rsp, 0x540
mov rax, qword [0x140094940]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x140078fc1
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlVirtualUnwind]
jmp 0x140078fe1
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.140078ba0
add rsp, 0x540
pop rbx
ret

Function at 0x140078f44
Capabilities:
Print debug messages

Disassembly:
jmp 0x140078f44
push rbx
sub rsp, 0x540
mov rax, qword [0x140094940]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x140078fc1
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlVirtualUnwind]
jmp 0x140078fe1
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.140078ba0
add rsp, 0x540
pop rbx
ret

Function at 0x14007933c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140079388
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140079380
cmp dword [rcx + 0x3c], edx
jl 0x140079380
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140079380
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 0x140079388
mov rax, rdx
add rsp, 0x18
ret
Function at 0x14001c410
Capabilities:
Set registry value

Disassembly:
push rbp
push rsi
sub rsp, 0xf8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x70], 0xfffffffffffffffe
mov qword [rbp + 0x68], 0
mov dword [rbp + 0x64], 1
lea rax, [rbp + 0x68]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], 0
lea rdx, str.SOFTWAREPoliciesChromium
mov rcx, 0xffffffff80000002
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
test eax, eax
jne 0x14001c4c8
mov rcx, qword [rbp + 0x68]
lea rax, [rbp + 0x64]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 4
lea rdx, [0x140042e05]
xor r8d, r8d
mov r9d, 4
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x14001c4fa
add rsp, 0xf8
pop rsi
pop rbp
ret
lea rdx, str.Could_not_create_HKLMSOFTWAREPoliciesChromium_reg_key
lea rcx, [rbp + 0x40]
call fcn.140002590
lea rcx, [rbp - 0x30]
lea rdx, [rbp + 0x40]
mov r8d, esi
call fcn.140002670
lea rdx, [0x1400455e0]
lea rcx, [rbp - 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
jmp 0x14001c52a
lea rdx, str.Could_not_set_REG_DWORD_RendererCodeIntegrityEnabled
lea rcx, [rbp + 0x40]
call fcn.140002590
lea rcx, [rbp + 8]
lea rdx, [rbp + 0x40]
mov r8d, esi
call fcn.140002670
lea rdx, [0x1400455e0]
lea rcx, [rbp + 8]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x14001c5c0
Capabilities:
Persist via image file execution options registry key
Set registry value

Disassembly:
push rbp
push rsi
sub rsp, 0x108
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x80], 0xfffffffffffffffe
mov qword [rbp + 0x78], 0
lea rax, [rbp + 0x78]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], 0
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionImage_File_Execution_Optionsinsomniac.exe
mov rcx, 0xffffffff80000002
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
test eax, eax
jne 0x14001c6cc
lea rsi, [rbp + 0x58]
mov rcx, rsi
call fcn.14001f190
cmp qword [rbp + 0x70], 0x10
jb 0x14001c64a
mov rsi, qword [rbp + 0x58]
mov eax, dword [rbp + 0x68]
inc eax
mov rcx, qword [rbp + 0x78]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
lea rdx, str.Debugger
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
test eax, eax
jne 0x14001c6fe
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rbp + 0x70]
cmp rax, 0x10
jb 0x14001c6c1
mov rcx, qword [rbp + 0x58]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x14001c6bc
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x14001c72c
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.14001f684
nop
add rsp, 0x108
pop rsi
pop rbp
ret
lea rdx, str.Couldnt_create_registry_key_for_insomniac.exe_nAre_you_running_loader.exe_as_Administrator_
lea rcx, [rbp + 0x58]
call fcn.140002590
lea rcx, [rbp - 0x38]
lea rdx, [rbp + 0x58]
mov r8d, esi
call fcn.140002670
lea rdx, [0x1400455e0]
lea rcx, [rbp - 0x38]
call sub.VCRUNTIME140.dll__CxxThrowException
jmp 0x14001c72c
lea rdx, str.Could_not_set_Debugger_value_for_insomniac.exe
lea rcx, [rbp + 0x38]
call fcn.140002590
mov rcx, rbp
lea rdx, [rbp + 0x38]
mov r8d, esi
call fcn.140002670
lea rdx, [0x1400455e0]
mov rcx, rbp
call sub.VCRUNTIME140.dll__CxxThrowException
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x1400206f8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14002077c
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400424e0]
cmp byte [rcx + rax], 0
je 0x14002077c
dec r8
sub rdx, 1
jne 0x140020762
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140020a68
Capabilities:
Parse pe header

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
mov rax, qword [0x140327038]
xor rax, rsp
mov qword [rsp + 0x28], rax
xor eax, eax
mov byte [rcx], al
mov ecx, dword [0x140337e40]
mov r10, qword gs:[0x58]
mov rcx, qword [r10 + rcx*8]
lea rcx, [rcx + 0x218]
mov qword [rsi + 8], rcx
mov r10, qword [rcx]
mov qword [rcx], rsi
mov qword [rsi + 0x10], r10
mov qword [rsi + 0x18], rdx
mov qword [rsi + 0x38], 0
mov dword [rsi + 0x40], 0
mov byte [rsi + 0x50], al
xorps xmm0, xmm0
movups xmmword [rsi + 0x20], xmm0
mov qword [rsi + 0x58], r8
mov qword [rsi + 0x60], r9
test byte [0x140329bf0], 9
jne 0x14000108f
mov byte [rsi + 0x30], 0
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14013d520
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
lea rbx, [rsi + 0x20]
mov byte [rsi + 0x30], 1
mov rax, qword [fcn.1400c65b0]
lea rcx, [0x140038c30]
lea rdi, [rsp + 0x20]
cmp rax, rcx
jne 0x14000110a
mov qword [rdi], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rdi]
movabs rcx, 0x8637bd05af6
cmp rax, rcx
jg 0x1400010e6
imul rax, rax, 0xf4240
cqo
idiv qword [0x14033afc8]
mov qword [rbx], rax
jmp 0x140001077
mov rcx, qword [0x14033afc8]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x1400010e1
mov rcx, rdi
call qword [case.0x14017aab5.0]
mov rax, qword [rdi]
jmp 0x1400010e1

Function at 0x1400018e0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
movups xmm0, xmmword [rcx]
shl eax, 4
movups xmm1, xmmword [rcx + 0x10]
xorps xmm2, xmm0
xorps xmm3, xmm0
movups xmm0, xmmword [rcx + 0x20]
lea rcx, [rcx + rax + 0x20]
neg rax
add rax, 0x10
aesenc xmm2, xmm1
aesenc xmm3, xmm1
movups xmm1, xmmword [rcx + rax]
add rax, 0x20
aesenc xmm2, xmm0
aesenc xmm3, xmm0
movups xmm0, xmmword [rcx + rax - 0x10]
jne 0x140001900
aesenc xmm2, xmm1
aesenc xmm3, xmm1
aesenclast xmm2, xmm0
aesenclast xmm3, xmm0
repz ret

Function at 0x140001940
Capabilities:
Decrypt data using aes via x86 extensions

Disassembly:
movups xmm0, xmmword [rcx]
shl eax, 4
movups xmm1, xmmword [rcx + 0x10]
xorps xmm2, xmm0
xorps xmm3, xmm0
movups xmm0, xmmword [rcx + 0x20]
lea rcx, [rcx + rax + 0x20]
neg rax
add rax, 0x10
aesdec xmm2, xmm1
aesdec xmm3, xmm1
movups xmm1, xmmword [rcx + rax]
add rax, 0x20
aesdec xmm2, xmm0
aesdec xmm3, xmm0
movups xmm0, xmmword [rcx + rax - 0x10]
jne 0x140001960
aesdec xmm2, xmm1
aesdec xmm3, xmm1
aesdeclast xmm2, xmm0
aesdeclast xmm3, xmm0
repz ret

Function at 0x1400019a0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
movups xmm0, xmmword [rcx]
shl eax, 4
movups xmm1, xmmword [rcx + 0x10]
xorps xmm2, xmm0
xorps xmm3, xmm0
xorps xmm4, xmm0
movups xmm0, xmmword [rcx + 0x20]
lea rcx, [rcx + rax + 0x20]
neg rax
add rax, 0x10
aesenc xmm2, xmm1
aesenc xmm3, xmm1
aesenc xmm4, xmm1
movups xmm1, xmmword [rcx + rax]
add rax, 0x20
aesenc xmm2, xmm0
aesenc xmm3, xmm0
aesenc xmm4, xmm0
movups xmm0, xmmword [rcx + rax - 0x10]
jne 0x1400019c3
aesenc xmm2, xmm1
aesenc xmm3, xmm1
aesenc xmm4, xmm1
aesenclast xmm2, xmm0
aesenclast xmm3, xmm0
aesenclast xmm4, xmm0
repz ret