Function at 0x100055a0
Capabilities:
Create thread
Encode data using xor
Generate random numbers using a mersenne twister
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100154eb
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x13cc
call fcn.10011110
mov eax, dword [0x1001b230]
xor eax, esp
mov dword [esp + 0x13c8], eax
push ebx
push esi
push edi
mov eax, dword [0x1001b230]
xor eax, esp
push eax
lea eax, [esp + 0x13e0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ebx, ecx
mov ecx, dword [ebx + 4]
push ecx
mov dword [esp + 0x18], eax
call esi
mov edx, dword [ebx + 0x27c]
push edx
call esi
lea eax, [ebx + 0x18]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [ebx + 0x14], eax
xor eax, eax
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x38], eax
xor edi, edi
lea esi, [esp + 0x30]
mov dword [ebx + 0x3c], eax
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], eax
mov byte [esp + 0x30], al
call fcn.10004380
mov dword [esp + 0x13e8], edi
call fcn.1000810d
or esi, 0xffffffff
mov dword [esp + 0x13e8], esi
cmp dword [esp + 0x44], 0x10
jb 0x10005677
mov eax, dword [esp + 0x30]
push eax
call fcn.100087b1
add esp, 4
call fcn.1000810d
mov dword [esp + 0x50], eax
mov ecx, eax
mov dword [esp + 0x13d0], esi
mov eax, 1
mov edi, edi
mov edx, ecx
shr edx, 0x1e
xor ecx, edx
imul ecx, ecx, 0x6c078965
add ecx, eax
mov dword [esp + eax*4 + 0x50], ecx
inc eax
cmp eax, 0x270
jl 0x10005690
fld qword [0x100187a0]
mov esi, 0x270
fldz
mov dword [esp + 0x4c], esi
fsub st(1), st(0)
fld1
fadd st(2), st(0)
fxch st(2)
fstp qword [esp + 0x1c]
fsubr qword [0x100187c0]
faddp st(1)
fstp qword [esp + 0x24]
cmp esi, 0x270
jne 0x100056e7
lea eax, [esp + 0x4c]
call fcn.10004500
jmp 0x100056f8
cmp esi, 0x4e0
jb 0x100056fc
lea esi, [esp + 0x4c]
call fcn.10004440
mov esi, dword [esp + 0x4c]
mov eax, dword [esp + esi*4 + 0x50]
mov ecx, eax
shr ecx, 0xb
and ecx, dword [esp + 0x13d0]
inc esi
xor eax, ecx
mov edx, eax
and edx, 0xff3a58ad
shl edx, 7
xor eax, edx
mov ecx, eax
and ecx, 0xffffdf8c
shl ecx, 0xf
xor eax, ecx
mov edx, eax
shr edx, 0x12
xor edx, eax
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
mov dword [esp + 0x4c], esi
jns 0x10005744
fadd qword [0x100187a8]
fdiv qword [esp + 0x1c]
fmul qword [esp + 0x24]
fadd qword [0x100187c8]
fcom qword [0x100187c0]
fnstsw ax
test ah, 1
jne 0x10005768
fstp st(0)
mov eax, 0xff
jmp 0x1000576d
call fcn.10013f20
mov byte [ebx + edi + 0x20], al
inc edi
cmp edi, 0x20
jb 0x100056d4
mov al, 5
mov byte [ebx + 0x21], al
mov byte [ebx + 0x2f], al
mov byte [ebx + 0x3b], al
mov eax, dword [ebx + 0x7c]
mov word [ebx + 0x3e], 0xca00
cmp eax, 3
je 0x1000579b
mov eax, ebx
call fcn.100050b0
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x14]
push ecx
push edx
mov eax, ebx
call fcn.10004650
mov eax, dword [ebx + 0x27c]
push 0x1770
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x100057f8
cmp esi, 0x102
je 0x100057e7
cmp esi, 0xffffffff
jne 0x100057f4
mov ecx, dword [ebx + 0x27c]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
xor al, al
jmp 0x10005832
mov edx, dword [ebx + 0x27c]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
xor al, al
jmp 0x10005832
push 1
lea eax, [ebx + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [ebx + 0x27c]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea ecx, [esp + 0x18]
push ecx
push 0
push ebx
push 0x10005860
push 0
push 0
call fcn.10008f3f
mov dword [ebx + 0x280], eax
add esp, 0x18
mov al, 1
mov ecx, dword [esp + 0x13e0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x13c8]
xor ecx, esp
call fcn.100082f7
mov esp, ebp
pop ebp
ret 8