Function at 0x401070
Capabilities:
Encode data using xor
Enumerate processes
Get file size
Read file on windows

Disassembly:
sub esp, 0x340
push ebx
push ebp
push esi
push edi
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0xc1]
mov byte [esp + 0xc0], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x24d]
mov byte [esp + 0x24c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x24c]
push 0x104
push eax
push 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x130], 0x128
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.00401000
add esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [esp + 0x24c]
mov dword [esp + 0x14], eax
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push ecx
call ebp
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea edx, [edi + 1]
push edx
call fcn.004033d0
add esp, 4
mov ebx, eax
lea eax, [esp + 0x18]
mov byte [esp + 0x10], 0
push 0
push eax
push edi
push ebx
push esi
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
dec edi
test edi, edi
jle 0x401165
mov cl, byte [eax + ebx]
mov dl, byte [esp + 0x10]
xor dl, cl
inc eax
cmp eax, edi
mov byte [esp + 0x10], dl
jl 0x401153
mov dl, byte [eax + ebx]
mov cl, byte [esp + 0x10]
not dl
xor cl, dl
push ebx
mov byte [esp + 0x14], cl
call fcn.004033c5
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x354]
and ebx, 0xff
cmp eax, 3
jne 0x40135e
mov eax, dword [esp + 0x358]
mov ecx, dword [eax + 8]
push ecx
call fcn.004033ba
add esp, 4
mov dword [esp + 0x20], eax
xor eax, eax
mov ecx, 0x27
lea edi, [esp + 0x24]
push eax
rep stosd dword es:[edi], eax
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea edx, [esp + 0x124]
mov esi, eax
push edx
push esi
mov dword [esp + 0x18], esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40129c
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x12c]
cmp ecx, eax
je 0x40120c
lea ecx, [esp + 0x124]
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4011e6
jmp 0x40129c
push 0
push 0x80
push 3
push 0
push 1
lea edx, [esp + 0x15c]
push 0x80000000
push edx
call ebp
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + 1]
push eax
call fcn.004033d0
add esp, 4
lea ecx, [esp + 0x14]
mov ebp, eax
mov dword [esp + 0x14], 0
push 0
push ecx
push edi
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
dec edi
test edi, edi
jle 0x401273
mov cl, byte [eax + ebp]
xor bl, cl
inc eax
cmp eax, edi
jl 0x401269
mov dl, byte [eax + ebp]
push ebp
not dl
xor bl, dl
mov byte [esp + 0x1c], bl
call fcn.004033c5
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
and ebx, 0xff
mov eax, dword [esp + 0x358]
mov ecx, dword [eax + 4]
push ecx
call fcn.004033ba
mov ebp, dword [sym.imp.KERNEL32.dll_GetVersionExA]
add esp, 4
lea edx, [esp + 0x24]
mov edi, eax
push edx
mov dword [esp + 0x28], 0x9c
call ebp
test eax, eax
jne 0x4012d9
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0x94
push eax
call ebp
mov ecx, dword [esp + 0x28]
push esi
mov dword [0x40dd30], ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x2c]
mov ecx, ebx
mov dword [0x40dd34], edx
mov edx, dword [esp + 0x20]
lea eax, [esp + 0xc0]
push 0x64
xor ecx, edx
push eax
xor ebx, edi
push ecx
push ebx
call fcn.00401c00
add esp, 0x10
test eax, eax
je 0x40133a
lea edx, [esp + 0xc0]
push edx
push 0x40b080
call fcn.004032fe
mov eax, dword [esp + 0x24]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x340
ret
push 0x40b060
call fcn.004032fe
add esp, 4
mov dword [esp + 0x1c], 1
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x340
ret
push 0x40b054
call fcn.004032fe
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x340
ret