joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180006050
Capabilities:
Delete registry value
Persist via windows service
Set registry value

Disassembly:
push rbx
sub rsp, 0x50
xor ebx, ebx
lea rax, [rsp + 0x70]
lea rdx, str.SYSTEMCurrentControlSet_servicesKuaiZipDrive_
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0x2001f
mov qword [rsp + 0x70], rbx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x18000610a
mov rcx, qword [rsp + 0x70]
lea rdx, str.DeleteFlag
mov qword [rsp + 0x60], rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x70]
mov rdi, 0xffffffff80004005
test eax, eax
lea rax, [rsp + 0x68]
lea rdx, str.Start
cmovne rbx, rdi
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x68], 2
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x70]
test eax, eax
cmovne rbx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x60]
mov eax, ebx
add rsp, 0x50
pop rbx
ret

Function at 0x180006500
Capabilities:
Read file via mapping

Disassembly:
push rbx
sub rsp, 0x30
xor r9d, r9d
lea rax, str.2B99178A_21A2_4176_8D32_81DA708CFD0A_FileMap
mov rbx, rcx
mov qword [rsp + 0x28], rax
lea r8d, [r9 + 4]
xor edx, edx
or rcx, 0xffffffffffffffff
mov dword [rsp + 0x20], 0x19644
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rbx + 8], rax
test rax, rax
je 0x180006558
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbx + 8]
cmp eax, 0xb7
jne 0x180006560
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], 0
xor eax, eax
add rsp, 0x30
pop rbx
ret
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], 0
lea edx, [r9 + 6]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbx + 0x10], rax
test rax, rax
je 0x180006558
xor edx, edx
mov r8d, 0x19644
mov rcx, rax
call fcn.18000b450
mov eax, 1
add rsp, 0x30
pop rbx
ret
Function at 0x180009cf0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x18001f090]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor ebx, ebx
cmp dword [rcx + 0x70], 2
mov rdi, rcx
jne 0x180009d21
xor eax, eax
jmp 0x180009dbe
mov dword [rcx + 0x70], ebx
movabs rax, 0x5c003a0020
mov qword [rsp + 0x40], rax
mov rax, qword [rcx + 0x68]
movzx ecx, word [rax]
mov word [rsp + 0x40], cx
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x180009d64
cmp eax, 5
je 0x180009d5b
mov ebx, 0x80004005
jmp 0x180009dbc
mov dword [rdi + 0x70], 4
jmp 0x180009dbc
lea rcx, [rsp + 0x52]
xor edx, edx
mov r8d, 0x208
mov word [rsp + 0x50], bx
call fcn.18000b450
mov dword [rsp + 0x38], 0x105
lea rax, [rsp + 0x50]
lea rcx, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov ecx, 5
mov edx, 3
test eax, eax
cmovne ecx, edx
mov dword [rdi + 0x70], ecx
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.18000a310
mov rbx, qword [rsp + 0x288]
add rsp, 0x270
pop rdi
ret

