Function at 0x1003e990
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1390
call fcn.100bf450
mov eax, dword [0x101425c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call fcn.100c06d5
mov dword [ebp - 8], 0xffffffff
mov edx, 1
mov dword [ebp - 0x1388], eax
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [ebp + edx*4 - 0x1388], eax
inc edx
cmp edx, 0x270
jb 0x1003e9c1
lea eax, [ebp - 0x138c]
mov dword [ebp - 0x138c], 0x270
lea ecx, [ebp - 0x1390]
mov dword [ebp - 0x1390], eax
call fcn.1003ed70
mov esi, 7
mul esi
cmp eax, esi
jae 0x1003ea23
cmp eax, 4
jae 0x1003ea23
lea ecx, [ebp - 0x1390]
call fcn.1003ed70
mul esi
cmp eax, 4
jb 0x1003ea11
lea eax, [edx - 0x7fffffff]
cmp eax, 0x80000000
lea ecx, [eax - 0x80000000]
lea edx, [eax - 0x80000000]
cmovae edx, ecx
dec edx
cmp edx, 6
ja case.default.0x1003ea43
jmp dword [edx*4 + 0x1003ea9c]
call fcn.1003e7b0
jmp case.default.0x1003ea43
call fcn.1003e850
jmp case.default.0x1003ea43
call fcn.1003e830
call fcn.1003e8a0
jmp case.default.0x1003ea43
call fcn.1003e940
jmp case.default.0x1003ea43
call fcn.1003e8f0
inc eax
adc byte [eax + 0x16], bh
popal
push edi
xor byte [esi], dl
arpl word [ebx + 0x31], sp
add edx, dword [esi + 0x41]
add dword [edi], 0x30
add ebx, dword [ecx + 0x77]
jns 0x1003eafd
and bl, byte [eax + 6]
add dword [eax], esi
inc ebp
adc byte [edx + 0x32], 0x76
dec eax
or eax, ebp
sbb ebp, edi
invalid
call 0x1003e800
dec edx
ljmp 125639
dec esi
adc al, 0x10
cmp ecx, dword [0x10144e34]
je 0x1003eb20
mov eax, dword [0x10144cac]
mov dword [ecx], eax
mov ecx, dword [0x10144e30]
add ecx, 4
mov dword [0x10144e30], ecx
jmp 0x1003eb36
push 0x10144cac
push ecx
mov ecx, 0x10144e2c
call fcn.1003e160
mov ecx, dword [0x10144e30]
cmp ecx, dword [0x10144e34]
je 0x1003eb56
mov eax, dword [0x10144c6c]
mov dword [ecx], eax
mov ecx, dword [0x10144e30]
add ecx, 4
mov dword [0x10144e30], ecx
jmp 0x1003eb6c
push 0x10144c6c
push ecx
mov ecx, 0x10144e2c
call fcn.1003e160
mov ecx, dword [0x10144e30]
cmp ecx, dword [0x10144e34]
je 0x1003eb8c
mov eax, dword [0x10144c70]
mov dword [ecx], eax
mov ecx, dword [0x10144e30]
add ecx, 4
mov dword [0x10144e30], ecx
jmp 0x1003eba2
push 0x10144c70
push ecx
mov ecx, 0x10144e2c
call fcn.1003e160
mov ecx, dword [0x10144e30]
cmp ecx, dword [0x10144e34]
je 0x1003ebc2
mov eax, dword [0x10144c74]
mov dword [ecx], eax
mov ecx, dword [0x10144e30]
add ecx, 4
mov dword [0x10144e30], ecx
jmp 0x1003ebd8
push 0x10144c74
push ecx
mov ecx, 0x10144e2c
call fcn.1003e160
mov ecx, dword [0x10144e30]
cmp ecx, dword [0x10144e34]
je 0x1003ebf8
mov eax, dword [0x10144c78]
mov dword [ecx], eax
mov ecx, dword [0x10144e30]
add ecx, 4
mov dword [0x10144e30], ecx
jmp 0x1003ec0e
push 0x10144c78
push ecx
mov ecx, 0x10144e2c
call fcn.1003e160
mov ecx, dword [0x10144e30]
cmp ecx, dword [0x10144e34]
je 0x1003ec2c
mov eax, dword [0x10144c7c]
mov dword [ecx], eax
mov eax, dword [0x10144e30]
add eax, 4
mov dword [0x10144e30], eax
jmp 0x1003ec41
push 0x10144c7c
push ecx
mov ecx, 0x10144e2c
call fcn.1003e160
mov eax, dword [0x10144e30]
mov dword [ebp - 4], 0x13d31d5
cmp eax, dword [0x10144e34]
je 0x1003ec5f
mov dword [eax], 0x13d31d5
add dword [0x10144e30], 4
jmp 0x1003ec6e
lea edx, [ebp - 4]
mov ecx, 0x10144e2c
push edx
push eax
call fcn.1003e160
push 0
push 0
push 0
push 0x1003e3b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esp, ebp
pop ebp
ret