joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e5d0
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbx, rcx
mov dword [rsp + 0x58], 0
xor eax, eax
mov byte [rsp + 0x48], al
lea r9, [rsp + 0x48]
xor r8d, r8d
mov edx, 0x400
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_unsigned_long_long_unsigned___int64___char__class_std::allocator_char__const____ptr64____ptr64]
mov dword [rsp + 0x58], 1
mov rcx, qword [rbx + 0x10]
add ecx, 0xffffffff
mov dword [rsp + 0x50], ecx
xor edx, edx
mov rcx, rbx
call qword [sym.imp.msvcp60.dll_public:_char____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator___unsigned_long_long_unsigned___int64_____ptr64]
mov rcx, rax
lea rdx, [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x41e64c
mov edx, dword [rsp + 0x50]
add edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::resize_unsigned_long_long_unsigned___int64_____ptr64]
mov rax, rbx
jmp 0x41e664
mov r8, qword [sym.imp.msvcp60.dll_unsigned_long_long_unsigned___int64__const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov r8, qword [r8]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.msvcp60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::erase_unsigned_long_long_unsigned___int64___unsigned_long_long_unsigned___int64_____ptr64]
mov rax, rbx
add rsp, 0x30
pop rbx
ret

Function at 0x41e910
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x20
xor edx, edx
mov r8d, 0x9c
mov rbx, rcx
call sub.msvcrt.dll_memset
mov rcx, rbx
mov dword [rbx], 0x9c
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
lea rcx, [rbx + 0xa0]
xor eax, eax
mov qword [rcx], rax
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], rax
mov qword [rcx + 0x20], rax
mov qword [rcx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x41ec40
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rcx
mov r11, rsp
sub rsp, 0xa8
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [r11 + 0x20], rbx
mov qword [r11 - 8], rsi
mov qword [r11 - 0x10], rdi
movzx esi, r8b
mov rbx, rdx
mov rdi, rcx
mov dword [rsp + 0x24], 0
xor eax, eax
mov byte [r11 + 0x10], al
lea rdx, [r11 + 0x10]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::allocator_char__const____ptr64____ptr64]
mov dword [rsp + 0x24], 1
cmp qword [rbx + 0x10], 0
jne 0x41ecd5
xor eax, eax
mov byte [rsp + 0x20], al
lea r8, [rsp + 0x20]
lea rdx, str.empty_name
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const____ptr64__class_std::allocator_char__const____ptr64____ptr64]
nop
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::runtime_error::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const____ptr64____ptr64]
lea rdx, [0x005c53f0]
lea rcx, [rsp + 0x50]
call sub.msvcrt.dll__CxxThrowException
nop
mov rcx, qword [rbx + 8]
test rcx, rcx
cmove rcx, qword [sym.imp.msvcp60.dll_char_const__private:_static_char_const____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea rax, [0x00563164]
lea rdx, [0x00563160]
test sil, sil
cmovne rdx, rax
call qword [sym.imp.msvcrt.dll_fopen]
mov rsi, rax
test rax, rax
je 0x41ed74
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, rax
call qword [sym.imp.msvcrt.dll_fseek]
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_ftell]
movsxd rbx, eax
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_fseek]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::resize_unsigned_long_long_unsigned___int64_____ptr64]
mov rbx, qword [rdi + 0x10]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.msvcp60.dll_public:_char____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator___unsigned_long_long_unsigned___int64_____ptr64]
mov rcx, rax
mov r9, rsi
mov r8, rbx
mov edx, 1
call qword [sym.imp.msvcrt.dll_fread]
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::resize_unsigned_long_long_unsigned___int64_____ptr64]
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_fclose]
mov rax, rdi
mov rbx, qword [rsp + 0xc8]
mov rsi, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0x98]
add rsp, 0xa8
ret
Function at 0x41edf0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x60], rbx
mov rbx, rcx
xor eax, eax
mov qword [rsp + 0x68], rdi
mov rdi, rdx
lea rcx, [rsp + 0x20]
lea rdx, [rsp + 0x50]
mov byte [rsp + 0x50], al
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::allocator_char__const____ptr64____ptr64]
mov rcx, qword [rbx + 8]
lea rdx, [0x00563174]
test rcx, rcx
cmove rcx, qword [sym.imp.msvcp60.dll_char_const__private:_static_char_const____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
call qword [sym.imp.msvcrt.dll_fopen]
test rax, rax
mov rbx, rax
je 0x41ee68
mov rcx, qword [rdi + 8]
mov r8, qword [rdi + 0x10]
mov r9, rax
test rcx, rcx
mov edx, 1
cmove rcx, qword [sym.imp.msvcp60.dll_char_const__private:_static_char_const____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
call qword [sym.imp.msvcrt.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_fclose]
lea rcx, [rsp + 0x20]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
mov rdi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
add rsp, 0x48
ret

Function at 0x41ee90
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rdi
test rcx, rcx
mov rdi, rdx
lea rdx, [0x00563178]
cmove rcx, qword [sym.imp.msvcp60.dll_char_const__private:_static_char_const____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
call qword [sym.imp.msvcrt.dll_fopen]
test rax, rax
mov rbx, rax
je 0x41eeef
mov rcx, qword [rdi + 8]
mov r8, qword [rdi + 0x10]
mov r9, rax
test rcx, rcx
mov edx, 1
cmove rcx, qword [sym.imp.msvcp60.dll_char_const__private:_static_char_const____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
call qword [sym.imp.msvcrt.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_fclose]
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
add rsp, 0x28
ret
Function at 0x41fb90
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rdi
mov rdi, rcx
mov dword [rsp + 0x20], 0
xor eax, eax
mov byte [rsp + 0x48], al
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edx, [rax + 1]
lea r9, [rsp + 0x48]
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_unsigned_long_long_unsigned___int64___char__class_std::allocator_char__const____ptr64____ptr64]
mov dword [rsp + 0x20], 1
mov rbx, qword [rdi + 0x10]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.msvcp60.dll_public:_char____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator___unsigned_long_long_unsigned___int64_____ptr64]
mov rdx, rax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edx, eax
mov rcx, rdi
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::resize_unsigned_long_long_unsigned___int64_____ptr64]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x38
ret
Function at 0x41fc50
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
mov r11, rsp
sub rsp, 0x78
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rdi
mov rdi, rcx
mov dword [rsp + 0x24], 0
xor eax, eax
mov byte [r11 + 0x10], al
lea r9, [r11 + 0x10]
xor r8d, r8d
mov edx, 0x105
lea rcx, [r11 - 0x48]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_unsigned_long_long_unsigned___int64___char__class_std::allocator_char__const____ptr64____ptr64]
nop
mov ebx, dword [rsp + 0x40]
add ebx, 0xffffffff
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcp60.dll_public:_char____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator___unsigned_long_long_unsigned___int64_____ptr64]
mov rcx, rax
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x41fd02
mov r9d, 2
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcp60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_long_long_unsigned___int64___unsigned_long_long_unsigned___int64_____ptr64]
nop
mov rdx, rax
mov rcx, rdi
call fcn.0042a9d0
nop
mov dword [rsp + 0x24], 1
lea rcx, [rsp + 0x50]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
mov rax, rdi
jmp 0x41fd34
xor eax, eax
mov byte [rsp + 0x20], al
lea r8, [rsp + 0x20]
lea rdx, [0x005632f8]
mov rcx, rdi
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const____ptr64__class_std::allocator_char__const____ptr64____ptr64]
nop
mov dword [rsp + 0x24], 1
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
mov rax, rdi
mov rbx, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x98]
add rsp, 0x78
ret
Function at 0x41fdc0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rdi
mov rdi, rcx
mov dword [rsp + 0x20], 0
xor eax, eax
mov byte [rsp + 0x48], al
lea r9, [rsp + 0x48]
xor r8d, r8d
mov edx, 0x105
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_unsigned_long_long_unsigned___int64___char__class_std::allocator_char__const____ptr64____ptr64]
mov dword [rsp + 0x20], 1
mov rbx, qword [rdi + 0x10]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.msvcp60.dll_public:_char____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator___unsigned_long_long_unsigned___int64_____ptr64]
mov rdx, rax
lea ecx, [rbx - 1]
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edx, eax
mov rcx, rdi
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::resize_unsigned_long_long_unsigned___int64_____ptr64]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x38
ret
Function at 0x4200d0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
mov r11, rsp
sub rsp, 0x78
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rdi
mov rdi, rcx
mov dword [rsp + 0x24], 0
xor eax, eax
mov byte [r11 + 0x10], al
lea r9, [r11 + 0x10]
xor r8d, r8d
mov edx, 0x105
lea rcx, [r11 - 0x48]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_unsigned_long_long_unsigned___int64___char__class_std::allocator_char__const____ptr64____ptr64]
nop
mov ebx, dword [rsp + 0x40]
add ebx, 0xffffffff
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcp60.dll_public:_char____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator___unsigned_long_long_unsigned___int64_____ptr64]
mov rcx, rax
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x42017f
mov r9d, eax
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcp60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_long_long_unsigned___int64___unsigned_long_long_unsigned___int64_____ptr64]
nop
mov rdx, rax
mov rcx, rdi
call fcn.0042a9d0
nop
mov dword [rsp + 0x24], 1
lea rcx, [rsp + 0x50]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
mov rax, rdi
jmp 0x4201b1
xor eax, eax
mov byte [rsp + 0x20], al
lea r8, [rsp + 0x20]
lea rdx, str.d:windows_system32
mov rcx, rdi
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const____ptr64__class_std::allocator_char__const____ptr64____ptr64]
nop
mov dword [rsp + 0x24], 1
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
mov rax, rdi
mov rbx, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x98]
add rsp, 0x78
ret
Function at 0x420c00
Capabilities:
Create process memory minidump

