joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cede0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4cef26
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x78], rdi
nop dword [rax]
cmp rcx, r9
jb 0x4cef16
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x90], r9
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rcx
mov qword [rsp], rax
mov qword [rsp + 8], r9
mov qword [rsp + 0x10], rcx
mov qword [rsp + 0x18], rax
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], r8
call fcn.004d8f60
xorps xmm15, xmm15
mov r14, qword [0x006df810]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x4ceefb
mov rbx, qword [rsp + 0x90]
mov rsi, rbx
sar rbx, 1
lea rcx, [rsi + rbx]
mov rdx, qword [rsp + 0x70]
cmp rdx, rcx
jb 0x4cef11
cmp rsi, rcx
ja 0x4cef09
sub rdx, rsi
mov rdi, rdx
neg rdx
mov r8, rsi
shl rsi, 3
sar rdx, 0x3f
and rsi, rdx
mov rdx, qword [rsp + 0x60]
add rdx, rsi
mov rcx, qword [rsp + 0x68]
cmp rcx, r8
jb 0x4cef01
mov qword [rsp], rdx
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov qword [rsp + 0x18], rdx
sub rcx, r8
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x30], rax
call fcn.004d90a0
xorps xmm15, xmm15
mov r14, qword [0x006df810]
mov r14, qword gs:[r14]
mov r14, qword [r14]
add rsp, 0x50
pop rbp
ret
mov rax, r8
call fcn.004654c0
mov rax, rsi
call fcn.004654c0
call fcn.00465480
mov rdx, rcx
mov rcx, r9
nop dword [rax]
call fcn.00465480
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x38], r9
call fcn.00463140
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov r8, qword [rsp + 0x30]
mov r9, qword [rsp + 0x38]
jmp fcn.004cede0
Function at 0x4cef80
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4cf0c6
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x78], rdi
nop dword [rax]
cmp rcx, r9
jb 0x4cf0b6
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x90], r9
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rcx
mov qword [rsp], rax
mov qword [rsp + 8], r9
mov qword [rsp + 0x10], rcx
mov qword [rsp + 0x18], rax
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], r8
call fcn.004d9000
xorps xmm15, xmm15
mov r14, qword [0x006df810]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x4cf09b
mov rbx, qword [rsp + 0x90]
mov rsi, rbx
sar rbx, 1
lea rcx, [rsi + rbx]
mov rdx, qword [rsp + 0x70]
cmp rdx, rcx
jb 0x4cf0b1
cmp rsi, rcx
ja 0x4cf0a9
sub rdx, rsi
mov rdi, rdx
neg rdx
mov r8, rsi
shl rsi, 3
sar rdx, 0x3f
and rsi, rdx
mov rdx, qword [rsp + 0x60]
add rdx, rsi
mov rcx, qword [rsp + 0x68]
cmp rcx, r8
jb 0x4cf0a1
mov qword [rsp], rdx
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov qword [rsp + 0x18], rdx
sub rcx, r8
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x30], rax
call fcn.004d9140
xorps xmm15, xmm15
mov r14, qword [0x006df810]
mov r14, qword gs:[r14]
mov r14, qword [r14]
add rsp, 0x50
pop rbp
ret
mov rax, r8
call fcn.004654c0
mov rax, rsi
call fcn.004654c0
call fcn.00465480
mov rdx, rcx
mov rcx, r9
nop dword [rax]
call fcn.00465480
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x38], r9
call fcn.00463140
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov r8, qword [rsp + 0x30]
mov r9, qword [rsp + 0x38]
jmp fcn.004cef80
Function at 0x4d9840
Capabilities:
Hash data using sha384
Hash data using sha512