Function at 0x18000bf3b
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x18001f090]
jne 0x18000a32a
rol rcx, 0x10
test cx, 0xffff
jne 0x18000a326
repz ret
ror rcx, 0x10
jmp 0x18000be94
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x180020af0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x180020be8]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x18000bf19
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x180020af0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x18000bf3b
mov rax, qword [rsp + 0x88]
mov qword [0x180020be8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x180020b88], rax
mov rax, qword [0x180020be8]
mov qword [0x180020a60], rax
mov rax, qword [rsp + 0x90]
mov qword [0x180020b70], rax
mov dword [0x180020a50], 0xc0000409
mov dword [0x180020a54], 1
mov rax, qword [0x18001f090]
mov qword [rsp + 0x68], rax
mov rax, qword [0x18001f098]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x180020ae8], eax
mov ecx, 1
call fcn.18000c69c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1800177a8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x180020ae8], 0
jne 0x18000bfc2
mov ecx, 1
call fcn.18000c69c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x18000f84c
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x18000f6c0
Function at 0x180013338
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.18000c6ac
xor ebx, ebx
mov rdi, rax
cmp qword [0x1800217b0], rbx
jne 0x18001343e
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x180013513
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180013513
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1800217b0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x1800217b8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x1800217c0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x1800217d0], rax
test rax, rax
je 0x180013435
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x1800217c8], rax
jmp 0x180013445
mov rax, qword [0x1800217c8]
jmp 0x18001344c
mov rax, qword [0x1800217c8]
mov r11, qword [0x1800217d0]
cmp rax, rdi
je 0x1800134b4
cmp r11, rdi
je 0x1800134b4
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x1800217d0]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x1800134b4
test rax, rax
je 0x1800134b4
call rsi
test rax, rax
je 0x1800134ae
lea rcx, [rsp + 0x88]
mov r9d, 0xc
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x1800134ae
test byte [rsp + 0x38], 1
jne 0x1800134b4
bts ebp, 0x15
jmp 0x1800134f2
mov rcx, qword [0x1800217b8]
cmp rcx, rdi
je 0x1800134f2
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x1800134f2
call rax
mov rbx, rax
test rax, rax
je 0x1800134f2
mov rcx, qword [0x1800217c0]
cmp rcx, rdi
je 0x1800134f2
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x1800134f2
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1800217b0]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x180013513
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x180013515
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140060740
Capabilities:
Terminate process

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
sub rsp, 0x40
cmp qword [0x140168f68], 0
jne 0x14006076c
mov eax, 0x920004
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x68
call fcn.1400f0728
mov rbx, rax
mov qword [rsp + 0x20], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rax, vtable.std::_Ref_count_obj2_class_ns_aom::AOMTask_.0
mov qword [rbx], rax
lea rdi, [rbx + 0x10]
mov qword [rsp + 0x28], rdi
lea rax, vtable.ns_aom::AOMTask.0
mov qword [rdi], rax
lea rsi, [rdi + 8]
mov qword [rsp + 0x30], rsi
mov qword [rsi + 0x38], 0
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x38]
test rcx, rcx
je 0x1400607e1
mov rax, qword [rcx]
mov rdx, rsi
mov rax, qword [rax]
call qword [0x14013fad8]
mov qword [rsi + 0x38], rax
lea rax, vtable.ns_aom::AOMSimpleEvent.0
mov qword [rdi + 0x48], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rdi + 0x50], rax
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], rbx
mov r8d, dword [rsp + 0x70]
lea rdx, [rsp + 0x30]
call fcn.14006a390
mov esi, eax
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x140060866
mov edi, 0xffffffff
mov ecx, edi
lock xadd dword [rdx + 8], ecx
cmp ecx, 1
jne 0x140060866
mov rbx, qword [rsp + 0x38]
mov rcx, qword [rbx]
mov rax, qword [rcx]
mov rcx, rbx
call qword [0x14013fad8]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x140060866
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14013fad8]
cmp si, 0x1b
jne 0x14006089a
lea rdx, str.ERRTimeOut
mov ecx, dword [rsp + 0x68]
call fcn.14005c7a0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, 0x980008
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
mov eax, esi
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x140068440
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [0x140162170]
xor rax, rsp
mov qword [rsp + 0x20], rax
mov rdx, qword [rsp + 0x50]
mov ecx, 1
mov r9d, dword [rsp + 0x48]
mov r8, qword [rsp + 0x40]
mov r10, qword [rdx]
cmp r9d, ecx
jl 0x140068607
test r10, r10
setne al
mov byte [r8], al
inc r8
test r10, r10
je 0x1400684c1
lea eax, [r9 - 1]
cmp eax, 0xd
jl 0x140068607
mov rcx, qword [rdx]
mov eax, dword [rcx + 8]
mov dword [r8], eax
movzx eax, byte [rcx + 0x20]
mov byte [r8 + 4], al
mov rax, qword [rcx + 0x28]
mov ecx, 0xe
mov qword [r8 + 5], rax
add r8, 0xd
lea r11d, [rcx + 0x98]
cmp r9d, r11d
jl 0x140068607
mov eax, dword [rdx + 8]
mov dword [r8], eax
test r10, r10
je 0x140068551
mov rcx, qword [rdx + 0x10]
movabs r9, 0x8000000000000000
test rcx, rcx
je 0x1400684fb
mov rax, qword [rdx]
sub rcx, qword [rax]
mov qword [rsp], rcx
jmp 0x1400684ff
mov qword [rsp], r9
mov rcx, qword [rdx + 0x18]
test rcx, rcx
je 0x140068510
mov rax, qword [rdx]
sub rcx, qword [rax]
jmp 0x140068513
mov rcx, r9
mov qword [rsp + 8], rcx
mov rcx, qword [rdx + 0x20]
test rcx, rcx
je 0x140068529
mov rax, qword [rdx]
sub rcx, qword [rax]
jmp 0x14006852c
mov rcx, r9
mov qword [rsp + 0x10], rcx
mov rcx, qword [rdx + 0x28]
test rcx, rcx
je 0x140068547
mov rax, qword [rdx]
sub rcx, qword [rax]
mov qword [rsp + 0x18], rcx
jmp 0x140068574
mov rcx, r9
mov qword [rsp + 0x18], rcx
jmp 0x140068574
mov rax, qword [rdx + 0x10]
mov qword [rsp], rax
mov rax, qword [rdx + 0x18]
mov qword [rsp + 8], rax
mov rax, qword [rdx + 0x20]
mov qword [rsp + 0x10], rax
mov rax, qword [rdx + 0x28]
mov qword [rsp + 0x18], rax
movups xmm0, xmmword [rsp]
movups xmm1, xmmword [rsp + 0x10]
movups xmmword [r8 + 4], xmm0
movups xmmword [r8 + 0x14], xmm1
movups xmm0, xmmword [rdx + 0x30]
movups xmmword [r8 + 0x24], xmm0
mov eax, dword [rdx + 0x40]
mov dword [r8 + 0x34], eax
mov eax, dword [rdx + 0x44]
mov dword [r8 + 0x38], eax
mov eax, dword [rdx + 0x48]
mov dword [r8 + 0x3c], eax
mov eax, dword [rdx + 0x4c]
mov dword [r8 + 0x40], eax
mov eax, dword [rdx + 0x50]
mov dword [r8 + 0x44], eax
mov eax, dword [rdx + 0x54]
mov dword [r8 + 0x48], eax
mov eax, dword [rdx + 0x58]
mov dword [r8 + 0x4c], eax
mov eax, dword [rdx + 0x5c]
mov dword [r8 + 0x50], eax
mov eax, dword [rdx + 0x60]
mov dword [r8 + 0x54], eax
mov eax, r11d
mov ecx, dword [rdx + 0x64]
mov dword [r8 + 0x58], ecx
movups xmm0, xmmword [rdx + 0x68]
movups xmmword [r8 + 0x5c], xmm0
movups xmm0, xmmword [rdx + 0x78]
movups xmmword [r8 + 0x6c], xmm0
mov ecx, dword [rdx + 0x88]
mov dword [r8 + 0x7c], ecx
mov rcx, qword [rsp + 0x20]
xor rcx, rsp
call fcn.1400f0460
add rsp, 0x38
ret
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x20]
xor rcx, rsp
call fcn.1400f0460
add rsp, 0x38
ret
Function at 0x140068d40
Capabilities:
Get common file path

