Function at 0x40a7b0
Capabilities:
Create thread
Encode data using xor
Terminate thread

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x503cd0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0xb0
push esi
push edi
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 4], 0
xor ecx, ecx
movaps xmm0, xmmword [0x526a50]
movups xmmword [ebp - 0x93], xmm0
mov word [ebp - 0x83], 0xdf
mov byte [ebp - 0x81], 1
lea eax, [ecx - 0x65]
xor byte [ebp + ecx - 0x93], al
inc ecx
cmp ecx, 0x11
jb 0x40a811
mov byte [ebp - 0x81], 0
xor ecx, ecx
mov dword [ebp - 0x27], 0xf2f9e8f5
mov dword [ebp - 0x23], 0xcec58ef3
mov word [ebp - 0x1f], 0xcf
mov byte [ebp - 0x1d], 1
lea eax, [ecx - 0x65]
xor byte [ebp + ecx - 0x27], al
inc ecx
cmp ecx, 9
jb 0x40a842
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea eax, [ebp - 0x27]
push eax
mov byte [ebp - 0x1d], 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x93]
push ecx
push eax
call edi
mov dword [ebp - 0x60], eax
xor ecx, ecx
mov dword [ebp - 0x41], 0xebcce8d5
mov dword [ebp - 0x3d], 0xedd8d2fa
mov dword [ebp - 0x39], 0xc5c0cec1
mov word [ebp - 0x35], 0xd3
mov byte [ebp - 0x33], 1
lea eax, [ecx - 0x65]
xor byte [ebp + ecx - 0x41], al
inc ecx
cmp ecx, 0xd
jb 0x40a893
mov byte [ebp - 0x33], 0
xor ecx, ecx
mov dword [ebp - 0x32], 0xf2f9e8f5
mov dword [ebp - 0x2e], 0xcec58ef3
mov word [ebp - 0x2a], 0xcf
mov byte [ebp - 0x28], 1
nop
lea eax, [ecx - 0x65]
xor byte [ebp + ecx - 0x32], al
inc ecx
cmp ecx, 9
jb 0x40a8c0
lea eax, [ebp - 0x32]
mov byte [ebp - 0x28], 0
push eax
call esi
lea ecx, [ebp - 0x41]
push ecx
push eax
call edi
push dword [ebp - 0x58]
mov dword [ebp - 0x5c], eax
push 0
push 0x40
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
mov dword [ebp - 0x1c], edi
test edi, edi
je 0x40ab67
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x4c], ecx
cmp dword [eax], ecx
jbe 0x40ab64
mov edx, dword [ebp - 0x18]
add eax, 8
mov dword [ebp - 0x64], eax
nop word [eax + eax]
movups xmm1, xmmword [eax]
mov dword [ebp - 0x14], 0
movq xmm0, qword [eax + 0x10]
movups xmmword [ebp - 0xc0], xmm1
mov dword [ebp - 0x48], 0
psrldq xmm1, 4
movd eax, xmm1
movq qword [ebp - 0xb0], xmm0
cmp eax, dword [ebp - 0x58]
jne 0x40ab4d
push 0
push 0
push 0
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
push dword [ebp - 0xb8]
push edi
call dword [ebp - 0x60]
test eax, eax
js 0x40ab4a
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 2
push dword [ebp - 0x14]
call dword [ebp - 0x5c]
test eax, eax
mov eax, dword [ebp - 0x48]
jns 0x40a99f
test eax, eax
jne 0x40a99f
push dword [ebp - 0x14]
call esi
jmp 0x40ab4a
push eax
call fcn.004ec24c
add esp, 4
mov edi, eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x48]
push edi
push 2
push dword [ebp - 0x14]
call dword [ebp - 0x5c]
test eax, eax
js 0x40ab42
cmp word [edi], 0
jbe 0x40ab47
push str.File
push dword [edi + 4]
call fcn.004dec10
add esp, 8
test eax, eax
je 0x40ab47
movaps xmm0, xmmword [0x527af0]
xor ecx, ecx
movups xmmword [ebp - 0x7b], xmm0
mov dword [ebp - 0x6b], 0xcfc8dec3
mov word [ebp - 0x67], 0xcb
mov byte [ebp - 0x65], 1
lea eax, [ecx - 0x65]
xor byte [ebp + ecx - 0x7b], al
inc ecx
cmp ecx, 0x15
jb 0x40aa02
lea eax, [ebp - 0x7b]
mov byte [ebp - 0x65], 0
push eax
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x54]
push 0
push 0
push eax
push 0x40a640
push 0
push 0
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x64
push esi
mov dword [ebp - 0x80], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x40ab18
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x40ab18
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0x98], eax
test cx, cx
je 0x40ab05
push 1
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.ntdll.dll_RtlUnicodeStringToAnsiString]
cmp dword [ebx + 0x1c], 0x10
lea eax, [ebx + 8]
cmovae eax, dword [ebx + 8]
push eax
push dword [ebp - 0xa0]
call fcn.004dee80
add esp, 8
test eax, eax
je 0x40ab05
push edi
call fcn.004ebaf6
push dword [ebp - 0x50]
call fcn.004ebaf6
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 8
push dword [ebp - 0x14]
call esi
push 1
push 0
push 0
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, dword [ebp - 0x1c]
push eax
push dword [ebp - 0xb8]
push edi
call dword [ebp - 0x60]
test eax, eax
js 0x40ab4a
push dword [ebp - 0x14]
call esi
jmp 0x40ab4a
push edi
call fcn.004ebaf6
push dword [ebp - 0x50]
call fcn.004ebaf6
add esp, 8
jmp 0x40ab3c
push 0
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push edi
call fcn.004ebaf6
mov eax, dword [ebp - 0x50]
add esp, 4
test eax, eax
je 0x40ab3c
push eax
call fcn.004ebaf6
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x14]
call esi
mov edi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
inc dword [ebp - 0x4c]
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x4c]
add eax, 0x1c
mov dword [ebp - 0x64], eax
cmp ecx, dword [edx]
jb 0x40a920
push edi
call esi
mov ecx, dword [ebx + 0x1c]
cmp ecx, 0x10
jb 0x40ab97
mov edx, dword [ebx + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40ab8d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40abaa
push ecx
push edx
call fcn.004dd831
add esp, 8
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004e2ad0
int3