Function at 0x40b5e0
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 0x52b506
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x110
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 [0x552350]
movups xmmword [ebp - 0x40], xmm0
mov byte [ebp - 0x30], 0xcb
xorps xmm0, xmm0
mov dword [ebp - 0x1f], 0
movups xmmword [ebp - 0x2f], xmm0
mov word [ebp - 0x1b], 0
mov byte [ebp - 0x19], 0
nop word [eax + eax]
lea eax, [ecx - 0x51]
xor byte [ebp + ecx - 0x40], al
inc ecx
cmp ecx, 0x11
jb 0x40b650
mov dword [0x565634], ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x40]
mov byte [ebp - 0x2f], 0
movups xmmword [ebp - 0x9c], xmm0
mov dword [ebp - 0x8c], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x88], 0
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b690
sub ecx, edx
lea eax, [ebp - 0x40]
push ecx
push eax
lea ecx, [ebp - 0x9c]
call fcn.00402c40
mov byte [ebp - 4], 1
lea esi, [ebp - 0x9c]
cmp dword [ebp - 0x88], 0x10
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0xded5c4c1
cmovae esi, dword [ebp - 0x9c]
xor ecx, ecx
mov dword [ebp - 0x34], 0xdad19adf
mov byte [ebp - 0x30], 0xdb
movups xmmword [ebp - 0x2f], xmm0
mov dword [ebp - 0x1f], 0
mov word [ebp - 0x1b], 0
mov byte [ebp - 0x19], 0
nop dword [eax]
lea eax, [ecx - 0x51]
xor byte [ebp + ecx - 0x38], al
inc ecx
cmp ecx, 9
jb 0x40b6f0
mov dword [0x565630], ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x38]
mov byte [ebp - 0x2f], 0
movups xmmword [ebp - 0x84], xmm0
mov dword [ebp - 0x74], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x70], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b725
sub ecx, edx
lea eax, [ebp - 0x38]
push ecx
push eax
lea ecx, [ebp - 0x84]
call fcn.00402c40
cmp dword [ebp - 0x70], 0x10
lea eax, [ebp - 0x84]
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmovae eax, dword [ebp - 0x84]
push eax
call edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0x64], eax
cmp ecx, 0x10
jb 0x40b79a
mov edx, dword [ebp - 0x84]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40b790
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bda0
push ecx
push edx
call fcn.00504f31
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0xf
mov byte [ebp - 0x84], 0
cmp ecx, 0x10
jb 0x40b7ed
mov edx, dword [ebp - 0x9c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40b7e3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bda0
push ecx
push edx
call fcn.00504f31
add esp, 8
xorps xmm0, xmm0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0xf
xor ecx, ecx
mov byte [ebp - 0x9c], 0
mov dword [ebp - 0x3c], 0xc7e0c4e1
mov dword [ebp - 0x38], 0xf9ccc6d6
mov dword [ebp - 0x34], 0xd9dcd2d5
mov byte [ebp - 0x30], 0xcf
movups xmmword [ebp - 0x2f], xmm0
mov dword [ebp - 0x1f], 0
mov word [ebp - 0x1b], 0
mov byte [ebp - 0x19], 0
nop dword [eax + eax]
lea eax, [ecx - 0x51]
xor byte [ebp + ecx - 0x3c], al
inc ecx
cmp ecx, 0xd
jb 0x40b840
mov dword [0x56557c], ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x3c]
mov byte [ebp - 0x2f], 0
movups xmmword [ebp - 0xcc], xmm0
mov dword [ebp - 0xbc], 0
lea edx, [ecx + 1]
mov dword [ebp - 0xb8], 0
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b880
sub ecx, edx
lea eax, [ebp - 0x3c]
push ecx
push eax
lea ecx, [ebp - 0xcc]
call fcn.00402c40
mov byte [ebp - 4], 2
lea esi, [ebp - 0xcc]
cmp dword [ebp - 0xb8], 0x10
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0xded5c4c1
cmovae esi, dword [ebp - 0xcc]
xor ecx, ecx
mov dword [ebp - 0x34], 0xdad19adf
mov byte [ebp - 0x30], 0xdb
movups xmmword [ebp - 0x2f], xmm0
mov dword [ebp - 0x1f], 0
mov word [ebp - 0x1b], 0
mov byte [ebp - 0x19], 0
nop dword [eax]
lea eax, [ecx - 0x51]
xor byte [ebp + ecx - 0x38], al
inc ecx
cmp ecx, 9
jb 0x40b8e0
mov dword [0x565630], ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x38]
mov byte [ebp - 0x2f], 0
movups xmmword [ebp - 0xb4], xmm0
mov dword [ebp - 0xa4], 0
lea edx, [ecx + 1]
mov dword [ebp - 0xa0], 0
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b920
sub ecx, edx
lea eax, [ebp - 0x38]
push ecx
push eax
lea ecx, [ebp - 0xb4]
call fcn.00402c40
cmp dword [ebp - 0xa0], 0x10
lea eax, [ebp - 0xb4]
cmovae eax, dword [ebp - 0xb4]
push eax
call edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0xa0]
mov dword [ebp - 0x5c], eax
cmp ecx, 0x10
jb 0x40b995
mov edx, dword [ebp - 0xb4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40b98b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bda5
push ecx
push edx
call fcn.00504f31
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0xb8]
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xa0], 0xf
mov byte [ebp - 0xb4], 0
cmp ecx, 0x10
jb 0x40b9ee
mov edx, dword [ebp - 0xcc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40b9e4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bda5
push ecx
push edx
call fcn.00504f31
add esp, 8
push dword [ebp - 0x58]
mov dword [ebp - 0xbc], 0
push 0
push 0x40
mov dword [ebp - 0xb8], 0xf
mov byte [ebp - 0xcc], 0
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x44], esi
test esi, esi
je 0x40bd3d
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x4c], ecx
cmp dword [eax], ecx
jbe 0x40bd3a
mov edx, dword [ebp - 0x18]
add eax, 8
mov dword [ebp - 0x68], eax
nop dword [eax]
nop word [eax + eax]
movups xmm1, xmmword [eax]
mov dword [ebp - 0x14], 0
movq xmm0, qword [eax + 0x10]
movups xmmword [ebp - 0x34], xmm1
mov dword [ebp - 0x48], 0
psrldq xmm1, 4
movd eax, xmm1
movq qword [ebp - 0x24], xmm0
cmp eax, dword [ebp - 0x58]
jne 0x40bd23
push 0
push 0
push 0
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
push dword [ebp - 0x2c]
push esi
call dword [ebp - 0x64]
test eax, eax
js 0x40bd20
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 0x40bac6
test eax, eax
jne 0x40bac6
push dword [ebp - 0x14]
call edi
jmp 0x40bd20
push eax
call fcn.0051394a
add esp, 4
mov esi, eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x48]
push esi
push 2
push dword [ebp - 0x14]
call dword [ebp - 0x5c]
test eax, eax
js 0x40bd18
cmp word [esi], 0
jbe 0x40bd1d
push str.File
push dword [esi + 4]
call fcn.00506310
add esp, 8
test eax, eax
je 0x40bd1d
movaps xmm0, xmmword [0x552580]
xor ecx, ecx
movups xmmword [ebp - 0x118], xmm0
mov dword [ebp - 0x108], 0xa3a4b2d7
xorps xmm0, xmm0
mov byte [ebp - 0x104], 0xa7
movups xmmword [ebp - 0x103], xmm0
mov dword [ebp - 0xf3], 0
mov word [ebp - 0xef], 0
mov byte [ebp - 0xed], 0
lea eax, [ecx - 0x51]
xor byte [ebp + ecx - 0x118], al
inc ecx
cmp ecx, 0x15
jb 0x40bb50
mov dword [0x5655ac], ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x118]
mov byte [ebp - 0x103], 0
movups xmmword [ebp - 0xe4], xmm0
mov dword [ebp - 0xd4], 0
lea edx, [ecx + 1]
mov dword [ebp - 0xd0], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40bb94
sub ecx, edx
lea eax, [ebp - 0x118]
push ecx
push eax
lea ecx, [ebp - 0xe4]
call fcn.00402c40
cmp dword [ebp - 0xd0], 0x10
lea eax, [ebp - 0xe4]
cmovae eax, dword [ebp - 0xe4]
push eax
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [ebp - 0xd0]
mov dword [ebp - 0x60], eax
cmp ecx, 0x10
jb 0x40bc11
mov edx, dword [ebp - 0xe4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40bc04
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bda0
push ecx
push edx
call fcn.00504f31
mov eax, dword [ebp - 0x60]
add esp, 8
push eax
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0xd0], 0xf
mov byte [ebp - 0xe4], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [ebp - 0x14]
push 0
push 0
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x54]
push eax
push 0x40b290
push 0
push 0
mov dword [ebp - 0x50], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x64
push dword [ebp - 0x60]
mov dword [ebp - 0x6c], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x40bd65
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x40bd65
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0xec], ecx
mov dword [ebp - 0xe8], eax
test cx, cx
je 0x40bd04
push 1
lea eax, [ebp - 0xec]
push eax
lea eax, [ebp - 0x120]
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 - 0x11c]
call fcn.00506580
add esp, 8
test eax, eax
je 0x40bd04
push esi
call fcn.005131f4
add esp, 4
push dword [ebp - 0x50]
call fcn.005131f4
add esp, 4
push dword [ebp - 0x14]
call edi
push 1
push 0
push 0
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, dword [ebp - 0x44]
push eax
push dword [ebp - 0x2c]
push esi
call dword [ebp - 0x64]
test eax, eax
js 0x40bd20
push dword [ebp - 0x14]
call edi
jmp 0x40bd20
push esi
call fcn.005131f4
add esp, 4
push dword [ebp - 0x50]
call fcn.005131f4
add esp, 4
push dword [ebp - 0x14]
call edi
mov esi, dword [ebp - 0x44]
mov edx, dword [ebp - 0x18]
inc dword [ebp - 0x4c]
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x4c]
add eax, 0x1c
mov dword [ebp - 0x68], eax
cmp ecx, dword [edx]
jb 0x40ba50
push esi
call edi
mov ecx, dword [ebx + 0x1c]
cmp ecx, 0x10
jb 0x40bd8d
mov edx, dword [ebx + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40bd83
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bdaa
jmp 0x40bd83
push 0
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
call fcn.005131f4
mov eax, dword [ebp - 0x50]
add esp, 4
test eax, eax
je 0x40bd18
push eax
jmp 0x40bd10
push ecx
push edx
call fcn.00504f31
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.0050a1d0
call fcn.0050a1d0
call fcn.0050a1d0
int3