joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180006090
Capabilities:
Enumerate gui resources
Get geographical location
Read .ini file
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rdi
sub rsp, 0x50
mov rbx, qword [0x1800fb3d0]
mov edx, 0x28
mov rcx, rbx
mov rdi, r8
call fcn.180006c10
mov edx, 0x44a8
mov qword [rdi], rax
mov rcx, rbx
call fcn.180006c10
cmp dword [0x1800fb3e8], 0xe4a09f72
mov rcx, qword [rdi]
mov qword [rcx + 0x18], rax
jne 0x180006254
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessorNumberEx]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetFileTime]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SwitchToFiber]
xor ebx, ebx
xor r9d, r9d
mov dword [rsp + 0x28], ebx
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CompareStringW]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexExW]
mov qword [rsp + 0x48], rbx
xor r9d, r9d
mov qword [rsp + 0x40], rbx
xor r8d, r8d
mov qword [rsp + 0x38], rbx
xor edx, edx
mov qword [rsp + 0x30], rbx
xor ecx, ecx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateFileTransactedW]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_AllocateUserPhysicalPagesNuma]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_NeedCurrentDirectoryForExePathW]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetMaximumProcessorCount]
mov r9d, dword [rsp + 0x68]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ReadConsoleOutputAttribute]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalFlags]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor r9d, r9d
lea rdx, [0x180113c80]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_EnumTimeFormatsEx]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetFullPathNameTransactedW]
mov rdx, qword [rsp + 0x68]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WriteFileEx]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x180009080
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 0x119d7
nop dword [rax]
inc ecx
test cl, 1
jne 0x180009090
lea r8d, [rcx + 0x264f]
mov eax, 0x55555556
imul ecx
mov r10d, 0x1eb
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
cmp ecx, eax
mov eax, 0x55555556
cmove r8d, ecx
add r8d, 0xb4
imul r8d
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 0xffffe726
lea ecx, [rdx + rdx*2]
mov edx, 0xfff992fd
cmp r8d, ecx
mov ecx, 0xffffef78
cmove ecx, eax
add ecx, r8d
lea eax, [rcx + rcx]
sub edx, eax
lea r9d, [rax + 0x4047]
lea r8d, [rcx - 0xef6]
mov eax, 0x55555556
lea ecx, [rdx - 0x24d1d]
lea r11d, [rdx + r8]
imul ecx
sub r10d, r11d
mov eax, edx
shr eax, 0x1f
add edx, eax
lea edx, [rdx + rdx*2]
cmp ecx, edx
je 0x180009138
inc ecx
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea edx, [rdx + rdx*2]
cmp ecx, edx
jne 0x180009121
mov edx, r8d
test r8b, 1
je 0x18000914d
test r8d, r8d
jle 0x18000914d
lea edx, [r8 - 0x25df]
lea eax, [r9 + rcx]
cmp eax, 0xfff78628
jne 0x18000917d
cmp r11d, 0xfff853b4
jne 0x18000917d
cmp r9d, 0x2a0ed
jne 0x18000917d
cmp edx, 0xfb7e
jne 0x18000917d
lea eax, [r10 + rcx*2]
cmp eax, 0xfff178ad
je 0x180009189
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]
add rsp, 0x28
ret
Function at 0x18007ce8c
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 0x18007cefb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18007cefb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18007cefb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18007cefb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18007cefb
cmp dword [rcx + 0x84], 0xe
jbe 0x18007cefb
cmp dword [rcx + 0xf8], 0
je 0x18007cefb
mov ecx, ebx
call fcn.18007cfac
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.18007cd88
nop
cmp dword [rbp + 0x20], 0
je 0x18007cf49
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.18007cf54
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x18007ce8c