Disassembly:
mov rcx, qword [rax + 0xd0]
cmp rcx, 6
jne 0x4d98c5
movabs rcx, 0xcbbb9d5dc1059ed8
mov qword [rax], rcx
movabs rcx, 0x629a292a367cd507
mov qword [rax + 8], rcx
movabs rcx, 0x9159015a3070dd17
mov qword [rax + 0x10], rcx
movabs rcx, 0x152fecd8f70e5939
mov qword [rax + 0x18], rcx
movabs rcx, 0x67332667ffc00b31
mov qword [rax + 0x20], rcx
movabs rcx, 0x8eb44a8768581511
mov qword [rax + 0x28], rcx
movabs rcx, 0xdb0c2e0d64f98fa7
mov qword [rax + 0x30], rcx
movabs rcx, 0x47b5481dbefa4fa4
mov qword [rax + 0x38], rcx
nop dword [rax]
jmp 0x4d9a26
cmp rcx, 0xe
jne 0x4d9940
movabs rcx, 0x8c3d37c819544da2
mov qword [rax], rcx
movabs rcx, 0x73e1996689dcd4d6
mov qword [rax + 8], rcx
movabs rcx, 0x1dfab7ae32ff9c82
mov qword [rax + 0x10], rcx
movabs rcx, 0x679dd514582f9fcf
mov qword [rax + 0x18], rcx
movabs rcx, 0xf6d2b697bd44da8
mov qword [rax + 0x20], rcx
movabs rcx, 0x77e36f7304c48942
mov qword [rax + 0x28], rcx
movabs rcx, 0x3f9d85a86a1d36c8
mov qword [rax + 0x30], rcx
movabs rcx, 0x1112e6ad91d692a1
mov qword [rax + 0x38], rcx
jmp 0x4d9a26
cmp rcx, 0xf
jne 0x4d99b7
movabs rcx, 0x22312194fc2bf72c
mov qword [rax], rcx
movabs rcx, 0x9f555fa3c84c64c2
mov qword [rax + 8], rcx
movabs rcx, 0x2393b86b6f53b151
mov qword [rax + 0x10], rcx
movabs rcx, 0x963877195940eabd
mov qword [rax + 0x18], rcx
movabs rcx, 0x96283ee2a88effe3
mov qword [rax + 0x20], rcx
movabs rcx, 0xbe5e1e2553863992
mov qword [rax + 0x28], rcx
movabs rcx, 0x2b0199fc2c85b8aa
mov qword [rax + 0x30], rcx
movabs rcx, 0xeb72ddc81c52ca2
mov qword [rax + 0x38], rcx
jmp 0x4d9a26
movabs rcx, 0x6a09e667f3bcc908
mov qword [rax], rcx
movabs rcx, 0xbb67ae8584caa73b
mov qword [rax + 8], rcx
movabs rcx, 0x3c6ef372fe94f82b
mov qword [rax + 0x10], rcx
movabs rcx, 0xa54ff53a5f1d36f1
mov qword [rax + 0x18], rcx
movabs rcx, 0x510e527fade682d1
mov qword [rax + 0x20], rcx
movabs rcx, 0x9b05688c2b3e6c1f
mov qword [rax + 0x28], rcx
movabs rcx, 0x1f83d9abfb41bd6b
mov qword [rax + 0x30], rcx
movabs rcx, 0x5be0cd19137e2179
mov qword [rax + 0x38], rcx
movups xmmword [rax + 0xc0], xmm15
ret
Function at 0x500040
Capabilities:
Encode data using base64

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov rdx, qword [rax + 0x20]
mov rcx, qword [rax + 0x28]
xor eax, eax
xor ebx, ebx
jmp 0x500060
inc rax
add rbx, 8
nop dword [rax]
cmp rax, rcx
jge 0x500071
movzx esi, byte [rdx + rax]
cmp sil, 0xff
je 0x500056
jmp 0x5000a6
cmp rbx, 0xffffffffffffffff
mov ecx, 0
cmove rbx, rcx
lea rcx, [rbx + 7]
sar rcx, 0x3f
shr rcx, 0x3d
lea rax, [rbx + rcx]
lea rax, [rax + 7]
sar rax, 3
add rax, 4
add rsp, 0x10
pop rbp
nop
ret
inc rbx
shl esi, 1
test sil, 0x80
jne 0x5000a1
test sil, sil
jne 0x5000b7
lea rsi, [rax + 1]
jmp 0x5000c5
mov rbx, 0xffffffffffffffff
nop
jmp 0x500071
inc rsi
cmp rsi, rcx
jge 0x500071
jae 0x5000de
movzx edi, byte [rdx + rsi]
test dil, dil
je 0x5000c2
mov rbx, 0xffffffffffffffff
jmp 0x500071
mov rax, rsi
call fcn.00465400
nop
int3
Function at 0x140002400
Capabilities:
Accept command line arguments
Check if file exists
Create process on windows
Create process suspended

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x120
mov qword [rsp + 0x90], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140021030]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov rbx, rcx
mov qword [rsp + 0x88], rcx
call qword [sym.imp.mfc100u.dll_AfxFailMaxChars]
mov rdx, qword [rax + 0x10]
mov qword [0x140025d10], rdx
lea rdx, str.EpsonScan2.log
lea rcx, [0x140025c40]
call fcn.140004270
mov dword [rsp + 0x50], 1
lea rcx, [rsp + 0x80]
call fcn.140002640
nop
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.140002b30
nop
lea rcx, [rsp + 0x80]
call qword [sym.imp.mfc100u.dll_CWinApp::CWinApp]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400025e6
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rax
lea rcx, [rsp + 0x58]
call qword [0x140015700]
nop
mov rax, qword [rsp + 0x58]
cmp dword [rax - 0x10], 0
je 0x1400025da
mov rax, qword [sym.imp.MSVCR100.dll___wargv]
mov rdx, qword [rax]
mov r8, qword [rsp + 0x60]
mov rdx, qword [rdx]
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc100u.dll_CRecentFileList::ReadList]
test eax, eax
je 0x1400025da
mov rax, qword [rsp + 0x58]
mov ecx, dword [rax - 0x10]
inc ecx
movsxd rdx, ecx
mov eax, 2
mul rdx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call qword [sym.imp.mfc100u.dll_new__]
mov rdi, rax
mov r8, qword [rsp + 0x58]
mov eax, dword [r8 - 0x10]
inc eax
movsxd rdx, eax
mov rcx, rdi
call qword [sym.imp.MSVCR100.dll_wcscpy_s]
xor esi, esi
mov dword [rsp + 0xa0], esi
xor edx, edx
lea r8d, [rsi + 0x60]
lea rcx, [rsp + 0xa8]
call sub.MSVCR100.dll_memset
mov qword [rsp + 0x68], rsi
xor eax, eax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1400025d0
or edx, 0xffffffff
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.mfc100u.dll_delete__]
nop
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc100u.dll_CWinApp::CWinApp]
nop
lea rcx, [rsp + 0x60]
call qword [sym.imp.mfc100u.dll_CWinApp::CWinApp]
nop
mov eax, dword [rsp + 0x50]
mov dword [rbx + 0x178], eax
jmp 0x140002610
xor eax, eax
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.1400121a0
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140002640
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x280
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x140021030]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rbx, rcx
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x34], 0
call qword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov dword [rsp + 0x34], 1
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREWOW6432NodeEPSONEpson_Scan_2
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000271a
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], delete[]
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x60]
call sub.MSVCR100.dll_memset
lea r11, [rsp + 0x30]
mov qword [rsp + 0x28], r11
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
lea rdx, str.BaseModulePath
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000270f
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.mfc100u.dll_CVSListBoxBase::CVSListBoxBase]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400121a0
add rsp, 0x280
pop rbx
ret
Function at 0x140003040
Capabilities:
Read .ini file

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0x98
mov qword [rbp - 0x21], 0xfffffffffffffffe
mov rax, qword [0x140021030]
xor rax, rsp
mov qword [rbp + 7], rax
mov rbx, r9
mov r12, r8
mov rsi, rdx
mov r13, rcx
mov qword [rbp - 0x19], rcx
mov qword [rbp - 0x11], rdx
mov qword [rbp - 1], r8
mov qword [rbp - 9], rbx
xor r14d, r14d
mov dword [rbp - 0x29], r14d
mov edi, r14d
mov qword [rbp - 0x41], r14
mov qword [rbp - 0x39], r14
mov dword [rbp - 0x31], r14d
lea r15, vtable.ES_CMN_FUNCS::BUFFER::CESHeapBuffer.0
mov qword [rbp - 0x49], r15
mov qword [rcx + 0x18], 7
mov qword [rcx + 0x10], r14
mov word [rcx], r14w
mov dword [rbp - 0x29], 1
nop word [rax + rax]
add edi, 0x400
lea rcx, [rbp - 0x49]
mov rax, qword [rbp - 0x49]
call qword [rax + 0x48]
mov edx, edi
lea rcx, [rbp - 0x49]
mov rax, qword [rbp - 0x49]
call qword [rax + 0x98]
mov r9, rax
mov qword [rbp - 0x41], rax
test rax, rax
je 0x140003103
mov dword [rbp - 0x39], edi
mov dword [rbp - 0x35], edi
cmp qword [rsi + 0x18], 8
jb 0x14000310f
mov rax, qword [rsi]
jmp 0x140003112
mov rax, rsi
cmp qword [rbx + 0x18], 8
jb 0x14000311e
mov rdx, qword [rbx]
jmp 0x140003121
mov rdx, rbx
cmp qword [r12 + 0x18], 8
jb 0x14000312f
mov rcx, qword [r12]
jmp 0x140003132
mov rcx, r12
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
lea r8, [0x1400172b0]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov r11d, eax
lea ecx, [rdi - 1]
lea eax, [rcx - 1]
cmp r11d, eax
je 0x1400030d0
cmp r11d, ecx
je 0x1400030d0
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdx, qword [rbp - 0x41]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r13
call fcn.1400016d0
nop
mov qword [rbp - 0x49], r15
mov rdx, qword [rbp - 0x41]
test rdx, rdx
je 0x1400031a2
lea rcx, [rbp - 0x49]
call qword [0x1400187c8]
mov qword [rbp - 0x41], r14
mov qword [rbp - 0x39], r14
lea rax, vtable.ES_CMN_FUNCS::BUFFER::IESBuffer.0
mov qword [rbp - 0x49], rax
cmp qword [rsi + 0x18], 8
jb 0x1400031bd
mov rcx, qword [rsi]
call qword [sym.imp.mfc100u.dll_CThreadLocalObject::CThreadLocalObject]
mov qword [rsi + 0x18], 7
mov qword [rsi + 0x10], r14
mov word [rsi], r14w
cmp qword [r12 + 0x18], 8
jb 0x1400031df
mov rcx, qword [r12]
call qword [sym.imp.mfc100u.dll_CThreadLocalObject::CThreadLocalObject]
mov qword [r12 + 0x18], 7
mov qword [r12 + 0x10], r14
mov word [r12], r14w
cmp qword [rbx + 0x18], 8
jb 0x140003202
mov rcx, qword [rbx]
call qword [sym.imp.mfc100u.dll_CThreadLocalObject::CThreadLocalObject]
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r14
mov word [rbx], r14w
mov rax, r13
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.1400121a0
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140003c80
Capabilities:
Get file version info

Disassembly:
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x60
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0xa0], rbx
mov rax, qword [0x140021030]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rdx
mov r12, rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x48], rdx
xor esi, esi
mov dword [rsp + 0x20], esi
mov qword [rcx + 0x18], 7
mov qword [rcx + 0x10], rsi
mov word [rcx], si
mov dword [rsp + 0x20], 1
cmp qword [rdx + 0x18], 8
jb 0x140003ce6
mov rcx, qword [rdx]
jmp 0x140003ce9
mov rcx, rdx
xor edx, edx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test eax, eax
je 0x140003d90
mov eax, 2
mul rdi
mov r14, 0xffffffffffffffff
cmovo rax, r14
mov rcx, rax
call qword [sym.imp.mfc100u.dll_new__]
mov r13, rax
cmp qword [rbx + 0x18], 8
jb 0x140003d26
mov rcx, qword [rbx]
jmp 0x140003d29
mov rcx, rbx
mov r9, rax
mov r8d, edi
xor edx, edx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x140003d78
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x28]
lea rdx, str.StringFileInfo000004b0FileVersion
mov rcx, r13
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x140003d78
xor eax, eax
mov rcx, r14
mov rdx, qword [rsp + 0x28]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r12
call fcn.1400016d0
mov rcx, r13
call qword [sym.imp.mfc100u.dll_delete__]
nop
jmp 0x140003d90
cmp qword [rbx + 0x18], 8
jb 0x140003da0
mov rcx, qword [rbx]
call qword [sym.imp.mfc100u.dll_CThreadLocalObject::CThreadLocalObject]
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rsi
mov word [rbx], si
mov rax, r12
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400121a0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x1400049f0
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbp
push rdi
push r12
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rbx, rcx
xor esi, esi
mov dword [rbp + 0x28], esi
mov qword [rcx + 0x18], 7
mov qword [rcx + 0x10], rsi
mov word [rcx], si
mov dword [rbp + 0x28], 1
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], rsi
mov dword [rbp - 0x10], esi
lea r12, vtable.ES_CMN_FUNCS::BUFFER::CESHeapBuffer.0
mov qword [rbp - 0x28], r12
lea rcx, [rbp - 0x28]
call qword [0x140018770]
mov edx, 0x20a
lea rcx, [rbp - 0x28]
mov rax, qword [rbp - 0x28]
call qword [rax + 0x98]
mov rdx, rax
mov qword [rbp - 0x20], rax
test rax, rax
je 0x140004b2b
mov dword [rbp - 0x18], 0x20a
mov dword [rbp - 0x14], 0x20a
xor ecx, ecx
lea r9d, [rsi + 1]
lea r8d, [rsi + 0x23]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov rdx, qword [rbp - 0x20]
cmp eax, 1
jne 0x140004ae9
test rdx, rdx
je 0x140004ad8
mov r8d, delete[]
mov ecx, r8d
mov rax, rdx
mov edi, esi
nop dword [rax]
cmp word [rax], di
je 0x140004ac0
add rax, 2
dec rcx
jne 0x140004ab0
jmp 0x140004ac5
test rcx, rcx
jne 0x140004acf
mov edi, 0x80070057
mov r8, rsi
jmp 0x140004ad2
sub r8, rcx
test edi, edi
jns 0x140004ae2
jmp 0x140004add
mov edi, 0x80070057
mov r8, rsi
test edi, edi
jne 0x140004b0d
test r8, r8
je 0x140004b0d
test rdx, rdx
je 0x140004b2b
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, rbx
call fcn.1400016d0
mov rdx, qword [rbp - 0x20]
test rdx, rdx
je 0x140004b2b
mov rax, qword [rbp - 0x28]
lea rcx, [rbp - 0x28]
call qword [rax + 0xa0]
mov rdx, rsi
mov qword [rbp - 0x18], rsi
mov qword [rbp - 0x20], rdx
cmp qword [rbx + 0x10], 0
je 0x140004b4b
mov r8d, 0x11
lea rdx, str.EPSONEPSONSCAN2
mov rcx, rbx
call fcn.140002810
mov rdx, qword [rbp - 0x20]
mov qword [rbp - 0x28], r12
test rdx, rdx
je 0x140004b61
lea rcx, [rbp - 0x28]
call qword [0x1400187c8]
nop
jmp 0x140004b61
mov rax, rbx
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret
Function at 0x1400126cf
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140021030]
jne 0x1400121ba
rol rcx, 0x10
test cx, 0xffff
jne 0x1400121b6
repz ret
ror rcx, 0x10
jmp 0x140012628
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140025510]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140025608]
mov qword [rsp + 0x58], rax
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 0x1400126ad
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, [0x140025510]
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 0x1400126cf
mov rax, qword [rsp + 0x88]
mov qword [0x140025608], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1400255a8], rax
mov rax, qword [0x140025608]
mov qword [0x140025480], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140025590], rax
mov dword [0x140025470], 0xc0000409
mov dword [0x140025474], 1
mov rax, qword [0x140021030]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140021038]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140025508], eax
mov ecx, 1
call sub.MSVCR100.dll___crt_debugger_hook
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140015870]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140025508], 0
jne 0x140012756
mov ecx, 1
call sub.MSVCR100.dll___crt_debugger_hook
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 0x1405f30b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1405f3237
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1405f30e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405f30c7
add dl, dl
jne 0x1405f30ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405f314e
xor eax, eax
add dl, dl
jne 0x1405f30fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405f3205
add dl, dl
jne 0x1405f310e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405f311b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405f3128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405f3135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1405f3142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1405f30d6
mov eax, 1
add dl, dl
jne 0x1405f315e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405f316b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405f3153
sub eax, ebx
mov ebx, 1
jne 0x1405f31a4
mov ecx, 1
add dl, dl
jne 0x1405f3186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1405f3193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405f317b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405f30d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1405f31c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1405f31cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405f31b5
cmp eax, 0x7d00
jae 0x1405f31f3
cmp eax, 0x500
jb 0x1405f31ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405f30d6
cmp eax, 0x7f
ja 0x1405f31f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405f30d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1405f322a
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1405f30d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001a94
Capabilities:
Parse pe header

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

Function at 0x140007f10
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140007d0c
Function at 0x14000d258
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 0x14000d288
xor eax, eax
jmp 0x14000d34b
mov rbp, rbx
cmp word [rax], si
je 0x14000d2ad
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000d294
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000d290
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.14000d178
movsxd r14, eax
test eax, eax
jne 0x14000d2eb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000d281
mov rcx, r14
call fcn.140009a0c
mov rdi, rax
test rax, rax
jne 0x14000d304
xor ecx, ecx
call fcn.140008d94
jmp 0x14000d2e0
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.14000d178
test eax, eax
jne 0x14000d335
mov rcx, rdi
call fcn.140008d94
jmp 0x14000d33f
xor ecx, ecx
call fcn.140008d94
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