Function at 0x578880
Capabilities:
Encode data using xor
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7a21bc
mov eax, dword fs:[0]
push eax
sub esp, 0x560
mov eax, dword [0x82f184]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x434], esi
mov dword [ebp - 0x3ec], 0
lea ecx, [ebp - 0x404]
mov byte [ebp - 0x3ec], 0
mov edx, esi
push dword [ebp - 0x3ec]
call fcn.0041c8d0
add esp, 4
lea ecx, [ebp - 0x404]
mov dword [ebp - 4], 0
call fcn.00427e60
lea ecx, [ebp - 0x404]
mov dword [ebp - 4], 0xffffffff
mov bl, al
call fcn.00404490
push 0xb0
lea eax, [ebp - 0xd8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xd8], 0x7d4f80
lea ecx, [ebp - 0x70]
mov dword [ebp - 0xc8], 0x7d5218
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::constructor_void_]
test bl, bl
je 0x578b96
push 0
lea eax, [ebp - 0xc0]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0x3ec], 4
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__::constructor_class_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t____]
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0xd8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xd8], vtable..7.0
mov eax, dword [ebp - 0xd8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xdc], eax
lea ecx, [ebp - 0xc0]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::constructor_void_]
mov dword [ebp - 0xc0], 0x7c6164
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 4], 3
mov eax, 0x1c
mov dword [ebp - 0x42c], eax
xor ecx, ecx
mov dword [ebp - 0x428], 0x980099
mov dword [ebp - 0x424], 0x9b009b
mov dword [ebp - 0x420], 0xd800ee
mov dword [ebp - 0x41c], 0xd000d3
mov dword [ebp - 0x418], 0xa800b6
mov dword [ebp - 0x414], 0xa400ac
mov dword [ebp - 0x410], 0xb600e4
mov dword [ebp - 0x40c], 0xb400bf
mov dword [ebp - 0x408], 0xac00bc
mov dword [ebp - 0x404], 0xeb00a7
mov dword [ebp - 0x400], 0xa200aa
mov dword [ebp - 0x3fc], 0xab00a2
mov dword [ebp - 0x3f8], 0xa300b5
mov dword [ebp - 0x3f4], 0xf300e8
mov dword [ebp - 0x3f0], 0xd4
nop word [eax + eax]
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0x428], ax
inc ecx
mov eax, dword [ebp - 0x42c]
cmp ecx, eax
jb 0x578a70
xor ecx, ecx
mov word [ebp + eax*2 - 0x428], cx
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0xc8]
push eax
call fcn.00404740
mov ecx, dword [esi + 0x10]
add esp, 8
cmp dword [esi + 0x14], 8
jb 0x578ab4
mov esi, dword [esi]
push ecx
push esi
push eax
call fcn.00404c80
add esp, 0xc
call fcn.00434600
mov dword [ebp - 0x3ec], eax
lea eax, [ebp - 0x56c]
push eax
call fcn.00579090
mov esi, eax
xor ecx, ecx
mov edx, dword [esi]
lea edi, [esi + 4]
test edx, edx
je 0x578af4
lea eax, [ecx + 0xb8]
xor word [edi + ecx*2], ax
inc ecx
mov edx, dword [esi]
cmp ecx, edx
jb 0x578ae3
xor eax, eax
mov word [edi + edx*2], ax
lea eax, [ebp - 0x4cc]
push eax
call fcn.00577d10
mov esi, eax
xor ecx, ecx
mov edx, dword [esi]
lea ebx, [esi + 4]
test edx, edx
je 0x578b24
lea eax, [ecx + 0xb8]
xor word [ebx + ecx*2], ax
inc ecx
mov edx, dword [esi]
cmp ecx, edx
jb 0x578b13
mov ecx, dword [ebp - 0x3ec]
xor eax, eax
mov word [ebx + edx*2], ax
lea eax, [ebp - 0xd8]
push eax
push edi
push 0x15c
push ebx
push 0
call fcn.00469240
mov eax, dword [ebp - 0xd8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xd8], vtable..7.0
mov eax, dword [ebp - 0xd8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xdc], eax
lea ecx, [ebp - 0xc0]
call fcn.004073e0
lea ecx, [ebp - 0xb8]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x70]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
mov eax, 2
jmp 0x57906d
push 0
lea eax, [ebp - 0xc0]
mov dword [ebp - 4], 4
push eax
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0x3ec], 8
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__::constructor_class_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t____]
mov dword [ebp - 4], 5
mov eax, dword [ebp - 0xd8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xd8], vtable..7.0
mov eax, dword [ebp - 0xd8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xdc], eax
lea ecx, [ebp - 0xc0]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::constructor_void_]
mov dword [ebp - 0xc0], 0x7c6164
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 4], 6
mov eax, 0x11
movaps xmm0, xmmword [0x7e4120]
xor ecx, ecx
mov dword [ebp - 0x28], eax
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x14], 0xc9e8
mov al, cl
sub al, 0x48
xor byte [ebp + ecx - 0x24], al
inc ecx
mov eax, dword [ebp - 0x28]
cmp ecx, eax
jb 0x578c37
mov byte [ebp + eax - 0x24], 0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xc8]
push eax
call fcn.00413580
add esp, 8
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x578c69
mov ecx, dword [esi]
push dword [esi + 0x10]
push ecx
push eax
call fcn.00404c80
add esp, 0xc
call fcn.00434600
mov dword [ebp - 0x430], eax
lea eax, [ebp - 0x56c]
push eax
call fcn.005791d0
mov edi, eax
xor ecx, ecx
mov edx, dword [edi]
lea ebx, [edi + 4]
test edx, edx
je 0x578cb1
nop word [eax + eax]
lea eax, [ecx + 0xb8]
xor word [ebx + ecx*2], ax
inc ecx
mov edx, dword [edi]
cmp ecx, edx
jb 0x578ca0
xor eax, eax
mov word [ebx + edx*2], ax
lea eax, [ebp - 0x4cc]
push eax
call fcn.00577d10
mov edi, eax
xor ecx, ecx
mov edx, dword [edi]
lea eax, [edi + 4]
mov dword [ebp - 0x3ec], eax
test edx, edx
je 0x578cfe
nop word [eax + eax]
lea eax, [ecx + 0xb8]
xor word [edi + ecx*2 + 4], ax
inc ecx
mov edx, dword [edi]
cmp ecx, edx
jb 0x578ce0
mov esi, dword [ebp - 0x434]
mov eax, dword [ebp - 0x3ec]
xor ecx, ecx
mov word [eax + edx*2], cx
lea ecx, [ebp - 0xd8]
push ecx
mov ecx, dword [ebp - 0x430]
push ebx
push 0x160
push eax
push 1
call fcn.00469240
mov eax, dword [ebp - 0xd8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xd8], vtable..7.0
mov eax, dword [ebp - 0xd8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xdc], eax
lea ecx, [ebp - 0xc0]
call fcn.004073e0
lea ecx, [ebp - 0xb8]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x70]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
push 0x260
lea eax, [ebp - 0x3e8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, 0x5c
mov dword [ebp - 0x3e8], 0
add esp, 0xc
mov dword [ebp - 0x194], 0
mov word [ebp - 0x190], ax
mov dword [ebp - 0x18c], 0
mov dword [ebp - 4], 7
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x578db7
mov eax, dword [esi]
push ecx
push eax
lea ecx, [ebp - 0x3e8]
call fcn.00415f30
test eax, eax
je 0x57902e
cmp dword [ebp - 0x18c], 0
je 0x57902e
mov eax, dword [ebp - 0x3e4]
shr eax, 4
and eax, 1
je 0x57902e
push esi
lea ecx, [ebp - 0x410]
call fcn.00403150
lea eax, [ebp - 0x410]
mov byte [ebp - 4], 8
push eax
call fcn.00418c00
add esp, 4
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x3f8]
call fcn.00404220
lea ecx, [ebp - 0x410]
call fcn.00404490
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x578e2e
mov eax, dword [esi]
push ecx
push eax
lea ecx, [ebp - 0x3e8]
call fcn.00415f30
test eax, eax
je 0x57902a
push str.clntmp
lea ecx, [ebp - 0x404]
call fcn.004040b0
lea edx, [ebp - 0x404]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x28]
call fcn.0041d4e0
lea ecx, [ebp - 0x404]
mov byte [ebp - 4], 0xb
call fcn.00404490
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov ecx, esi
cmovae eax, dword [ebp - 0x28]
cmp dword [esi + 0x14], 8
jb 0x578e89
mov ecx, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileW]
push eax
push ecx
call edi
test eax, eax
jne 0x579022
mov ecx, esi
call fcn.00579450
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov ecx, esi
cmovae eax, dword [ebp - 0x28]
cmp dword [esi + 0x14], 8
jb 0x578eb7
mov ecx, dword [esi]
push eax
push ecx
call edi
test eax, eax
jne 0x579022
push 0xb0
push eax
lea eax, [ebp - 0x188]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x188], 0x7d4f80
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x178], 0x7d5218
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::constructor_void_]
push 0
lea eax, [ebp - 0x170]
mov byte [ebp - 4], 0xc
push eax
lea ecx, [ebp - 0x188]
mov dword [ebp - 0x3ec], 0x18
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__::constructor_class_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t____]
mov dword [ebp - 4], 0xd
mov eax, dword [ebp - 0x188]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method..7.virtual_0], vtable..7.0
mov eax, dword [ebp - 0x188]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x18c], eax
lea ecx, [ebp - 0x170]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::constructor_void_]
mov dword [ebp - 0x170], 0x7c6164
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x134], 0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x410]
movaps xmm0, xmmword [0x7e3a90]
movups xmmword [ebp - 0x40c], xmm0
push esi
movaps xmm0, xmmword [0x7e33c0]
mov dword [ebp - 0x410], 0x1c
movups xmmword [ebp - 0x3fc], xmm0
call fcn.004131e0
push eax
lea eax, [ebp - 0x178]
push eax
call fcn.00413580
add esp, 8
push eax
call fcn.00404930
add esp, 8
call fcn.00434600
mov edi, eax
lea eax, [ebp - 0x56c]
push eax
call fcn.00579310
mov ecx, eax
call fcn.00403e20
mov esi, eax
lea eax, [ebp - 0x4cc]
push eax
call fcn.00577d10
mov ecx, eax
call fcn.00403e20
lea ecx, [ebp - 0x188]
push ecx
push esi
push 0x17a
push eax
push 0
mov ecx, edi
call fcn.00469240
lea ecx, [ebp - 0x188]
call fcn.00406480
lea ecx, [ebp - 0x28]
call fcn.00404490
mov esi, 2
jmp 0x579033
lea ecx, [ebp - 0x28]
call fcn.00404490
xor esi, esi
jmp 0x579033
mov esi, 1
push dword [ebp - 0x194]
mov dword [ebp - 0x18c], 0
call fcn.0078f0d5
mov ecx, dword [ebp - 0x3e8]
add esp, 4
mov dword [ebp - 0x194], 0
test ecx, ecx
je 0x57906b
cmp ecx, 0xffffffff
je 0x57906b
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0076d59e
mov esp, ebp
pop ebp
ret