Disassembly:
mov qword [rsp + 0x10], rdx
mov rax, rsp
sub rsp, 0x158
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov qword [rax - 8], rsi
mov qword [rax - 0x10], rdi
mov qword [rax - 0x18], r12
mov qword [rax - 0x20], r13
mov qword [rax - 0x28], r14
mov qword [rax - 0x30], r15
mov r15, r8
mov r12, rdx
mov r14, rcx
xor ebx, ebx
mov dword [rsp + 0x4c], ebx
call fcn.00420940
mov dword [rsp + 0x4c], 1
lea ecx, [rbx + 8]
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov rsi, rax
mov qword [rsp + 0x80], rax
test rax, rax
je 0x420cc8
mov rcx, qword [r12 + 8]
test rcx, rcx
cmove rcx, qword [sym.imp.msvcp60.dll_char_const__private:_static_char_const____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsi], rax
mov rcx, rsi
call fcn.0042d240
test al, al
jne 0x420ccb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x44], eax
lea rdx, [0x005c5448]
lea rcx, [rsp + 0x44]
call sub.msvcrt.dll__CxxThrowException
mov rsi, rbx
test rsi, rsi
setne r13b
mov byte [rsp + 0x80], r13b
mov qword [rsp + 0x88], rsi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x58], eax
mov qword [rsp + 0x5c], r15
mov dword [rsp + 0x64], 1
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, dword [r14 + 0x20]
mov r8, qword [rsi]
mov edx, ebx
mov rcx, rdi
call sub.dbghelp.dll_MiniDumpWriteDump
test eax, eax
jne 0x420d51
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x48], eax
lea rdx, [0x005c5448]
lea rcx, [rsp + 0x48]
call sub.msvcrt.dll__CxxThrowException
nop
test r13b, r13b
je 0x420d67
mov rcx, rsi
call fcn.0042d250
mov rcx, rsi
call fcn.00442df0
nop
mov rax, r12
mov rbx, qword [rsp + 0x178]
mov rsi, qword [rsp + 0x150]
mov rdi, qword [rsp + 0x148]
mov r12, qword [rsp + 0x140]
mov r13, qword [rsp + 0x138]
mov r14, qword [rsp + 0x130]
mov r15, qword [rsp + 0x128]
add rsp, 0x158
ret
Function at 0x421c20
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x40e8], 0
mov rbx, rcx
je 0x421cdf
xor r11d, r11d
cmp dword [rcx + 0xbc], r11d
jbe 0x421cdf
lea r10, [rcx + 0xe0]
nop
movzx ecx, byte [r10]
mov r8, qword [rbx + 0x40f8]
mov r9d, dword [rbx + 0x40f4]
mov edx, dword [rbx + 0x40ec]
and r9d, 0xfffd
inc r11d
xor cl, dl
shr edx, 8
or r9d, 2
movzx eax, cl
inc r10
mov ecx, dword [r8 + rax*4]
xor ecx, edx
mov edx, dword [rbx + 0x40f4]
mov dword [rbx + 0x40ec], ecx
movzx ecx, cl
add ecx, dword [rbx + 0x40f0]
imul ecx, ecx, 0x8088405
inc ecx
mov dword [rbx + 0x40f0], ecx
shr ecx, 0x18
xor cl, dl
shr edx, 8
movzx eax, cl
mov eax, dword [r8 + rax*4]
xor eax, edx
mov dword [rbx + 0x40f4], eax
mov eax, r9d
xor eax, 1
imul eax, r9d
shr eax, 8
xor byte [r10 - 1], al
cmp r11d, dword [rbx + 0xbc]
jb 0x421c50
mov r9d, dword [rbx + 0xbc]
mov rdx, qword [rbx + 0x40]
mov rcx, qword [rbx + 0x38]
lea r8, [rbx + 0xe0]
call qword [rbx + reloc.WS2_32.dll_recv]
xor ecx, ecx
mov edx, 0xffffffff
cmp eax, dword [rbx + 0xbc]
mov dword [rbx + 0xbc], 0
cmovne ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret
Function at 0x429240
Capabilities:
Get file size

Disassembly:
mov r11, rsp
sub rsp, 0xa8
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
mov rbx, rcx
xor eax, eax
mov byte [r11 + 8], al
mov rdx, qword [rcx + 0x10]
test rdx, rdx
cmove rdx, qword [sym.imp.msvcp60.dll_char_const__private:_static_char_const____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea r8, [r11 + 8]
lea rcx, [r11 - 0x30]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const____ptr64__class_std::allocator_char__const____ptr64____ptr64]
nop
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.00428920
nop
lea rcx, [rsp + 0x78]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
nop
mov ecx, 8
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov rdi, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x42931b
mov rcx, qword [rsp + 0x60]
test rcx, rcx
cmove rcx, qword [sym.imp.msvcp60.dll_char_const__private:_static_char_const____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
xor esi, esi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rsi + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rdi], rax
mov rcx, rdi
call fcn.0042d240
test al, al
jne 0x429320
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
lea rdx, [0x005c5448]
lea rcx, [rsp + 0x40]
call sub.msvcrt.dll__CxxThrowException
xor esi, esi
mov rdi, rsi
test rdi, rdi
setne bl
mov dword [rsp + 0x44], esi
lea rdx, [rsp + 0x44]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test bl, bl
je 0x42934f
mov rcx, rdi
call fcn.0042d250
mov rcx, rdi
call fcn.00442df0
nop
lea rcx, [rsp + 0x58]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
mov eax, esi
jmp 0x42936b
mov rbx, qword [rsp + 0xb8]
mov rsi, qword [rsp + 0xc0]
mov rdi, qword [rsp + 0xc8]
add rsp, 0xa8
ret
Function at 0x42d310
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
mov r11, rsp
sub rsp, 0x78
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rdi
mov ebx, edx
mov rdi, rcx
mov dword [rsp + 0x24], 0
xor eax, eax
mov byte [rsp + 0x20], al
lea r9, [r11 - 0x58]
xor r8d, r8d
mov edx, reloc.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
lea rcx, [r11 - 0x48]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_unsigned_long_long_unsigned___int64___char__class_std::allocator_char__const____ptr64____ptr64]
nop
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcp60.dll_public:_char____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator___unsigned_long_long_unsigned___int64_____ptr64]
mov rdx, rax
xor r9d, r9d
mov r8d, ebx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x42d3d2
xor eax, eax
mov byte [rsp + 0x21], al
mov rdx, qword [rsp + 0x38]
test rdx, rdx
cmove rdx, qword [sym.imp.msvcp60.dll_char_const__private:_static_char_const____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea r8, [rsp + 0x21]
lea rcx, [rsp + 0x50]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const____ptr64__class_std::allocator_char__const____ptr64____ptr64]
nop
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.0041f100
nop
mov dword [rsp + 0x24], 1
lea rcx, [rsp + 0x50]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
mov rax, rdi
jmp 0x42d404
xor eax, eax
mov byte [rsp + 0x21], al
lea r8, [rsp + 0x21]
lea rdx, [0x005610a8]
mov rcx, rdi
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const____ptr64__class_std::allocator_char__const____ptr64____ptr64]
nop
mov dword [rsp + 0x24], 1
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
mov rax, rdi
mov rbx, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x98]
add rsp, 0x78
ret