Disassembly:
sub rsp, 0xe68
mov rax, qword [0x140162170]
xor rax, rsp
mov qword [rsp + 0xe50], rax
cmp qword [0x140162208], 0
jbe 0x140068d7d
mov al, 1
mov rcx, qword [rsp + 0xe50]
xor rcx, rsp
call fcn.1400f0460
add rsp, 0xe68
ret
xor r9d, r9d
mov qword [rsp + 0xe70], rbx
lea rdx, [rsp + 0x40]
mov qword [rsp + 0xe60], rdi
xor ecx, ecx
lea r8d, [r9 + 0x1a]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x140068db4
mov ecx, 0x31b000c
test ecx, ecx
setne al
jmp 0x140068ee2
lea rdx, [0x140146620]
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
xor edi, edi
lea r8, [rsp + 0x40]
mov qword [rsp + 0x38], rdi
mov rbx, 0xffffffffffffffff
mov qword [rsp + 0x30], rdi
mov r9d, ebx
mov dword [rsp + 0x28], edi
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, 0x400
jle 0x140068e05
mov ecx, 0x3430001
jmp 0x140068e3b
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x250]
mov qword [rsp + 0x30], rdi
lea r8, [rsp + 0x40]
mov dword [rsp + 0x28], 0x400
mov r9d, ebx
xor edx, edx
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, edi
test cx, cx
je 0x140068e4a
test ecx, ecx
setne al
jmp 0x140068ee2
mov dword [rsp + 0x28], edi
lea r8, [rsp + 0x250]
mov r9d, ebx
mov qword [rsp + 0x20], rdi
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, 0x400
jg 0x140068ee0
lea rax, [rsp + 0x650]
mov dword [rsp + 0x28], 0x400
mov r9d, ebx
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x250]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rdx, str.dataZoom.us.ini
lea rcx, [rsp + 0x650]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rax, [rsp + 0x650]
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], di
jne 0x140068ec0
mov r8, rbx
lea rdx, [rsp + 0x650]
lea rcx, [0x1401621f8]
call fcn.14005d4b0
mov al, 1
mov rbx, qword [rsp + 0xe70]
mov rdi, qword [rsp + 0xe60]
mov rcx, qword [rsp + 0xe50]
xor rcx, rsp
call fcn.1400f0460
add rsp, 0xe68
ret
Function at 0x140068f10
Capabilities:
Read .ini file

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbx
push rsi
push rdi
sub rsp, 0x350
mov rax, qword [0x140162170]
xor rax, rsp
mov qword [rsp + 0x340], rax
mov rbx, rcx
mov rdi, rdx
mov rsi, r8
call fcn.140068d40
test al, al
jne 0x140068f57
mov eax, 0x6c90001
jmp 0x14006902f
cmp qword [0x140162210], 8
lea rax, [0x1401621f8]
lea r9, [rsp + 0x140]
mov rdx, rdi
cmovae rax, qword [0x1401621f8]
mov rcx, rbx
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov dword [rsp + 0x20], 0x100
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jne 0x140068fa0
mov eax, 0x6cf0013
jmp 0x14006902f
xor edi, edi
lea r8, [rsp + 0x140]
mov qword [rsp + 0x38], rdi
mov rbx, 0xffffffffffffffff
mov qword [rsp + 0x30], rdi
mov r9d, ebx
mov dword [rsp + 0x28], edi
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, 0x100
jg 0x14006900f
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rdi
lea r8, [rsp + 0x140]
mov dword [rsp + 0x28], 0x100
mov r9d, ebx
xor edx, edx
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea rax, [rsp + 0x40]
inc rbx
cmp byte [rax + rbx], dil
jne 0x140069014
mov r8, rbx
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.14005d6b0
xor eax, eax
mov rcx, qword [rsp + 0x340]
xor rcx, rsp
call fcn.1400f0460
add rsp, 0x350
pop rdi
pop rsi
pop rbx
ret