Function at 0x18007e71c
Capabilities:
Get file size

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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.18006e530
sub rsp, rax
mov rax, qword [0x1800950c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18007e5fc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18008418b
mov rax, rbp
jmp 0x180084293
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0xfac60]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180085b5c
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0xfac60]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18008428f
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18008428f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180085b5c
test rax, rax
js 0x18008428f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18008428f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180084281
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180084281
cmp byte [rcx], 0xd
jne 0x180084267
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x180084276
cmp byte [rcx + 1], 0xa
jne 0x180084276
inc rcx
jmp 0x180084276
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x954d0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180084249
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x180084293
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18006e230
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180084efc
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, [0x1800fac60]
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 0x180084f53
cmp word [rdx], r13w
jne 0x180084f53
or byte [rax + rdi*8 + 0x38], cl
jmp 0x180084f58
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x18008507d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x18008509e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x180084f91
mov rdx, r9
mov word [rbx], cx
jmp 0x180084fb8
cmp r9, r8
jae 0x180084fc8
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 0x180084f72
jmp 0x18008507d
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180085072
cmp dword [rsp + 0x80], esi
je 0x180085072
lea r8, [0x1800fac60]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18008504a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18008501a
mov word [rbx], r13w
jmp 0x18008507a
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 0x180085027
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18008507a
cmp word [rsp + 0x70], r13w
jne 0x180085057
cmp rbx, r14
je 0x180085014
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180085b64
cmp word [rsp + 0x70], r13w
je 0x18008507d
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, [0x1800fac60]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x180085077
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x18008507d
Function at 0x180088e78
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 0x180088ea8
xor eax, eax
jmp 0x180088f6b
mov rbp, rbx
cmp word [rax], si
je 0x180088ecd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180088eb4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180088eb0
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.180087560
movsxd r14, eax
test eax, eax
jne 0x180088f0b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180088ea1
mov rcx, r14
call fcn.180081fb8
mov rdi, rax
test rax, rax
jne 0x180088f24
xor ecx, ecx
call fcn.180081b34
jmp 0x180088f00
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.180087560
test eax, eax
jne 0x180088f55
mov rcx, rdi
call fcn.180081b34
jmp 0x180088f5f
xor ecx, ecx
call fcn.180081b34
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 0x18008bce0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.18007ec20
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x18008bd81
cmp ebx, dword [rsp + 0x30]
je 0x18008bd7a
test esi, esi
je 0x18008bd7a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x18008bd55
sub r8w, 0x61
cmp r8w, 0x19
ja 0x18008bd62
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x18008bd3f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x18008bd66
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x18008bd83
mov eax, 1
jmp 0x18008bd83
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180090718
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.180085b64
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.180085b64
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180090868
cmp rax, 0xffffffffffffffff
je 0x180090868
xor edi, edi
test rbp, rbp
jle 0x180090813
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.180080a74
mov rbx, rax
test rax, rax
jne 0x1800907a0
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x180090809
mov edx, 0x8000
mov ecx, r14d
call fcn.18009059c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.18008182c
cmp eax, 0xffffffff
je 0x1800907e9
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1800907b0
mov edx, r15d
mov ecx, r14d
call fcn.18009059c
jmp 0x180090809
cmp byte [rsi + 0x38], dil
je 0x180090800
cmp dword [rsi + 0x34], 5
jne 0x180090800
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x180090809
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.180081b34
jmp 0x18009087c
jns 0x18009087c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.180085b64
cmp rax, 0xffffffffffffffff
jne 0x180090834
cmp byte [rsi + 0x30], dil
je 0x18009087c
mov edi, dword [rsi + 0x2c]
jmp 0x18009087c
mov ecx, r14d
call fcn.180089634
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18009087c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x18009087c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x180090875
mov eax, dword [rsi + 0x2c]
jmp 0x18009087a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.180085b64
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1800910a0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800910c8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1800910c8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001bc8
Capabilities:
Parse pe header

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

