joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b6060
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 0x1400b609f
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.1400b5e00
test al, al
jne 0x1400b60f3
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400b60e8
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 0x1400b7520
Capabilities:
Create thread

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x80
mov rax, qword [0x140136188]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbx, rcx
mov rax, rdx
mov rcx, r8
cmp qword [rbx + 0x60], 0
jne 0x1400b7641
mov qword [r11 - 0x48], rdx
mov qword [r11 - 0x40], rcx
mov word [rsp + 0x50], 1
lea rcx, [r11 - 0x48]
mov rax, qword [0x14013d658]
call qword [rax + 0x40]
test rax, rax
jne 0x1400b75a3
mov eax, 0x39000c
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400d7200
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
mov qword [rbx + 0x60], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
lea rdi, [rbx + 8]
mov qword [rsp + 0x58], rdi
mov byte [rsp + 0x60], 0
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x1400b75d3
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
int3
mov byte [rsp + 0x60], 1
mov byte [rbx + 0x58], 0
mov ecx, 0x10
call fcn.1400d7220
mov qword [rax], rbx
lea rcx, [0x1400b7920]
mov qword [rax + 8], rcx
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x1400b7c20]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400b764f
cmp dword [rbx + 0x70], 0
jne 0x1400b7648
movaps xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx + 0x68], xmm0
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
xor eax, eax
jmp 0x1400b7585
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
mov dword [rsp + 0x38], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x1400bec40
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x60
mov rsi, rcx
mov dword [rcx], 1
xor ebx, ebx
lea rcx, str.kernel32
mov dword [rax - 0x58], ebx
xor edi, edi
xor ebp, ebp
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x1400becd7
lea rdx, str.GetLogicalProcessorInformation
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
test rax, rax
je 0x1400becd7
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov rax, r14
call qword [0x140117ae0]
test eax, eax
jne 0x1400bed5d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400becd7
test rbx, rbx
je 0x1400becc5
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 0x1400bec93
mov dword [rsi], edi
lea rcx, str.kernel32
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x1400bed22
lea rdx, str.IsWow64Process
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x1400bed22
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x20]
mov rax, rbx
call qword [0x140117ae0]
cmp dword [rsp + 0x20], 0
je 0x1400beda2
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x1400beda2
lea rdx, str.GetNativeSystemInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400beda2
lea rcx, [rsp + 0x28]
call qword [0x140117ae0]
jmp 0x1400bedad
test rbx, rbx
je 0x1400bedbe
mov edx, dword [rsp + 0x20]
cmp rdx, 0x20
jb 0x1400bed8d
lea rcx, [rbx + 8]
cmp dword [rcx], 0
lea eax, [rdi + 1]
lea rcx, [rcx + 0x20]
cmovne eax, edi
add ebp, 0x20
mov edi, eax
mov eax, ebp
add rax, 0x20
cmp rax, rdx
jbe 0x1400bed70
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov dword [rsi], edi
cmp edi, 1
jge 0x1400bedb8
jmp 0x1400becd9
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x48]
mov edi, eax
mov dword [rsi], eax
cmp eax, 1
jle 0x1400bedbe
mov dword [rsi], edi
jmp 0x1400bedc4
mov dword [rsi], 1
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1400bf300
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 0x1400bf37e
nop dword [rax]
cmp edx, r8d
jl 0x1400bf37e
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 0x1400bf340
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rdi
test eax, eax
jg 0x1400bf464
mov ecx, 0x8f
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
je 0x1400bf457
xorps xmm0, xmm0
lea rbx, [rax + 0x2f]
and rbx, 0xffffffffffffffe0
movabs rcx, 0xfb00000000
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_CreateEventA]
mov qword [rbx + 0x38], rax
mov r9, rbx
mov rax, qword [rsp + 0x68]
lea r8, [0x1400bf5d0]
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 0x1400bf45f
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, 0xff9bfeff
jmp 0x1400bf4ab
inc dword [rsi + 0x10]
jmp 0x1400bf4ab
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 0x1400c1dc0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
call fcn.1400c1870
mov rbx, rax
mov edi, dword [0x14013c988]
mov ecx, 0x10
call fcn.1400d7220
xor esi, esi
test rax, rax
je 0x1400c1dfe
mov qword [rax], rbx
lea rcx, [0x1400c14e0]
mov qword [rax + 8], rcx
jmp 0x1400c1e01
mov rax, rsi
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], esi
mov r9, rax
lea r8, [0x1400c0850]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1400c1f0d
cmp dword [rbx + 0x290], 0
jne 0x1400c1f06
movaps xmm0, xmmword [rsp + 0x40]
movups xmmword [rbx + 0x288], xmm0
mov dword [rbx + 0x208], edi
cmp qword [rbx + 0x200], 0
je 0x1400c1e69
mov edi, 4
jmp 0x1400c1ee9
mov ecx, 0xb0
call fcn.1400d7220
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400c1edd
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rsi
mov word [rax + 0x28], si
mov qword [rax + 0xa8], rsi
lea rcx, vtable.ns_aom::ipc_object_stub_class_ns_aom::GlobalMgrHost_.0
mov qword [rax], rcx
mov qword [rbx + 0x200], rax
mov qword [rsp + 0x30], rsi
lea rcx, [rax + 8]
mov edx, edi
call fcn.1400c1d10
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, str.us.zoom.aom.globalmgr
mov rcx, qword [rbx + 0x200]
call fcn.1400c24f0
neg eax
sbb edi, edi
and edi, 0xc
jmp 0x1400c1ee9
mov qword [rbx + 0x200], rsi
mov edi, 2
mov rcx, rbx
call fcn.1400c19b0
test edi, edi
sete al
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
mov dword [rsp + 0x48], esi
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
Function at 0x1400ca5d0
Capabilities:
Accept command line arguments

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rdi
sub rsp, 0x58
mov rax, qword [0x140136188]
xor rax, rsp
mov qword [rsp + 0x48], rax
call fcn.140045b00
xor edi, edi
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
lea r8d, [rdi + 4]
mov qword [rsp + 0x28], rdi
lea rdx, str._pid
mov qword [rsp + 0x38], rdi
lea rcx, [rsp + 0x28]
mov qword [rsp + 0x40], 7
mov rbx, rax
call fcn.140049b30
movsxd rcx, dword [rsp + 0x20]
lea r8, [rsp + 0x28]
lea rdx, [rbx + rcx*8]
mov rcx, rbx
call fcn.1400d164c
mov rdx, qword [rsp + 0x40]
mov rbx, rax
cmp rdx, 8
jb 0x1400ca6a1
mov rcx, qword [rsp + 0x28]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400ca69c
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400ca69c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d725c
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], di
test rbx, rbx
jne 0x1400ca6be
lea eax, [rbx + 0x28]
jmp 0x1400ca705
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov dword [0x14013c988], eax
test eax, eax
jg 0x1400ca6d8
mov eax, 0x2d
jmp 0x1400ca705
call fcn.1400ca190
mov ecx, dword [0x14013c988]
call fcn.1400b6180
test ax, ax
je 0x1400ca6f4
mov eax, 0x39
jmp 0x1400ca705
call fcn.1400c1dc0
call fcn.1400b6330
call fcn.1400ca2a0
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400d7200
add rsp, 0x58
pop rdi
pop rbx
ret
Function at 0x1400ce268
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 0x1400ce3f0
cmp ecx, 0x7c
je 0x1400ce3f0
cmp ecx, 0x29
jne 0x1400ce2ab
cmp dword [rbx + 0x1c], 0
jne 0x1400ce3f0
test dword [rbx + 0x80], 0x10000000
je 0x1400ce417
cmp ecx, 0x2e
jne 0x1400ce2cb
lea rcx, [rbx + 0x40]
mov edx, 5
call fcn.1400d0954
mov rcx, rbx
call fcn.1400d09ac
jmp 0x1400ce3de
cmp ecx, 0x5c
jne 0x1400ce32c
mov rcx, rbx
call fcn.1400d09ac
test byte [rbx + 0x80], 0x80
je 0x1400ce31f
mov al, byte [rbx + 0x78]
cmp al, 0x62
jne 0x1400ce303
mov edx, 4
lea rcx, [rbx + 0x40]
call fcn.1400d0954
mov rcx, rbx
call fcn.1400d09ac
jmp 0x1400ce3e6
cmp al, 0x42
jne 0x1400ce31f
lea rcx, [rbx + 0x40]
mov edx, 4
call fcn.1400d0954
mov rax, qword [rbx + 0x48]
xor dword [rax + 0xc], 1
jmp 0x1400ce2f6
mov rcx, rbx
call fcn.1400ce434
jmp 0x1400ce3de
cmp ecx, 0x5b
jne 0x1400ce350
mov rcx, rbx
call fcn.1400d09ac
mov rcx, rbx
call fcn.1400ceb5c
cmp dword [rbx + 0x7c], 0x5d
jne 0x1400ce409
jmp 0x1400ce2be
cmp ecx, 0x28
jne 0x1400ce374
mov rcx, rbx
call fcn.1400d09ac
mov rcx, rbx
call fcn.1400d1070
cmp dword [rbx + 0x7c], 0x29
mov dil, al
jne 0x1400ce417
jmp 0x1400ce3d1
cmp ecx, 0x5e
jne 0x1400ce381
lea edx, [rcx - 0x5c]
jmp 0x1400ce2ed
cmp ecx, 0x24
jne 0x1400ce38e
lea edx, [rcx - 0x21]
jmp 0x1400ce2ed
lea eax, [rcx - 0x2a]
cmp eax, 1
jbe 0x1400ce3fb
cmp ecx, 0x3f
je 0x1400ce3fb
cmp ecx, 0x7b
je 0x1400ce3fb
cmp ecx, 0x7d
jne 0x1400ce3b1
test dword [rbx + 0x80], 0x10000000
je 0x1400ce425
cmp ecx, 0x5d
jne 0x1400ce3c2
test dword [rbx + 0x80], 0x10000000
je 0x1400ce409
mov dl, byte [rbx + 0x78]
lea rcx, [rbx + 0x40]
call fcn.1400cd8d4
mov dil, 1
mov rcx, rbx
call fcn.1400d09ac
test dil, dil
je 0x1400ce3e6
mov rcx, rbx
call fcn.1400d09fc
mov ecx, dword [rbx + 0x7c]
mov al, 1
jmp 0x1400ce27a
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov edx, 0xa
mov rcx, rbx
call fcn.1400cfd78
int3
mov edx, 4
mov rcx, rbx
call fcn.1400cfd78
int3
mov edx, 5
mov rcx, rbx
call fcn.1400cfd78
int3
mov edx, 6
mov rcx, rbx
call fcn.1400cfd78
int3
Function at 0x1400d17d0
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 0x1400d195b
test edx, edx
je 0x1400d195b
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 0x1400d195b
mov ecx, r15d
call fcn.1400d7264
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 0x1400d194e
mov r15d, 0x40
test bl, 1
je 0x1400d18b8
lea r9, [rbp + 0x30]
mov rcx, rdi
lea r8, [rbp - 0x10]
lea rdx, [0x1401227c8]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1400d18b8
cmp dword [rbp + 0x30], 0
je 0x1400d18b8
mov r8, qword [rbp - 0x10]
cmp dword [r8], 0xfeef04bd
jne 0x1400d18b8
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.1400b7eb0
mov r14b, 1
test bl, 6
je 0x1400d194e
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 0x1400d194e
cmp dword [rbp + 0x30], 4
jb 0x1400d194e
test bl, 2
je 0x1400d1921
mov rax, qword [rbp - 8]
lea r9, [0x14011c838]
mov dword [rsp + 0x28], 0x100
mov rcx, rdi
mov qword [rsp + 0x20], rsi
movzx r8d, word [rax + 2]
movzx edx, word [rax]
call fcn.1400d16a4
test bl, 4
je 0x1400d194b
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.1400d16a4
mov r14b, 1
mov rcx, rdi
call fcn.1400d725c
mov al, r14b
jmp 0x1400d195d
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 0x1400d2194
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 0x1400d21bb
xor al, al
jmp 0x1400d22b3
xor dil, dil
mov byte [rsp + 0x88], dil
test esi, esi
je 0x1400d22b0
mov r8d, esi
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
jne 0x1400d2202
mov r8d, esi
xor edx, edx
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x1400d22b0
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.1400cbe54
mov dil, byte [rsp + 0x88]
test dil, dil
jne 0x1400d22a7
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 0x1400d22a7
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 0x1400d235c
Capabilities:
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x440
mov rax, qword [0x140136188]
xor rax, rsp
mov qword [rsp + 0x430], rax
xor edi, edi
mov rbx, rcx
test rcx, rcx
je 0x1400d241a
cmp di, word [rcx]
je 0x1400d241a
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 0x1400d241a
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 0x1400d2416
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 0x1400d241a
mov al, 1
jmp 0x1400d241c
xor al, al
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.1400d7200
mov rbx, qword [rsp + 0x458]
add rsp, 0x440
pop rdi
ret
Function at 0x1400d6a1c
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 edi, edi
mov rsi, rdx
mov rbx, rcx
test rdx, rdx
je 0x1400d6b7a
cmp di, word [rdx]
je 0x1400d6b7a
cmp qword [rcx + 8], rdi
je 0x1400d6a50
call fcn.1400d6938
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov rcx, rsi
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 0x1400d6b7a
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp eax, 0x40
jb 0x1400d6b7a
mov rcx, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x28], rdi
xor edx, edx
mov dword [rsp + 0x20], esi
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 0x1400d6b7a
xor r9d, r9d
mov qword [rsp + 0x20], rsi
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 0x1400d6b7a
lea r9, [rsi + rax]
mov qword [rbx + 0x10], r9
cmp dword [rax + 0x3c], 0x40
jb 0x1400d6b7a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
mov qword [rbx + 0x20], rcx
lea rax, [rcx + 0xf8]
cmp r9, rax
jb 0x1400d6b7a
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x1400d6b7a
cmp dword [rcx], 0x4550
jne 0x1400d6b7a
mov eax, 0x14c
cmp word [rcx + 4], ax
je 0x1400d6b54
mov eax, 0x8664
cmp word [rcx + 4], ax
je 0x1400d6b4a
mov eax, 0xaa64
cmp word [rcx + 4], ax
jne 0x1400d6b7a
mov dil, 1
mov eax, 0x108
jmp 0x1400d6b59
mov eax, 0xf8
lea r8, [rcx + rax]
mov byte [rbx + 0x30], dil
mov qword [rbx + 0x28], r8
movzx ecx, word [rcx + 6]
lea rdx, [rcx + rcx*4]
lea rcx, [r8 + rdx*8]
cmp r9, rcx
jb 0x1400d6b7a
mov al, 1
jmp 0x1400d6b84
mov rcx, rbx
call fcn.1400d6938
xor al, al
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x1400d6c1c
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.1400d24cc
mov rdi, rax
test rax, rax
je 0x1400d6d1b
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, [0x14011d1f8]
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
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x00406b40]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x00406b50]
mov dword [rax], 1
mov rax, qword [0x00406b60]
mov dword [rax], 1
mov rax, qword [0x00406b30]
mov dword [rax], 1
mov rax, qword [0x004069c0]
cmp word [rax], 0x5a4d
je 0x4010d0
mov rax, qword [0x00406b20]
mov dword [0x00409008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010c2
mov ecx, 2
call sym.__set_app_type
mov rcx, 0xffffffffffffffff
call dbg._encode_pointer
mov rdx, qword [0x00406a50]
mov qword [rdx], rax
mov rdx, qword [0x00406a40]
mov qword [rdx], rax
mov rax, qword [0x00406ab0]
mov edx, dword [rax]
mov rax, qword [sym.imp.msvcrt.dll__fmode]
mov rax, qword [rax]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x00406960]
cmp dword [rax], 1
je 0x401120
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401133
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058