Function at 0x1400692b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
lea r8, [rsp + 0x20]
mov qword [rsp + 0x20], 0
lea rdx, [fcn.1400692b0]
mov ecx, 6
call qword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
jne 0x1400692e2
add rsp, 0x38
ret
mov qword [rsp + 0x50], rbp
mov edx, 1
mov qword [rsp + 0x58], rsi
xor bpl, bpl
mov qword [rsp + 0x30], rdi
mov rdi, qword [rsp + 0x20]
lea r8d, [rdx + 0xf]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x140069380
mov rdx, rax
mov qword [rsp + 0x48], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdx, rsi
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
test rbx, rbx
je 0x14006937b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
je 0x140069372
cmp dword [rax + 0x28], 0xfeef04bd
jne 0x140069372
movzx ecx, word [rax + 0x32]
mov bpl, 1
mov rdx, qword [rsp + 0x40]
mov dword [rdx], ecx
movzx ecx, word [rax + 0x30]
mov dword [rdx + 4], ecx
movzx ecx, word [rax + 0x36]
mov dword [rdx + 8], ecx
movzx eax, word [rax + 0x34]
mov dword [rdx + 0xc], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rbx, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x30]
movzx eax, bpl
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x38
ret
Function at 0x14006ac80
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x60
mov rbx, qword [rsp + 0x70]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], 0
mov rcx, qword [rbx]
lea edx, [r9 + 6]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbx + 8], rax
test rax, rax
jne 0x14006acbf
mov eax, 0x9a000c
add rsp, 0x60
pop rbx
ret
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rbx + 8]
mov qword [rbx + 0x10], rdx
call fcn.14006aa20
test al, al
jne 0x14006ad13
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14006ad08
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rbx + 8], 0
mov qword [rbx + 0x10], 0
mov eax, 0xa3000c
add rsp, 0x60
pop rbx
ret
xor eax, eax
add rsp, 0x60
pop rbx
ret
Function at 0x14006ea40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rsi
push rdi
sub rsp, 0x68
mov rsi, rcx
lea r8, [rax - 0x58]
xor edi, edi
lea rcx, [rcx + 0x28]
mov dword [rax - 0x58], edi
mov edx, dword [rsi + 0x18]
call fcn.1400deaa0
mov eax, dword [rsp + 0x20]
mov ecx, eax
neg ecx
movzx ecx, cx
neg ecx
js 0x14006ebb9
mov ecx, dword [rsi + 0x18]
mov eax, ecx
mov edx, dword [rsi + 0x3c]
cmp ecx, edx
mov qword [rsp + 0x40], r14
cmovge eax, edx
mov qword [rsp + 0x38], r15
mov dword [rsi + 0x40], eax
mov r14, qword [rsi + 0x30]
test r14, r14
je 0x14006eac3
test eax, eax
mov rcx, r14
cmovne edx, eax
mov rax, qword [r14]
mov rax, qword [rax + 0x28]
call qword [0x14013fad8]
mov ecx, dword [rsi + 0x18]
mov r14, qword [rsi + 0x30]
mov r15, qword [rsp + 0xa0]
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x50], r12
mov r9d, dword [r15 + 4]
mov qword [rsp + 0x48], r13
test ecx, ecx
jle 0x14006eb86
lea rbx, [rsi + 0x58]
nop
mov r8d, dword [r15 + 0xc]
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
cdq
idiv ecx
lea ebp, [r9 + rax*2]
lea eax, [rcx - 1]
cmp edi, eax
jne 0x14006eb11
mov ebp, dword [r15 + 4]
add ebp, r8d
mov rax, qword [rsp + 0x88]
lea r8, [rbx - 0x10]
mov qword [r8], rax
lea rdx, [rsi + 0x10]
mov rax, qword [rsp + 0x90]
mov rcx, r14
mov qword [rbx - 8], rax
mov rax, qword [rsp + 0x98]
mov qword [rbx], rax
mov eax, dword [r15]
mov dword [rbx + 8], eax
mov eax, dword [r15 + 8]
mov dword [rbx + 0x10], eax
mov eax, ebp
sub eax, r9d
mov dword [rbx + 0xc], r9d
mov dword [rbx + 0x14], eax
mov rax, qword [r14]
mov rax, qword [rax + 8]
call qword [0x14013fad8]
mov ecx, eax
mov r12d, eax
neg ecx
movzx ecx, cx
neg ecx
js 0x14006ebc0
mov ecx, dword [rsi + 0x18]
inc edi
add rbx, 0x28
mov r9d, ebp
cmp edi, ecx
jl 0x14006eaf0
mov rax, qword [r14]
mov edx, 0xffffffff
mov rcx, r14
mov rax, qword [rax + 0x10]
call qword [0x14013fad8]
mov rbp, qword [rsp + 0x58]
mov r13, qword [rsp + 0x48]
mov r12, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
mov r14, qword [rsp + 0x40]
mov r15, qword [rsp + 0x38]
add rsp, 0x68
pop rdi
pop rsi
ret
mov rax, qword [r14]
mov edx, 0xffffffff
mov rcx, r14
mov rax, qword [rax + 0x10]
call qword [0x14013fad8]
mov eax, r12d
jmp 0x14006eb9b
Function at 0x14007ed70
Capabilities:
Link many functions at runtime

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x430
mov rax, qword [0x140162170]
xor rax, rsp
mov qword [rsp + 0x420], rax
cmp qword [0x140168ea8], 0
movsxd rbx, dword [rsp + 0x448]
jne 0x14007eea2
lea rcx, [0x140146df8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x140168ea8], rax
test rax, rax
je 0x14007ee98
lea rdx, str.CreateSimpleRenderer
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140168ea8]
lea rdx, str.DestroySimpleRenderer
mov qword [0x140168cd0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140168ea8]
lea rdx, str.SetTraceCallBack
mov qword [0x140168cb8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140168ea8]
lea rdx, str.DVFGetErrorCode
mov qword [0x140168cc8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140168ea8]
lea rdx, str.DVFGetErrorString
mov qword [0x140168cb0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x140168cd0], 0
mov rcx, rax
mov qword [0x140168cc0], rax
je 0x14007ee7b
cmp qword [0x140168cb8], 0
je 0x14007ee7b
mov rax, qword [0x140168cc8]
test rax, rax
je 0x14007ee7b
cmp qword [0x140168cb0], 0
je 0x14007ee7b
test rcx, rcx
jne 0x14007eea9
mov rcx, qword [0x140168ea8]
test rcx, rcx
je 0x14007ee98
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x140168ea8], 0
mov eax, 0xff95fff6
jmp 0x14007ef5f
mov rax, qword [0x140168cc8]
mov qword [rsp + 0x450], rsi
lea rcx, [0x14007ef80]
mov qword [rsp + 0x458], rdi
call qword [0x14013fad8]
lea rsi, [0x140168e90]
mov rdi, rbx
cmp qword [rsi + rbx*8], 0
lea rbx, [rsi + rbx*8]
jne 0x14007ef4d
mov rax, qword [0x140168cd0]
xor ecx, ecx
call qword [0x14013fad8]
mov qword [rbx], rax
test rax, rax
jne 0x14007eef9
mov eax, 0xff8afff6
jmp 0x14007ef4f
shl rdi, 4
lea rax, [0x14006d380]
lea rdx, [rsi + 8]
add rdx, rdi
mov qword [rdi + rsi + 0x10], rax
mov dword [rdi + rsi + 0xc], 0x2d0
mov dword [rdx], 0x500
mov rcx, qword [rbx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14013fad8]
test eax, eax
je 0x14007ef4d
mov ecx, eax
lea rdx, [rsp + 0x20]
mov rax, qword [0x140168cc0]
call qword [0x14013fad8]
mov eax, 0xff7dfff6
jmp 0x14007ef4f
xor eax, eax
mov rsi, qword [rsp + 0x450]
mov rdi, qword [rsp + 0x458]
mov rcx, qword [rsp + 0x420]
xor rcx, rsp
call fcn.1400f0460
add rsp, 0x430
pop rbx
ret