Function at 0x140004b9c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdx, qword [rcx + 0x10]
mov rbx, rcx
mov ecx, dword [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test eax, eax
jne 0x140004bd7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140006890
call fcn.14000691c
mov eax, dword [rax]
jmp 0x140004c4e
cmp rdi, qword [rbx + 0x18]
ja 0x140004be3
mov qword [rbx + 0x20], rdi
jmp 0x140004c4c
cmp byte [rbx + 0x28], 0
lea rsi, [rdi + 1]
je 0x140004bfa
mov rcx, qword [rbx + 0x10]
call fcn.140006a9c
mov byte [rbx + 0x28], 0
lea rcx, [rdi*2 + 2]
call fcn.140006ad8
mov qword [rbx + 0x10], rax
mov r8, rax
neg rax
mov edx, 0
sbb eax, eax
not eax
and eax, 0xc
cmove rdx, rsi
test eax, eax
sete cl
mov byte [rbx + 0x28], cl
mov qword [rbx + 0x18], rdx
test eax, eax
jne 0x140004c4e
mov ecx, dword [rbx + 0x18]
mov rdx, r8
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, eax
test rax, rax
je 0x140004bc1
mov qword [rbx + 0x20], rax
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140005874
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 0x1400058e3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400058e3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400058e3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400058e3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400058e3
cmp dword [rcx + 0x84], 0xe
jbe 0x1400058e3
cmp dword [rcx + 0xf8], 0
je 0x1400058e3
mov ecx, ebx
call fcn.140005994
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.140005770
nop
cmp dword [rbp + 0x20], 0
je 0x140005931
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000593c
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140005874

Function at 0x140005a78
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140005874
Function at 0x140009040
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 0x140009070
xor eax, eax
jmp 0x140009133
mov rbp, rbx
cmp word [rax], si
je 0x140009095
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000907c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140009078
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.140006cb4
movsxd r14, eax
test eax, eax
jne 0x1400090d3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140009069
mov rcx, r14
call fcn.140006ad8
mov rdi, rax
test rax, rax
jne 0x1400090ec
xor ecx, ecx
call fcn.140006a9c
jmp 0x1400090c8
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.140006cb4
test eax, eax
jne 0x14000911d
mov rcx, rdi
call fcn.140006a9c
jmp 0x140009127
xor ecx, ecx
call fcn.140006a9c
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 0x14000e2c0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000e2e8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14000e2e8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400041f0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x14000424d
lea rbx, [0x140179320]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140004234
cmp r10, 2
jb 0x140004234
cmp byte [r9], r8b
jne 0x140004234
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x140004210
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14000428f
lea rbx, [0x140179320]
cmp r8b, 0x23
jne 0x140004273
cmp byte [r9], r8b
jne 0x140004273
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x140004260
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x140004450
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov rdi, r8
mov rbx, rcx
test rcx, rcx
jne 0x14000447f
mov r8d, 0x7d5
lea rdx, str.D:PRIVADA_DE_MOISESPANEL_VK4PANEL_VK4_VIPimgui.cpp
lea rcx, str.filename__mode
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
test rdi, rdi
je 0x14000448b
mov qword [rdi], 0
lea rdx, [0x140178b38]
mov rcx, rbx
call fcn.1400042a0
mov rbx, rax
test rax, rax
jne 0x1400044ad
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x30], rbp
mov rcx, rbx
mov qword [rsp + 0x38], rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x140004586
xor edx, edx
mov r8d, 2
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140004586
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x140004586
xor r8d, r8d
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140004586
cmp rsi, 0xffffffffffffffff
je 0x140004586
mov rax, qword [0x140f207c0]
test rax, rax
je 0x140004523
inc dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbp, rax
test rax, rax
je 0x140004586
mov r9, rbx
mov r8, rsi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rsi
je 0x140004573
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x140f207c0]
test rax, rax
je 0x140004568
dec dword [rax + 0xf4]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14000458f
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rdi, rdi
je 0x140004581
mov qword [rdi], rsi
mov rax, rbp
jmp 0x140004591
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret