Function at 0x1001234f
Capabilities:
Create process on windows
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, 0x100607cf
call fcn.1005fe44
sub esp, 0x70
cmp byte [ebp + 8], 0
push esi
mov esi, edx
mov dword [ebp - 0x28], esi
je 0x10012375
push 0
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
jmp 0x1001276d
push ebx
push edi
sub esp, 0xc
mov dword [ebp - 0x24], 0x9ac78948
call fcn.100128a0
call fcn.10012caf
mov eax, dword [0x1007e5d8]
xor edi, edi
add esp, 0xc
inc edi
mov ebx, 0x270
test al, 1
jne 0x100123db
or eax, edi
mov ecx, 0x1571
or dword [0x1007e5d4], 0xffffffff
mov edx, edi
mov dword [0x1007e5d8], eax
mov dword [0x1007d254], ecx
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul ecx, eax, 0x6c078965
add ecx, edx
mov dword [edx*4 + 0x1007d254], ecx
inc edx
cmp edx, ebx
jl 0x100123ba
mov dword [0x1007d250], ebx
xor ebx, ebx
mov dword [ebp - 0x24], 0xde2bbef7
mov dword [ebp - 0x1c], ebx
jmp 0x100123f7
mov eax, dword [ebp - 0x1c]
mov dword [ebp + eax*4 - 0x20], 0xfffffff9
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], edi
jl 0x100123e9
mov dword [ebp - 0x20], 0xfffffff3
jmp 0x10012434
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x1c], 0xd
jmp 0x10012424
push ecx
lea eax, [ebp - 0xd]
mov byte [ebp - 0xd], bl
push eax
call fcn.10012d4e
add esp, 0xc
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 0x16
push ecx
je 0x10012411
call fcn.10012acd
dec dword [ebp - 0x20]
pop ecx
cmp dword [ebp - 0x20], 0xffffffee
jle 0x10012405
mov dword [ebp - 0x18], 0x78144ad7
mov eax, 0xd2eb2fc2
mov dword [ebp - 0x14], 0xedcc590f
mov ecx, 0xffff
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x24], 0xfffffffd
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x1c], 0x3923bfa4
dec dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x14]
cmp dword [ebp - 0x18], eax
jl 0x100124a4
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], ecx
sbb eax, eax
inc eax
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp - 0x54]
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp - 0x24]
mov ecx, 0xcbaa
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], 0x1543f36f
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
sub ecx, eax
je 0x100124ca
mov eax, edi
cmp dword [ebp - 0x14], ebx
jne 0x100124cc
mov eax, ebx
xor ecx, ecx
cmp ecx, eax
mov ecx, dword [ebp - 0x24]
sbb eax, eax
inc eax
cmp eax, 9
sbb eax, eax
xor edx, edx
neg eax
sub ecx, eax
mov eax, dword [ebp - 0x48]
cmp ecx, 0x672a
setge dl
xor ecx, ecx
sub edx, 0xe160
cmp eax, edx
setg cl
cmp ecx, dword [ebp - 0x54]
jne 0x10012524
mov byte [ebp - 0xe], bl
cmp byte [ebp - 0xe], bl
je 0x10012620
push 0x2292
push ebx
push ebx
push ebx
push ebx
push 0xcf2
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x10012620
mov dword [ebp - 0x1c], ebx
lea ecx, [ebp - 0x44]
push 4
call fcn.1000e06f
push ebx
push ecx
lea eax, [ebp - 0x44]
mov dword [ebp - 4], ebx
push eax
push 0x3f3e
push ecx
mov edx, 0x52d0
lea ecx, [ebp - 0x2c]
call fcn.10012288
add esp, 0x14
cmp dword [ebp - 0x24], ebx
je 0x100125f4
push dword [ebp - 0x2c]
movdqa xmm0, xmmword [0x1006e970]
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x64]
mov dword [ebp - 0x24], 0x5443
push eax
push ebx
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], ebx
movdqu xmmword [ebp - 0x64], xmm0
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
call fcn.10011607
cmp dword [ebp - 0x50], ebx
jne 0x100125cc
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x1c], eax
jg 0x100125a1
mov ecx, edi
cmp dword [ebp - 0x1c], ebx
jne 0x100125a3
mov ecx, ebx
mov eax, dword [ebp - 0x38]
mov eax, dword [eax]
imul eax, ecx
xor ecx, ecx
cmp eax, 0xfffffff7
setne cl
imul eax, ecx, 0x2550
add eax, 0xa766
cmp dword [ebp - 0x14], eax
jne 0x100125c8
cmp dword [ebp - 0x1c], ebx
jne 0x100125cc
mov edx, ebx
jmp 0x100125ce
mov edx, edi
mov eax, dword [ebp - 0x14]
xor ecx, ecx
cmp eax, edx
setg cl
sub ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x44]
mov dword [eax + 0xc], ecx
lea ecx, [ebp - 0x38]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], edi
call fcn.1000e145
jmp 0x10012614
mov dword [ebp - 0x1c], ebx
jmp 0x1001260e
push 0x24f
xor dl, dl
mov ecx, 0x387e
call fcn.10014438
inc dword [ebp - 0x1c]
pop ecx
cmp dword [ebp - 0x1c], 3
jle 0x100125f9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.1000e145
push edi
push ecx
push 0x12b1
push 0x1007d250
push ecx
mov edx, 0x1007d164
mov ecx, 0x1586
call fcn.10012288
mov dword [ebp - 0x24], 0x7e9f
add esp, 0x14
cmp dword [ebp - 0x24], 0x7f74
jle 0x100126d3
mov esi, ebx
mov dword [ebp - 0x1c], ebx
mov edi, ebx
mov dword [ebp - 0x20], ebx
mov eax, ebx
mov dword [ebp - 0x24], ebx
and eax, edi
mov dword [ebp - 0x14], ebx
xor eax, esi
mov edi, ebx
mov dword [ebp - 0x18], eax
mov esi, eax
mov eax, esi
lea ecx, [ebp - 0x7c]
or eax, edi
cdq
push edx
push eax
call fcn.10001a9f
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x10012689
mov eax, dword [eax]
push eax
call fcn.10047a23
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x7c]
call fcn.1000e875
inc edi
cmp edi, 0x331f
jl 0x10012670
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp - 0x1c]
inc eax
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
cmp eax, 0x3467
jl 0x10012662
inc edi
mov dword [ebp - 0x20], edi
cmp edi, 0x2e52
jl 0x1001265d
inc esi
mov dword [ebp - 0x1c], esi
cmp esi, 0x372f
jl 0x10012658
mov esi, dword [ebp - 0x28]
mov eax, dword [0x1007d250]
pop edi
pop ebx
cmp eax, 0x270
jne 0x10012721
mov edx, 0x1007d258
mov ecx, dword [edx - 4]
xor ecx, dword [edx]
and ecx, 0x7fffffff
xor ecx, dword [edx - 4]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, ecx
xor eax, dword [edx + 0x630]
mov dword [edx + 0x9bc], eax
add edx, 4
cmp edx, 0x1007dc18
jl 0x100126e6
jmp 0x1001272d
cmp eax, 0x4e0
jb 0x10012732
call fcn.1001461c
mov eax, dword [0x1007d250]
mov ecx, dword [eax*4 + 0x1007d254]
inc eax
mov dword [0x1007d250], eax
mov eax, ecx
shr eax, 0xb
and eax, dword [0x1007e5d4]
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
mov dword [esi], eax
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret