joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400bbd20
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
push rbx
push rbp
sub rsp, 0x48
mov rbp, rdx
mov rbx, rcx
test rcx, rcx
jne 0x1400bbd3c
lea eax, [rcx + 0x28]
add rsp, 0x48
pop rbp
pop rbx
ret
mov qword [rsp + 0x68], rsi
xor r9d, r9d
mov qword [rsp + 0x40], r14
mov edx, 0x80000000
xor r14d, r14d
mov rcx, rbp
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
lea r8d, [r14 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400bbd90
mov r14, qword [rsp + 0x40]
lea eax, [rsi + 2]
mov rsi, qword [rsp + 0x68]
add rsp, 0x48
pop rbp
pop rbx
ret
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x78], rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400bbeb5
mov rax, qword [rsp + 0x70]
cmp rax, 0x7fffffff
jg 0x1400bbeb5
test rax, rax
je 0x1400bbeb5
xor r9d, r9d
mov qword [rsp + 0x28], r14
xor edx, edx
mov dword [rsp + 0x20], r14d
mov rcx, rsi
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rdi, rax
test rax, rax
je 0x1400bbeb5
mov ecx, dword [rsp + 0x70]
xor r9d, r9d
mov dword [rbx + 8], ecx
xor r8d, r8d
mov rcx, rax
mov dword [rbx + 0xc], r14d
mov qword [rsp + 0x20], r14
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rdi
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], r14
je 0x1400bbe2a
lea rax, [0x1400bbf10]
jmp 0x1400bbe83
mov rcx, qword [rbx + 0x30]
xor edx, edx
movsxd r8, dword [rbx + 8]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
test rax, rax
je 0x1400bbeb5
mov edi, r14d
nop dword [rax + rax]
mov r8d, dword [rbx + 8]
lea r9, [rsp + 0x60]
mov edx, edi
sub r8d, edi
add rdx, qword [rbx]
mov rcx, rsi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400bbea3
add edi, dword [rsp + 0x60]
cmp edi, dword [rbx + 8]
jne 0x1400bbe50
lea rax, [0x1400bbee0]
mov rcx, rsi
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbx]
mov qword [rbx + 0x10], rax
xor eax, eax
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x20], r14
jmp 0x1400bbeca
mov rcx, qword [rbx + 0x30]
xor edx, edx
mov r8, qword [rbx]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x51
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x40]
add rsp, 0x48
pop rbp
pop rbx
ret
Function at 0x1400bd620
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
test rdx, rdx
jne 0x1400bd62b
xor eax, eax
ret
lea r11, [0x1400def50]
not ecx
cmp r8d, 8
jb 0x1400bd701
mov r10d, r8d
shr r10, 3
nop word [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r8d, 0xfffffff8
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 4]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 5]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 6]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 7]
add r9, 8
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x1400bd650
test r8d, r8d
je 0x1400bd72d
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
add r8d, 0xffffffff
jne 0x1400bd710
not ecx
mov eax, ecx
ret
Function at 0x1400c2214
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x141a10f22
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x141a10f4b
pop rbp
sub rbp, 0x33
sub rbp, 0x1a10f18
sub rsp, 0x20
jmp 0x141a10f6a
mov rax, 0x1a10f18
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffffd68fc35d
xor byte [rax], dl
inc rax
dec rcx
jne 0x141a10f89
jmp 0x141a10fa0
adc eax, 0xd4d6b4d4
invalid

Function at 0x100403a20
Capabilities:
Encode data using xor

Disassembly:
xor al, 0x6c
xor al, 0x64
xor al, 0x67
xor al, 0x41
xor al, 0x3e
xor al, 0x7d
xor al, 0xa2
xor al, 0x9a
xor al, 0xa3
xor al, 0x88
xor al, 0x9d
xor al, 0xa4
xor al, 0x71
xor al, 0x74
xor al, 0x59
xor al, 0x87
xchg dword [rbp*4 - 0x57cb58cc], esi
xor al, 0x99
xor al, 0xa1
xor al, 0x86
xor al, 0xa3
xor al, 0xa3
movabs dword [0xa73490345934a834], eax
xor al, 0xad
xor al, 0xa7
xor al, 0xa8
xor al, 0x99
cdq
xor al, 0xa1
xor al, 0x67
xor al, 0x66
xor al, 0x90
xor al, 0xa7
xor al, 0x9c
xor al, 0x99
xor al, 0xa0
xor al, 0xa0
xor al, 0x67
xor al, 0x66
xor al, 0x62
Function at 0x140001070
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x1e0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1400010bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.__WSAStartup_Error:__d_n
mov ebx, eax
call fcn.140001010
mov eax, ebx
jmp 0x14000119f
mov qword [rsp + 0x1f0], rdi
mov edx, 1
mov edi, 2
mov r8d, 6
mov ecx, edi
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140001102
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.__Socket_Error:__d_n
mov ebx, eax
call fcn.140001010
mov eax, ebx
jmp 0x140001197
mov ecx, 0x2766
mov word [rsp + 0x20], di
call qword [sym.imp.WS2_32.dll_htons]
lea rcx, str.192.168.109.128
mov word [rsp + 0x22], ax
call qword [sym.imp.WS2_32.dll_inet_addr]
mov r8d, send
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov dword [rsp + 0x24], eax
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x14000115b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.__Bind_Error:__d_n
mov ebx, eax
call fcn.140001010
mov eax, ebx
jmp 0x140001197
xor r9d, r9d
lea rdx, [0x140005080]
mov r8d, 0x37d
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x14000118f
mov edx, eax
lea rcx, str.__Send__d_Bytes__n
call fcn.140001010
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
mov rdi, qword [rsp + 0x1f0]
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1400011d0
add rsp, 0x1e0
pop rbx
ret

Function at 0x140001a90
Capabilities:
Parse pe header

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

