Function at 0x10004770
Capabilities:
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 [0x10016018]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push esi
push edi
call fcn.100050f0
call fcn.10007d30
mov ebx, 0x1001a680
call fcn.10007930
test al, al
jne 0x100047f3
push 0x100
push 0
push 0x10025060
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
jmp 0x100047c0
mov cl, byte [eax + 0x100116f0]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x10025060], cl
inc eax
cmp eax, 0x100
jb 0x100047c0
push 0x10025060
push 0
mov ecx, 0x1001a440
call fcn.10005210
add esp, 8
call fcn.1000a6e0
call fcn.10008a40
test al, al
jne 0x10004845
push 0x100
push 0
push 0x10025060
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
mov dl, byte [eax + 0x100117f0]
sub dl, 0x1b
xor dl, 0xc
mov byte [eax + 0x10025060], dl
inc eax
cmp eax, 0x100
jb 0x10004812
push 0x10025060
push 0
mov ecx, 0x1001a440
call fcn.10005210
add esp, 8
call fcn.1000a6e0
call fcn.10008bb0
test al, al
jne 0x1000486d
mov eax, 0x14
call fcn.1000ad70
push eax
push 0
mov ecx, 0x1001a440
call fcn.10005210
add esp, 8
call fcn.1000a6e0
call fcn.1000adb0
test al, al
jne 0x1000487d
mov eax, 0x15
jmp 0x10004853
call fcn.10008000
test al, al
jne 0x1000488d
mov eax, 0x16
jmp 0x10004853
call fcn.10005e90
test al, al
jne 0x1000489d
mov eax, 0x17
jmp 0x10004853
call fcn.10008460
test al, al
jne 0x100048ad
mov eax, 0x2d
jmp 0x10004853
call fcn.10008580
test al, al
jne 0x100048bd
mov eax, 0x2e
jmp 0x10004853
call fcn.10001360
test al, al
jne 0x100048fa
mov ecx, 4
push 0x1388
call fcn.10005970
push eax
push 2
mov eax, 0x1001f700
call fcn.1000ab00
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.1000d9eb
mov esp, ebp
pop ebp
ret
push 0x1001a6c6
mov ecx, 5
call fcn.10005970
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, 0x1001f4b0
call fcn.1000ab00
movzx edx, word [0x1001a6c4]
add esp, 0xc
push edx
mov ecx, 0x1001a6a4
call fcn.100013e0
test al, al
jne 0x1000494b
mov ecx, 6
jmp 0x100048cb
call fcn.10002ea0
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
push 1
mov ebx, 0x1f4
mov edi, eax
call fcn.1000a730
add esp, 4
test al, al
jne 0x10004aa7
call esi
sub eax, edi
cmp eax, 0xea60
ja 0x10004aef
call fcn.10001610
test al, al
jne 0x100049b2
call fcn.10001360
test al, al
je 0x100049b2
movzx eax, word [0x1001a6c4]
push eax
mov ecx, 0x1001a6a4
call fcn.100013e0
test al, al
je 0x100049b2
call fcn.10002ea0
jmp 0x10004a90
cmp dword [0x1001fc3c], 0
je 0x10004a90
cmp dword [0x1001fc40], 0
je 0x10004a90
cmp dword [0x1001fc44], 0
je 0x10004a90
cmp dword [0x1001fc48], 0
je 0x10004a90
cmp dword [0x1001fc4c], 0
je 0x10004a90
mov ecx, dword [0x1001a418]
sub ecx, dword [0x1001a414]
mov eax, 0x7d8c42b3
imul ecx
mov ecx, dword [0x1001a408]
sub ecx, dword [0x1001a404]
sar edx, 7
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
mov eax, 0x3e0f83e1
imul ecx
mov ecx, dword [0x1001a428]
sub ecx, dword [0x1001a424]
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 [0x1001a3f8]
sub ecx, dword [0x1001a3f4]
sar edx, 5
add eax, edx
mov ebx, edx
shr ebx, 0x1f
add ebx, eax
mov eax, 0x38e38e39
imul ecx
mov eax, dword [0x1001fc5c]
add eax, dword [0x1001fc58]
sar edx, 4
add eax, dword [0x1001fc54]
mov ecx, edx
add eax, dword [0x1001fc50]
shr ecx, 0x1f
add ebx, edx
add ecx, ebx
cmp ecx, eax
je 0x10004aa7
push 1
mov ebx, 0x1f4
call fcn.1000a730
add esp, 4
test al, al
je 0x10004971
mov ecx, dword [0x1001fc5c]
mov edx, dword [0x1001fc58]
mov eax, dword [0x1001fc54]
push ecx
mov ecx, dword [0x1001fc50]
push edx
push eax
push ecx
mov eax, 0x18
call fcn.1000ad70
push eax
push 0
mov ecx, 0x1001a440
call fcn.10005210
add esp, 0x18
call fcn.10008bb0
test al, al
jne 0x10004af9
mov ecx, 0x14
jmp 0x100048cb
mov ecx, 7
jmp 0x100048cb
call fcn.10003cc0
mov edi, 0x1001a680
call fcn.10007a30
call fcn.10007c60
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x10024d20
push 0
push 0
push 0x10004450
push 0
push 0
call edi
push 0x10024d24
push 0
push 0
push 0x100040c0
push 0
push 0
mov dword [0x1001fbf4], eax
call edi
push 0x10024d28
push 0
push 0
push 0x10003e60
push 0
push 0
mov dword [0x1001fbf8], eax
call edi
mov edx, dword [0x1001fbf4]
push 2
push edx
mov dword [0x1001fbfc], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0x7d0
push 1
push 0x1001fbf4
push 3
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
call fcn.10005450
mov byte [0x10024d04], 1
call esi
mov dword [0x10024d08], eax
call fcn.10001e20
mov esi, 0x1001f4b0
call fcn.1000a470
mov edi, 0x1001a680
call fcn.10007b60
mov eax, 0x2c
call fcn.1000ad70
push eax
push 0
mov ecx, 0x1001a440
call fcn.10005210
mov ecx, dword [esp + 0x11c]
add esp, 8
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1000d9eb
mov esp, ebp
pop ebp
ret