Function at 0x40b310
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 0x521683
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 [0x549b60]
movups xmmword [ebp - 0x60], xmm0
mov byte [ebp - 0x50], 0xe3
xorps xmm0, xmm0
mov word [ebp - 0x47], 0
movq qword [ebp - 0x4f], xmm0
lea eax, [ecx - 0x79]
xor byte [ebp + ecx - 0x60], al
inc ecx
cmp ecx, 0x11
jb 0x40b370
mov dword [0x55d634], 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 0x40b3b0
sub ecx, edx
lea eax, [ebp - 0x60]
push ecx
push eax
lea ecx, [ebp - 0xa8]
call fcn.00402b80
mov byte [ebp - 4], 1
lea esi, [ebp - 0xa8]
cmp dword [ebp - 0x94], 0x10
movaps xmm0, xmmword [0x547690]
cmovae esi, dword [ebp - 0xa8]
xor ecx, ecx
mov word [ebp - 0x2b], 0xfce9
mov byte [ebp - 0x29], 0xed
movups xmmword [ebp - 0x28], xmm0
lea eax, [ecx - 0x79]
xor byte [ebp + ecx - 0x2b], al
inc ecx
cmp ecx, 9
jb 0x40b3f8
mov dword [0x55d630], ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x2b]
mov byte [ebp - 0x22], 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 0x40b430
sub ecx, edx
lea eax, [ebp - 0x2b]
push ecx
push eax
lea ecx, [ebp - 0x90]
call fcn.00402b80
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 0x40b4a5
mov edx, dword [ebp - 0x90]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40b49b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ba34
push ecx
push edx
call fcn.004fb0f1
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 0x40b4f8
mov edx, dword [ebp - 0xa8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40b4ee
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ba34
push ecx
push edx
call fcn.004fb0f1
add esp, 8
movaps xmm0, xmmword [0x547a50]
xor ecx, ecx
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0xf
mov byte [ebp - 0xa8], 0
mov dword [ebp - 0x2f], 0xffd8fcc9
mov word [ebp - 0x2b], 0xfeee
mov byte [ebp - 0x29], 0xf4
movups xmmword [ebp - 0x28], xmm0
lea eax, [ecx - 0x79]
xor byte [ebp + ecx - 0x2f], al
inc ecx
cmp ecx, 0xd
jb 0x40b531
mov dword [0x55d57c], ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x2f]
mov byte [ebp - 0x22], 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 0x40b563
sub ecx, edx
lea eax, [ebp - 0x2f]
push ecx
push eax
lea ecx, [ebp - 0x60]
call fcn.00402b80
mov byte [ebp - 4], 2
lea esi, [ebp - 0x60]
cmp dword [ebp - 0x4c], 0x10
movaps xmm0, xmmword [0x547690]
cmovae esi, dword [ebp - 0x60]
xor ecx, ecx
mov word [ebp - 0x2b], 0xfce9
mov byte [ebp - 0x29], 0xed
movups xmmword [ebp - 0x28], xmm0
nop
lea eax, [ecx - 0x79]
xor byte [ebp + ecx - 0x2b], al
inc ecx
cmp ecx, 9
jb 0x40b5a0
mov dword [0x55d630], ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x2b]
mov byte [ebp - 0x22], 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 0x40b5e0
sub ecx, edx
lea eax, [ebp - 0x2b]
push ecx
push eax
lea ecx, [ebp - 0xc0]
call fcn.00402b80
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 0x40b655
mov edx, dword [ebp - 0xc0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40b64b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ba39
push ecx
push edx
call fcn.004fb0f1
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 0x40b6a8
mov edx, dword [ebp - 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40b69e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ba39
push ecx
push edx
call fcn.004fb0f1
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 - 0x34], esi
test esi, esi
je 0x40b9d1
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 0x40b9ce
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 0x40b9b7
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 0x40b9b4
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 0x40b77f
test eax, eax
jne 0x40b77f
push dword [ebp - 0x14]
call edi
jmp 0x40b9b4
push eax
call fcn.00509b0a
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 0x40b9ac
cmp word [esi], 0
jbe 0x40b9b1
push str.File
push dword [esi + 4]
call fcn.004fc4d0
add esp, 8
test eax, eax
je 0x40b9b1
movaps xmm0, xmmword [0x548b40]
xor ecx, ecx
movups xmmword [ebp - 0xdf], xmm0
mov dword [ebp - 0xcf], 0xfbfceaff
xorps xmm0, xmm0
mov byte [ebp - 0xcb], 0xff
movq qword [ebp - 0xca], xmm0
mov word [ebp - 0xc2], 0
nop dword [eax]
lea eax, [ecx - 0x79]
xor byte [ebp + ecx - 0xdf], al
inc ecx
cmp ecx, 0x15
jb 0x40b800
mov dword [0x55d5ac], ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0xdf]
mov byte [ebp - 0xca], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x1c], 0
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b840
sub ecx, edx
lea eax, [ebp - 0xdf]
push ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.00402b80
cmp dword [ebp - 0x1c], 0x10
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push eax
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x6c], eax
cmp ecx, 0x10
jb 0x40b8ab
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40b89e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ba34
push ecx
push edx
call fcn.004fb0f1
mov eax, dword [ebp - 0x6c]
add esp, 8
push eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 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 0x40b020
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 0x40b9f9
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x40b9f9
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0xe8], ecx
mov dword [ebp - 0xe4], eax
test cx, cx
je 0x40b998
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.004fc740
add esp, 8
test eax, eax
je 0x40b998
push esi
call fcn.005093b4
add esp, 4
push dword [ebp - 0x40]
call fcn.005093b4
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 - 0x34]
push eax
push dword [ebp - 0x104]
push esi
call dword [ebp - 0x70]
test eax, eax
js 0x40b9b4
push dword [ebp - 0x14]
call edi
jmp 0x40b9b4
push esi
call fcn.005093b4
add esp, 4
push dword [ebp - 0x40]
call fcn.005093b4
add esp, 4
push dword [ebp - 0x14]
call edi
mov esi, dword [ebp - 0x34]
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 0x40b700
push esi
call edi
mov ecx, dword [ebx + 0x1c]
cmp ecx, 0x10
jb 0x40ba21
mov edx, dword [ebx + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40ba17
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ba3e
jmp 0x40ba17
push 0
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
call fcn.005093b4
mov eax, dword [ebp - 0x40]
add esp, 4
test eax, eax
je 0x40b9ac
push eax
jmp 0x40b9a4
push ecx
push edx
call fcn.004fb0f1
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.00500390
call fcn.00500390
call fcn.00500390
int3