joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ddcf0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x60
xor ebx, ebx
lea rcx, str.kernel32
mov dword [rsp + 0x20], ebx
xor edi, edi
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea ebp, [rbx + 1]
test rax, rax
je 0x1400dddde
lea rdx, str.GetLogicalProcessorInformation
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
test rax, rax
je 0x1400dddde
nop dword [rax]
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov rax, r14
call qword [0x14013fad8]
test eax, eax
jne 0x1400ddd92
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400dddde
test rbx, rbx
je 0x1400ddd7e
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
jne 0x1400ddd50
jmp 0x1400dddde
test rbx, rbx
jne 0x1400ddd9e
mov edi, ebp
jmp 0x1400dde71
mov edx, dword [rsp + 0x20]
cmp rdx, 0x20
jb 0x1400dddcd
lea rcx, [rbx + 8]
nop dword [rax]
cmp dword [rcx], 0
lea eax, [rdi + 1]
lea rcx, [rcx + 0x20]
cmovne eax, edi
add esi, 0x20
mov edi, eax
mov eax, esi
add rax, 0x20
cmp rax, rdx
jbe 0x1400dddb0
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp edi, ebp
jge 0x1400dde73
lea rcx, str.kernel32
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400dde27
lea rdx, str.IsWow64Process
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x1400dde27
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x20]
mov rax, rbx
call qword [0x14013fad8]
cmp dword [rsp + 0x20], 0
je 0x1400dde62
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400dde62
lea rdx, str.GetNativeSystemInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400dde62
lea rcx, [rsp + 0x28]
call qword [0x14013fad8]
jmp 0x1400dde6d
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [rsp + 0x48]
cmp edi, ebp
lea r11, [rsp + 0x60]
cmovg ebp, edi
mov rbx, qword [r11 + 0x10]
mov eax, ebp
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x1400de3c0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push r14
sub rsp, 0x40
mov rsi, qword [rsp + 0x60]
xor r14d, r14d
lea rcx, [rsi + 0x58]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [rsi + 0x10]
mov ecx, edx
mov r8d, dword [rsi + 0xc]
sub ecx, r8d
mov eax, dword [rsi + 0x14]
cmp eax, ecx
jg 0x1400de43e
nop dword [rax]
cmp edx, r8d
jl 0x1400de43e
lea rcx, [rsi + 0x58]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rsi + 0x80]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rcx, [rsi + 0x58]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [rsi + 0x10]
mov ecx, edx
mov r8d, dword [rsi + 0xc]
sub ecx, r8d
mov eax, dword [rsi + 0x14]
cmp eax, ecx
jle 0x1400de400
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rdi
test eax, eax
jg 0x1400de524
mov ecx, 0x8f
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
je 0x1400de517
xorps xmm0, xmm0
lea rbx, [rax + 0x2f]
and rbx, 0xffffffffffffffe0
movabs rcx, 0xfe00000000
mov qword [rbx - 8], rax
mov qword [rax], rcx
lea rcx, [rbx + 0x10]
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
movups xmmword [rbx + 0x20], xmm0
movups xmmword [rbx + 0x30], xmm0
movups xmmword [rbx + 0x40], xmm0
movups xmmword [rbx + 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x38], rax
mov r9, rbx
mov rax, qword [rsp + 0x68]
lea r8, [0x1400de690]
mov qword [rbx + 0x48], rax
xor edx, edx
mov rax, qword [rsp + 0x70]
xor ecx, ecx
mov qword [rbx + 0x40], rax
lea rax, [rbx + 8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r14d
mov qword [rbx + 0x50], rsi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbx], rax
test rax, rax
jne 0x1400de51f
mov rcx, qword [rbx + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbx + 0x10]
mov qword [rbx + 0x38], r14
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rcx, qword [rbx - 8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r14d, 0xff98feff
jmp 0x1400de56b
inc dword [rsi + 0x10]
jmp 0x1400de56b
lea ecx, [rax - 1]
mov dword [rsi + 0x14], ecx
movsxd rcx, eax
mov rbx, qword [rsi + rcx*8 + 0x10]
mov qword [rsi + rcx*8 + 0x10], r14
lea rcx, [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rbx + 0x38]
mov qword [rbx + 0x48], rdx
mov rdx, qword [rsp + 0x70]
mov qword [rbx + 0x40], rdx
mov qword [rbx + 0x50], rsi
call qword [sym.imp.KERNEL32.dll_SetEvent]
lea rcx, [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [rsi + 0x58]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rdi, qword [rsp + 0x30]
mov eax, r14d
mov rbx, qword [rsp + 0x38]
add rsp, 0x40
pop r14
pop rsi
pop rbp
ret
Function at 0x1400e0320
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x4e70
call fcn.1400f1780
sub rsp, rax
mov rax, qword [0x140162170]
xor rax, rsp
mov qword [rsp + 0x4e60], rax
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x3e80
call sub.VCRUNTIME140.dll_memset
xor ebx, ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r9, [rsp + 0x20]
mov r8d, 0x3e80
mov rcx, rax
lea rdx, [rsp + 0x40]
call qword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x1400e0446
lea rax, [rsp + 0x3ec0]
mov dword [rsp + 0x2c], ebx
mov qword [rsp + 0x30], rax
mov edi, 0xfa0
mov eax, dword [rsp + 0x20]
mov word [rsp + 0x2a], di
test rax, 0xfffffffffffffff8
jbe 0x1400e043f
nop dword [rax]
nop dword [rax + rax]
mov r8, rdi
lea rcx, [rsp + 0x3ec0]
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rsp + rbx*8 + 0x40]
lea rdx, [rsp + 0x3ec0]
mov r8d, 0x7cf
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x3ec0]
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400e0400
mov r8, qword [rsp + rbx*8 + 0x40]
lea rdx, [rsp + 0x28]
add ax, ax
lea rcx, [0x140162220]
xor r9d, r9d
mov word [rsp + 0x28], ax
call fcn.1400e0470
test eax, eax
je 0x1400e0446
mov eax, dword [rsp + 0x20]
inc rbx
shr rax, 3
cmp rbx, rax
jb 0x1400e03c0
mov eax, 1
jmp 0x1400e0448
xor eax, eax
mov rcx, qword [rsp + 0x4e60]
xor rcx, rsp
call fcn.1400f0460
mov rbx, qword [rsp + 0x4e88]
add rsp, 0x4e70
pop rdi
ret
Function at 0x1400e0f70
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x90
mov rdi, qword [rsp + 0xa0]
xor eax, eax
mov qword [rsp + 0x48], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
test rdi, rdi
je 0x1400e11c2
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 0x18
lea r8, [rsp + 0x38]
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.PSAPI.DLL_GetModuleInformation]
test eax, eax
je 0x1400e11c2
mov eax, 0x5a4d
mov qword [rsp + 0x80], r15
mov r15d, dword [rsp + 0x40]
cmp word [rdi], ax
jne 0x1400e11ba
movsxd rcx, dword [rdi + 0x3c]
lea rax, [rcx + 0x108]
cmp rax, r15
jae 0x1400e11ba
cmp dword [rcx + rdi], 0x4550
mov qword [rsp + 0xb0], rbp
lea rbp, [rcx + rdi]
jne 0x1400e11b2
movzx eax, word [rbp + 4]
mov ecx, 0x14c
mov qword [rsp + 0xb8], rsi
xor esi, esi
mov qword [rsp + 0x88], r14
cmp cx, ax
jne 0x1400e102f
xor r14d, r14d
jmp 0x1400e1061
mov ecx, 0x200
mov r8d, 0xaa64
cmp cx, ax
je 0x1400e1053
mov ecx, 0x8664
cmp cx, ax
je 0x1400e1053
cmp r8w, ax
jne 0x1400e11a2
cmp r8w, ax
mov r14d, 1
sete sil
mov qword [rsp + 0xa8], rbx
mov ebx, dword [rbp + 0x28]
add rbx, rdi
je 0x1400e119a
cmp rbx, rdi
jbe 0x1400e119a
lea rax, [r15 + rdi]
cmp rbx, rax
jae 0x1400e119a
xorps xmm0, xmm0
lea rdx, [rsp + 0x50]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400e119a
test dword [rsp + 0x70], 0x1000
je 0x1400e119a
test dword [rsp + 0x78], 0x1000000
je 0x1400e119a
mov eax, dword [rsp + 0x74]
xor ecx, ecx
test al, 0x10
jne 0x1400e10ec
test al, 0x20
jne 0x1400e10ec
test al, 0x40
jne 0x1400e10ec
test al, al
jns 0x1400e10f1
mov ecx, 1
test ecx, ecx
je 0x1400e119a
mov r9d, r14d
mov dword [rsp + 0x20], esi
mov r8d, r15d
mov rdx, rdi
mov rcx, rbp
call fcn.1400e1a40
mov edx, 0x14
mov dword [rsp + 0x30], 0
lea r9, [rsp + 0x30]
mov rcx, rbx
lea r8d, [rdx + 0x2c]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1400e119a
test r14d, r14d
jne 0x1400e114a
mov eax, dword [0x1401621c0]
mov dword [rbx], eax
movzx eax, byte [0x1401621c4]
mov byte [rbx + 4], al
jmp 0x1400e116e
test esi, esi
je 0x1400e115a
mov rax, qword [0x1401621b8]
mov qword [rbx], rax
jmp 0x1400e116e
movzx eax, word [0x1401621b4]
mov word [rbx], ax
movzx eax, byte [0x1401621b6]
mov byte [rbx + 2], al
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov edx, 0x14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov rbx, qword [rsp + 0xa8]
mov rsi, qword [rsp + 0xb8]
mov r14, qword [rsp + 0x88]
mov rbp, qword [rsp + 0xb0]
mov r15, qword [rsp + 0x80]
add rsp, 0x90
pop rdi
ret
Function at 0x1400e9664
Capabilities:
Parse credit card information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
xor al, al
mov ecx, dword [rcx + 0x7c]
cmp ecx, 0xffffffff
je 0x1400e97f3
cmp ecx, 0x7c
je 0x1400e97f3
cmp ecx, 0x29
jne 0x1400e96ac
cmp dword [rbx + 0x1c], 0
jne 0x1400e97f3
test dword [rbx + 0x80], 0x10000000
je 0x1400e980c
jmp 0x1400e97a1
cmp ecx, 0x2e
jne 0x1400e96cc
lea rcx, [rbx + 0x40]
mov edx, 5
call fcn.1400ebd58
mov rcx, rbx
call fcn.1400ebdb0
jmp 0x1400e97e1
cmp ecx, 0x5c
jne 0x1400e972d
mov rcx, rbx
call fcn.1400ebdb0
test byte [rbx + 0x80], 0x80
je 0x1400e9720
mov al, byte [rbx + 0x78]
cmp al, 0x62
jne 0x1400e9704
mov edx, 4
lea rcx, [rbx + 0x40]
call fcn.1400ebd58
mov rcx, rbx
call fcn.1400ebdb0
jmp 0x1400e97e9
cmp al, 0x42
jne 0x1400e9720
lea rcx, [rbx + 0x40]
mov edx, 4
call fcn.1400ebd58
mov rax, qword [rbx + 0x48]
xor dword [rax + 0xc], 1
jmp 0x1400e96f7
mov rcx, rbx
call fcn.1400e9838
jmp 0x1400e97e1
cmp ecx, 0x5b
jne 0x1400e9751
mov rcx, rbx
call fcn.1400ebdb0
mov rcx, rbx
call fcn.1400e9f60
cmp dword [rbx + 0x7c], 0x5d
jne 0x1400e981a
jmp 0x1400e96bf
cmp ecx, 0x28
jne 0x1400e9775
mov rcx, rbx
call fcn.1400ebdb0
mov rcx, rbx
call fcn.1400ec46c
cmp dword [rbx + 0x7c], 0x29
mov dil, al
jne 0x1400e980c
jmp 0x1400e97d4
cmp ecx, 0x5e
jne 0x1400e9782
lea edx, [rcx - 0x5c]
jmp 0x1400e96ee
cmp ecx, 0x24
jne 0x1400e978f
lea edx, [rcx - 0x21]
jmp 0x1400e96ee
lea eax, [rcx - 0x2a]
cmp eax, 1
jbe 0x1400e97fe
cmp ecx, 0x3f
je 0x1400e97fe
cmp ecx, 0x7b
je 0x1400e97fe
cmp ecx, 0x7d
jne 0x1400e97b4
test dword [rbx + 0x80], 0x10000000
je 0x1400e9828
jmp 0x1400e97c5
cmp ecx, 0x5d
jne 0x1400e97c5
test dword [rbx + 0x80], 0x10000000
je 0x1400e981a
mov dl, byte [rbx + 0x78]
lea rcx, [rbx + 0x40]
call fcn.1400e8cd0
mov dil, 1
mov rcx, rbx
call fcn.1400ebdb0
test dil, dil
je 0x1400e97e9
mov rcx, rbx
call fcn.1400ebe00
mov ecx, dword [rbx + 0x7c]
mov al, 1
jmp 0x1400e9676
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov edx, 0xa
mov rcx, rbx
call fcn.1400eb17c
int3
mov edx, 5
mov rcx, rbx
call fcn.1400eb17c
int3
mov edx, 4
mov rcx, rbx
call fcn.1400eb17c
int3
mov edx, 6
mov rcx, rbx
call fcn.1400eb17c
int3
Function at 0x1400ecbdc
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov r13, r8
mov ebx, edx
mov rsi, rcx
test rcx, rcx
je 0x1400ecd67
test edx, edx
je 0x1400ecd67
and dword [rbp + 0x48], 0
lea rdx, [rbp + 0x48]
and dword [rbp + 0x30], 0
xor r14b, r14b
and qword [rbp - 0x10], 0
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov r15d, eax
test eax, eax
je 0x1400ecd67
mov ecx, r15d
call fcn.1400f09b4
mov edx, dword [rbp + 0x48]
mov r9, rax
mov r8d, r15d
mov rcx, rsi
mov rdi, rax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1400ecd5a
mov r15d, 0x40
test bl, 1
je 0x1400eccc4
lea r9, [rbp + 0x30]
mov rcx, rdi
lea r8, [rbp - 0x10]
lea rdx, [0x1401468b8]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1400eccc4
cmp dword [rbp + 0x30], 0
je 0x1400eccc4
mov r8, qword [rbp - 0x10]
cmp dword [r8], 0xfeef04bd
jne 0x1400eccc4
movzx ecx, word [r8 + 0xc]
movzx edx, word [r8 + 0xe]
movzx eax, word [r8 + 8]
movzx r9d, word [r8 + 0xa]
lea r8, str._d._d._d._04d
mov dword [rsp + 0x30], ecx
mov rcx, r13
mov dword [rsp + 0x28], edx
mov edx, r15d
mov dword [rsp + 0x20], eax
call fcn.1400d7ab0
mov r14b, 1
test bl, 6
je 0x1400ecd5a
lea rsi, [r13 + 0x80]
mov rcx, rdi
add r13, r15
mov byte [rsi], 0
lea r9, [rbp + 0x30]
lea r8, [rbp - 8]
lea rdx, str.VarFileInfoTranslation
mov byte [r13], 0
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x1400ecd5a
cmp dword [rbp + 0x30], 4
jb 0x1400ecd5a
test bl, 2
je 0x1400ecd2d
mov rax, qword [rbp - 8]
lea r9, [0x140141c78]
mov dword [rsp + 0x28], 0x100
mov rcx, rdi
mov qword [rsp + 0x20], rsi
movzx r8d, word [rax + 2]
movzx edx, word [rax]
call fcn.1400ecab0
test bl, 4
je 0x1400ecd57
mov rax, qword [rbp - 8]
lea r9, str.OriginalVer
mov dword [rsp + 0x28], r15d
mov rcx, rdi
mov qword [rsp + 0x20], r13
movzx r8d, word [rax + 2]
movzx edx, word [rax]
call fcn.1400ecab0
mov r14b, 1
mov rcx, rdi
call fcn.1400f0480
mov al, r14b
jmp 0x1400ecd69
xor al, al
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
Function at 0x1400ed5d8
Capabilities:
Get process image filename

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rbp, rdx
mov esi, ecx
test rdx, rdx
jne 0x1400ed5ff
xor al, al
jmp 0x1400ed6f7
xor dil, dil
mov byte [rsp + 0x88], dil
test esi, esi
je 0x1400ed6f4
mov r8d, esi
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
jne 0x1400ed646
mov r8d, esi
xor edx, edx
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x1400ed6f4
and dword [rsp + 0x40], 0
lea rax, [rsp + 0x80]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x88]
lea rax, [rsp + 0x78]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea rdx, str.QueryFullProcessImageNameW
lea rax, [rsp + 0x40]
lea rcx, str.kernel32.dll
mov qword [rsp + 0x20], rax
call fcn.1400e7284
mov dil, byte [rsp + 0x88]
test dil, dil
jne 0x1400ed6eb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, esi
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r9d, dword [rsp + 0x80]
mov r8, rbp
mov rcx, rax
xor edx, edx
mov rbx, rax
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
setne dil
test eax, eax
jne 0x1400ed6eb
mov r8d, dword [rsp + 0x80]
mov rdx, rbp
mov rcx, rbx
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
setne dil
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, dil
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400ed704
Capabilities:
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x440
mov rax, qword [0x140162170]
xor rax, rsp
mov qword [rsp + 0x430], rax
xor edi, edi
mov rbx, rcx
test rcx, rcx
je 0x1400ed7c2
cmp di, word [rcx]
je 0x1400ed7c2
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x410
call sub.VCRUNTIME140.dll_memset
xor r9d, r9d
lea r8d, [rdi + 0x25]
lea rdx, [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1400ed7c2
mov rdx, rbx
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or edi, 0xffffffff
cmp eax, edi
jne 0x1400ed7be
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea rdx, str.downlevel
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov rdx, rbx
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, edi
je 0x1400ed7c2
mov al, 1
jmp 0x1400ed7c4
xor al, al
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.1400f0460
mov rbx, qword [rsp + 0x458]
add rsp, 0x440
pop rdi
ret
Function at 0x1400ed874
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x140162170]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor esi, esi
mov rbx, rcx
test rcx, rcx
je 0x1400ed961
cmp si, word [rcx]
je 0x1400ed961
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
jne 0x1400ed95c
call fcn.1400ed444
cmp eax, 0x3d
jg 0x1400ed95c
mov ebp, 0x104
lea rcx, [rsp + 0x20]
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
test eax, eax
je 0x1400ed95c
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rbx + rcx*2], si
jne 0x1400ed8f8
lea rax, [rdx + 2]
add rcx, rax
cmp rcx, rbp
ja 0x1400ed95c
lea ecx, [rdx - 1]
mov eax, 0x5c
cmp ax, word [rsp + rcx*2 + 0x20]
je 0x1400ed93d
mov eax, 0x2f
cmp ax, word [rsp + rcx*2 + 0x20]
je 0x1400ed93d
lea r8, [0x1401468b8]
mov rdx, rbp
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
mov r8, rbx
lea rcx, [rsp + 0x20]
mov rdx, rbp
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
mov rax, rdi
jmp 0x1400ed963
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400f0460
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400efa30
Capabilities:
Get file size
Parse pe header
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
xor esi, esi
mov rdi, rdx
mov rbx, rcx
test rdx, rdx
je 0x1400efba2
cmp si, word [rdx]
je 0x1400efba2
cmp qword [rcx + 8], rsi
je 0x1400efa64
call fcn.1400ef944
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov rcx, rdi
mov dword [rsp + 0x20], 3
lea edx, [r9 + 1]
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, rax
mov qword [rbx], rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x1400efba2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp eax, 0x40
jb 0x1400efba2
mov rcx, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x28], rsi
xor edx, edx
mov dword [rsp + 0x20], edi
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, rax
mov qword [rbx + 0x18], rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x1400efba2
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbx + 8], rax
mov rdx, rax
test rax, rax
je 0x1400efba2
lea r8, [rdi + rax]
mov qword [rbx + 0x10], r8
cmp dword [rax + 0x3c], 0x40
jb 0x1400efba2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
mov qword [rbx + 0x20], rcx
lea rax, [rcx + 0xf8]
cmp r8, rax
jb 0x1400efba2
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x1400efba2
cmp dword [rcx], 0x4550
jne 0x1400efba2
mov eax, 0x14c
cmp word [rcx + 4], ax
je 0x1400efb7b
mov eax, 0x8664
cmp word [rcx + 4], ax
je 0x1400efb72
mov eax, 0xaa64
cmp word [rcx + 4], ax
jne 0x1400efba2
mov dword [rbx + 0x30], 3
lea rax, [rcx + 0x108]
jmp 0x1400efb89
mov dword [rbx + 0x30], 2
jmp 0x1400efb69
mov dword [rbx + 0x30], 1
lea rax, [rcx + 0xf8]
mov qword [rbx + 0x28], rax
movzx ecx, word [rcx + 6]
lea rdx, [rcx + rcx*4]
lea rcx, [rax + rdx*8]
cmp r8, rcx
jb 0x1400efba2
mov al, 1
jmp 0x1400efbac
mov rcx, rbx
call fcn.1400ef944
xor al, al
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x1400efc44
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
and qword [rcx], 0
mov rbx, rcx
and qword [rcx + 8], 0
and qword [rcx + 0x10], 0
and qword [rcx + 0x18], 0
and qword [rcx + 0x20], 0
and qword [rcx + 0x28], 0
and qword [rcx + 0x30], 0
and qword [rcx + 0x38], 0
lea rcx, str.crypt32.dll
call fcn.1400ed874
mov rdi, rax
test rax, rax
je 0x1400efd43
lea rdx, str.CertCloseStore
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CertFindCertificateInStore
mov rcx, rdi
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CertFreeCertificateContext
mov rcx, rdi
mov qword [rbx + 8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x140142058]
mov rcx, rdi
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptDecodeObject
mov rcx, rdi
mov qword [rbx + 0x18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptMsgClose
mov rcx, rdi
mov qword [rbx + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptMsgGetParam
mov rcx, rdi
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptQueryObject
mov rcx, rdi
mov qword [rbx + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptMsgClose
mov rcx, rdi
mov qword [rbx + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x28], rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret