Function at 0x41e860
Capabilities:
Create thread
Encode data using xor
Set file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59add6
mov eax, dword fs:[0]
push eax
sub esp, 0x18c
mov eax, dword [0x6dd8d0]
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 eax, dword [0x6ee198]
lea ecx, [ebp - 0x34]
push ecx
push 0
push eax
mov dword [ebp - 0x3c], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
test eax, eax
jne 0x41ecad
cmp dword [0x6ee264], 1
jne 0x41e9e8
mov dword [ebp - 0x38], 0x5af728
mov ebx, dword [ebp - 0x38]
mov edi, dword [ebp - 0x38]
add edi, 0x14
cmp byte [ebx + 0x13], al
je 0x41e912
mov esi, dword [ebx + 0xf]
lea eax, [esi + 1]
push eax
call dword [sym.imp.MSVCR120.dll_malloc]
add esp, 4
mov ecx, eax
xor edx, edx
mov dword [ebp - 0x38], ecx
test esi, esi
je 0x41e909
sub edi, ecx
lea ebx, [ebx]
mov eax, edx
add ecx, edx
and eax, 7
inc edx
mov al, byte [eax + ebx + 7]
xor al, byte [edi + ecx]
mov byte [ecx], al
mov ecx, dword [ebp - 0x38]
cmp edx, dword [ebx + 0xf]
jb 0x41e8f0
mov eax, dword [ebx + 0xf]
mov edi, ecx
mov byte [ecx + eax], 0
push 1
push 0x40
push 8
push edi
lea ecx, [ebp - 0x198]
call fcn.0040c520
mov dword [ebp - 0x38], 0x5af750
mov ebx, dword [ebp - 0x38]
mov edi, dword [ebp - 0x38]
add edi, 0x14
mov dword [ebp - 4], 0
cmp byte [ebx + 0x13], 0
je 0x41e982
mov esi, dword [ebx + 0xf]
lea eax, [esi + 1]
push eax
call dword [sym.imp.MSVCR120.dll_malloc]
add esp, 4
mov ecx, eax
xor edx, edx
mov dword [ebp - 0x38], ecx
test esi, esi
je 0x41e979
sub edi, ecx
mov edi, edi
mov eax, edx
add ecx, edx
and eax, 7
inc edx
mov al, byte [eax + ebx + 7]
xor al, byte [edi + ecx]
mov byte [ecx], al
mov ecx, dword [ebp - 0x38]
cmp edx, dword [ebx + 0xf]
jb 0x41e960
mov eax, dword [ebx + 0xf]
mov edi, ecx
mov byte [ecx + eax], 0
lea eax, [ebp - 0x198]
push edi
push eax
call fcn.0040afa0
push dword [ebp - 0x3c]
lea eax, [ebp - 0x198]
push eax
call fcn.0040afa0
add esp, 0x10
lea ecx, [ebp - 0x194]
call fcn.0040a310
test eax, eax
jne 0x41e9ca
push eax
mov eax, dword [ebp - 0x198]
lea ecx, [ebp - 0x198]
push 2
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP120.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
lea ecx, [ebp - 0x138]
mov dword [ebp - 4], 0xffffffff
call fcn.0040c630
lea ecx, [ebp - 0x138]
call dword [sym.imp.MSVCP120.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
cmp dword [0x6ee274], 1
jne 0x41ebd3
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.MSVCR120.dll__time64]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.MSVCR120.dll__localtime64]
add esp, 8
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0xf0]
push 1
push 0x40
push 8
push 0x5af784
call fcn.0040c520
mov dword [ebp - 0x38], str._5_Y
mov ebx, dword [ebp - 0x38]
mov edi, dword [ebp - 0x38]
add edi, 0x14
mov dword [ebp - 4], 1
cmp byte [ebx + 0x13], 0
je 0x41ea82
mov esi, dword [ebx + 0xf]
lea eax, [esi + 1]
push eax
call dword [sym.imp.MSVCR120.dll_malloc]
add esp, 4
mov ecx, eax
xor edx, edx
mov dword [ebp - 0x38], ecx
test esi, esi
je 0x41ea79
sub edi, ecx
nop
mov eax, edx
add ecx, edx
and eax, 7
inc edx
mov al, byte [eax + ebx + 7]
xor al, byte [edi + ecx]
mov byte [ecx], al
mov ecx, dword [ebp - 0x38]
cmp edx, dword [ebx + 0xf]
jb 0x41ea60
mov eax, dword [ebx + 0xf]
mov edi, ecx
mov byte [ecx + eax], 0
lea eax, [ebp - 0xf0]
push edi
push eax
call fcn.0040afa0
push dword [ebp - 0x40]
call dword [sym.imp.MSVCR120.dll_asctime]
push eax
lea eax, [ebp - 0xf0]
push eax
call fcn.0040afa0
mov dword [ebp - 0x38], 0x5af7ac
add esp, 0x14
mov ebx, dword [ebp - 0x38]
mov edi, dword [ebp - 0x38]
add edi, 0x14
cmp byte [ebx + 0x13], 0
je 0x41eb02
mov esi, dword [ebx + 0xf]
lea eax, [esi + 1]
push eax
call dword [sym.imp.MSVCR120.dll_malloc]
add esp, 4
mov ecx, eax
xor edx, edx
mov dword [ebp - 0x38], ecx
test esi, esi
je 0x41eaf9
sub edi, ecx
jmp 0x41eae0
mov eax, edx
add ecx, edx
and eax, 7
inc edx
mov al, byte [eax + ebx + 7]
xor al, byte [edi + ecx]
mov byte [ecx], al
mov ecx, dword [ebp - 0x38]
cmp edx, dword [ebx + 0xf]
jb 0x41eae0
mov eax, dword [ebx + 0xf]
mov edi, ecx
mov byte [ecx + eax], 0
lea eax, [ebp - 0xf0]
push edi
push eax
call fcn.0040afa0
push dword [ebp - 0x3c]
lea eax, [ebp - 0xf0]
push eax
call fcn.0040afa0
mov dword [ebp - 0x38], 0x5af7e0
add esp, 0x10
mov ebx, dword [ebp - 0x38]
mov edi, dword [ebp - 0x38]
add edi, 0x14
cmp byte [ebx + 0x13], 0
je 0x41eb76
mov esi, dword [ebx + 0xf]
lea eax, [esi + 1]
push eax
call dword [sym.imp.MSVCR120.dll_malloc]
add esp, 4
mov ecx, eax
xor edx, edx
mov dword [ebp - 0x38], ecx
test esi, esi
je 0x41eb6d
sub edi, ecx
mov eax, edx
add ecx, edx
and eax, 7
inc edx
mov al, byte [eax + ebx + 7]
xor al, byte [edi + ecx]
mov byte [ecx], al
mov ecx, dword [ebp - 0x38]
cmp edx, dword [ebx + 0xf]
jb 0x41eb54
mov eax, dword [ebx + 0xf]
mov edi, ecx
mov byte [ecx + eax], 0
lea eax, [ebp - 0xf0]
push edi
push eax
call fcn.0040afa0
add esp, 8
lea ecx, [ebp - 0xec]
call fcn.0040a310
test eax, eax
jne 0x41ebaf
push eax
mov eax, dword [ebp - 0xf0]
lea ecx, [ebp - 0xf0]
push 2
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP120.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
push 2
push 0x5af81c
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 0x90]
call fcn.0040c630
lea ecx, [ebp - 0x90]
call dword [sym.imp.MSVCP120.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov eax, dword [0x6ee268]
push 0
cmp eax, 1
jne 0x41ec05
push 0
push 0
push 0x41e580
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp eax, 2
jne 0x41ec15
push 0
push 0
push 0x41e670
jmp 0x41ebe8
cmp eax, 3
jne 0x41ec25
push 0
push 0
push 0x41e760
jmp 0x41ebe8
cmp eax, 4
jne 0x41eca8
push 0
push 0
push 0x40f490
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x38], 0x5af820
mov ebx, dword [ebp - 0x38]
mov edi, dword [ebp - 0x38]
add edi, 0x14
cmp byte [ebx + 0x13], 0
je 0x41ec92
mov esi, dword [ebx + 0xf]
lea eax, [esi + 1]
push eax
call dword [sym.imp.MSVCR120.dll_malloc]
add esp, 4
mov ecx, eax
xor edx, edx
mov dword [ebp - 0x38], ecx
test esi, esi
je 0x41ec89
sub edi, ecx
mov eax, edx
add ecx, edx
and eax, 7
inc edx
mov al, byte [eax + ebx + 7]
xor al, byte [edi + ecx]
mov byte [ecx], al
mov ecx, dword [ebp - 0x38]
cmp edx, dword [ebx + 0xf]
jb 0x41ec70
mov eax, dword [ebx + 0xf]
mov edi, ecx
mov byte [ecx + eax], 0
push 0x200010
push edi
push dword [ebp - 0x3c]
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x41ebfd
jmp 0x41ebff
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.0059978a
mov esp, ebp
pop ebp
ret