Function at 0x140001dd0
Capabilities:
Terminate process

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x20
mov ecx, 1
call sub.ucrtbase.dll__configure_narrow_argv
call sub.ucrtbase.dll__initialize_narrow_environment
call 0x140001e40
mov r12d, dword [rax]
call sub.ucrtbase.dll___p___argv
mov r13, qword [rax]
call sub.ucrtbase.dll__get_initial_narrow_environment
xor ecx, ecx
mov rbx, rax
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov rax, qword [rax + 0x10]
mov edx, dword [rax + 0x3c]
cmp word [rax + rdx + 0x5c], 2
sete cl
add ecx, 1
call sub.ucrtbase.dll__set_app_type
mov ecx, r12d
mov r8, rbx
mov rdx, r13
call fcn.140001f40
mov ecx, eax
call sub.ucrtbase.dll_exit
nop
nop
nop
nop
jmp qword [sym.imp.ucrtbase.dll___p___argc]
Function at 0x10000bae0
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
push r13
sub rsp, 0xb0
xor ebx, ebx
mov dword [rsp + 0x20], ebx
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
mov r12d, ebx
xor eax, eax
lock cmpxchg qword [0x100011df8], rdi
je 0x10000bb40
cmp rax, rdi
jne 0x10000bb33
mov r12d, 1
jmp 0x10000bb40
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10000bb19
mov eax, dword [0x100011df0]
cmp eax, 1
jne 0x10000bb55
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x10000bbbc
mov eax, dword [0x100011df0]
cmp eax, ebx
jne 0x10000bbb2
mov dword [0x100011df0], 1
lea r13, [0x100001448]
lea rdi, [0x100001430]
mov qword [rsp + 0x30], rdi
mov eax, ebx
mov dword [rsp + 0x24], ebx
cmp rdi, r13
jae 0x10000bba4
cmp eax, ebx
jne 0x10000bba4
mov rcx, qword [rdi]
cmp rcx, rbx
je 0x10000bb99
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x10000bb82
cmp eax, ebx
je 0x10000bbbc
mov eax, 0xff
jmp 0x10000bd04
mov dword [0x1000115d4], 1
mov eax, dword [0x100011df0]
cmp eax, 1
jne 0x10000bbe4
lea rdx, [0x100001428]
lea rcx, [0x1000013f0]
call sub.msvcrt.dll__initterm
mov dword [0x100011df0], 2
cmp r12d, ebx
jne 0x10000bbf3
mov rax, rbx
xchg qword [0x100011df8], rax
cmp qword [0x100011e10], rbx
je 0x10000bc1b
lea rcx, [0x100011e10]
call fcn.10000c0cc
cmp eax, ebx
je 0x10000bc1b
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x100011e10]
mov rcx, qword [sym.imp.msvcrt.dll__wcmdln]
cmp qword [rcx], rbx
jne 0x10000bc31
mov eax, 0xff
jmp 0x10000bd04
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
ja 0x10000bcb6
cmp word [rcx], bx
je 0x10000bc4c
cmp edx, ebx
jne 0x10000bcb6
cmp word [rcx], bx
je 0x10000bc62
cmp word [rcx], 0x20
ja 0x10000bc62
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x10000bc4c
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x100000000]
call fcn.100002d14
mov dword [0x1000115d0], eax
cmp dword [0x1000115b4], ebx
jne 0x10000bca0
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1000115d4], ebx
jne 0x10000bcb4
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1000115d0]
jmp 0x10000bd04
cmp word [rcx], 0x22
jne 0x10000bcc9
mov eax, ebx
cmp edx, ebx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x10000bc3d
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r12, qword [r11 + 0x20]
mov rsp, r11
pop r13
ret
sub rsp, 0x28
call fcn.100162000
add rsp, 0x28
jmp 0x10000bae0
Function at 0x1400047e4
Capabilities:
Identify system language via api

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1400128b8]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea r14, str.en_US
mov rsi, rcx
mov qword [rcx], r14
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
mov word [rsp + 0x30], ax
mov ebx, 0x10
mov r9d, ebx
lea rdx, [0x140008110]
lea rax, [0x140004df0]
mov r8d, 0x1b3
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call sub.api_ms_win_crt_private_l1_1_0.dll__o_bsearch
xor ebp, ebp
test rax, rax
jne 0x14000485f
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400048e5
cmp dword [rax + 0xc], 0x7c
jne 0x14000486c
cmp word [rax + 8], 0x7f
jne 0x14000484f
mov r8, qword [rax]
or rcx, 0xffffffffffffffff
inc rcx
cmp word [r8 + rcx*2], bp
jne 0x140004873
inc rcx
cmp rcx, 0x7ffffffe
jbe 0x140004890
mov word [rsp + 0x38], bp
jmp 0x1400048d7
lea rax, [rsp + 0x38]
mov r9d, ebp
sub r8, rax
lea rdx, [rsp + 0x38]
lea rax, [rbx - 0x10]
add rax, rcx
je 0x1400048c0
movzx eax, word [r8 + rdx]
test ax, ax
je 0x1400048c0
mov word [rdx], ax
add rdx, 2
sub rbx, 1
jne 0x1400048a0
test rbx, rbx
jne 0x1400048cf
sub rdx, 2
mov r9d, 0x8007007a
mov word [rdx], bp
test r9d, r9d
jns 0x1400048e1
mov ecx, 0x7a
jmp 0x140004854
test ecx, ecx
jne 0x1400048f1
mov rcx, qword [rsp + 0x78]
call fcn.14000494c
jmp 0x14000492a
mov rbx, rbp
mov rdi, rbp
mov rdx, qword [rdi + r14]
lea rcx, [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
test eax, eax
je 0x14000491c
inc rbx
add rdi, 0x30
cmp rdi, 0x750
jb 0x1400048f7
jmp 0x14000492a
lea rax, [rbx + rbx*2]
shl rax, 4
add rax, r14
mov qword [rsi], rax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400050e0
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 0x140005104
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140012e60], eax
call fcn.1400056f0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140012e60], 0
jne case.default.0x14000515a
mov ecx, 1
call fcn.1400056f0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, 0xbfeb4310
push rcx
enter 0x3f68, 0xfffffffffffffffc
invalid
Function at 0x4016f3
Capabilities:
Execute anti-debugging instructions

Disassembly:
cld
push rbx
push rcx
push rsi
push rbp
push r8
push r9
push r10
push r11
push rax
mov rbp, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x20
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetSystemTimeAsFileTime]
mov rsi, qword [rbp]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetSystemTimeAsFileTime]
cmp rsi, qword [rbp]
je 0x401719
mov rsi, qword [rbp]
add rsi, 0x989680
rdtsc
shl rdx, 0x20
lea rbx, [rax + rdx]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetSystemTimeAsFileTime]
cmp rsi, qword [rbp]
ja 0x40173d
rdtsc
shl rdx, 0x20
or rax, rdx
sub rax, rbx
stc
js 0x401774
mov rcx, rax
jrcxz 0x401774
push rax
movabs rax, 0x38d7ea4c68000
cqo
div rcx
xchg rdx, rax
pop rax
clc
mov rsp, rbp
pop rbx
pop r11
pop r10
pop r9
pop r8
pop rbp
pop rsi
pop rcx
pop rbx
ret
Function at 0x140001f00
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 [0x140020030]
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 [0x140022e30], rdx
lea rdx, str.EpsonScan2.log
lea rcx, [0x140022d60]
call fcn.140004b50
mov dword [rsp + 0x50], 1
lea rcx, [rsp + 0x80]
call fcn.140002140
nop
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.140002640
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 0x1400020e6
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rax
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
nop
mov rax, qword [rsp + 0x58]
cmp dword [rax - 0x10], 0
je 0x1400020da
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 0x1400020da
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 0x1400020d0
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 0x140002110
xor eax, eax
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.140012160
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140002140
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x280
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x140020030]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rbx, rcx
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x34], 0
call qword [0x140015700]
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 0x14000221a
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 0x14000220f
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.140012160
add rsp, 0x280
pop rbx
ret
Function at 0x140003920
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 [0x140020030]
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 0x1400039e3
mov dword [rbp - 0x39], edi
mov dword [rbp - 0x35], edi
cmp qword [rsi + 0x18], 8
jb 0x1400039ef
mov rax, qword [rsi]
jmp 0x1400039f2
mov rax, rsi
cmp qword [rbx + 0x18], 8
jb 0x1400039fe
mov rdx, qword [rbx]
jmp 0x140003a01
mov rdx, rbx
cmp qword [r12 + 0x18], 8
jb 0x140003a0f
mov rcx, qword [r12]
jmp 0x140003a12
mov rcx, r12
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
lea r8, [0x140016640]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov r11d, eax
lea ecx, [rdi - 1]
lea eax, [rcx - 1]
cmp r11d, eax
je 0x1400039b0
cmp r11d, ecx
je 0x1400039b0
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.140001520
nop
mov qword [rbp - 0x49], r15
mov rdx, qword [rbp - 0x41]
test rdx, rdx
je 0x140003a82
lea rcx, [rbp - 0x49]
call qword [0x140017b98]
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 0x140003a9d
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 0x140003abf
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 0x140003ae2
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.140012160
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140004560
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 [0x140020030]
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 0x1400045c6
mov rcx, qword [rdx]
jmp 0x1400045c9
mov rcx, rdx
xor edx, edx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test eax, eax
je 0x140004670
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 0x140004606
mov rcx, qword [rbx]
jmp 0x140004609
mov rcx, rbx
mov r9, rax
mov r8d, edi
xor edx, edx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x140004658
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 0x140004658
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.140001520
mov rcx, r13
call qword [sym.imp.mfc100u.dll_delete__]
nop
jmp 0x140004670
cmp qword [rbx + 0x18], 8
jb 0x140004680
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.140012160
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret