Function at 0x10012448
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1005774a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa8
mov dword [esp + 0x1c], edx
push ebx
push esi
push edi
test cl, cl
je 0x10012a43
xor ebx, ebx
cmp byte [ebp + 0x14], bl
je 0x100125b4
mov dword [esp + 0x14], ebx
jmp 0x10012495
mov eax, dword [esp + 0x14]
mov dword [esp + eax*4 + 0x1c], ebx
inc dword [esp + 0x14]
cmp dword [esp + 0x14], 1
jl 0x10012489
push 1
push 0x4ebc
push 0x72b
push 0x7fed
push 0x264f
push 0x2896
push ecx
push 0x7c9
mov ecx, 0x47b6
call fcn.1001223d
add esp, 0x20
mov dword [esp + 0x1c], 2
jmp 0x100124e6
mov dword [esp + 0x10], 0x77dd6887
cmp dword [esp + 0x10], ebx
jne 0x100124ed
inc dword [esp + 0x1c]
cmp dword [esp + 0x1c], 0x15
jge 0x100124d4
xor eax, eax
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], ax
sub esp, 0xc
mov dword [esp + 0xc8], ebx
lea eax, [ebp + 8]
mov cl, 1
lea edx, [esp + 0x54]
push eax
call fcn.10012406
mov eax, dword [0x1044416c]
add esp, 0x10
test al, 1
jne 0x1001254d
or eax, 1
mov dword [0x1044416c], eax
push 0x91dc
mov byte [esp + 0xc0], 1
call fcn.10039396
pop ecx
mov word [0x10444174], ax
mov byte [esp + 0xbc], bl
lea eax, [esp + 0x48]
mov ecx, 0x35e8
push eax
push 0x23f6
push 0x3ec3
push 1
push 0x53c2
push 0x700e
push ebx
push 1
push 0x10444174
push 0x3148
push 0x65a3
push 0x5db8
lea edx, [ebp + 8]
call fcn.10012b94
mov ecx, dword [ebp + 0x10]
lea eax, [esp + 0x78]
add esp, 0x30
cmp ecx, eax
je 0x100125a3
push 0xffffffffffffffff
push ebx
push eax
call fcn.10006f4e
push ebx
push 1
lea ecx, [esp + 0x50]
call fcn.10007153
jmp 0x10012a7a
xor ecx, ecx
inc ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], 0x4c8d3c89
mov dword [esp + 0x14], ebx
jmp 0x100125f1
mov dword [esp + 0x10], ebx
jmp 0x100125df
mov eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0x2c], 0x74dd0324
inc dword [esp + 0x10]
cmp dword [esp + 0x10], ecx
jl 0x100125cf
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x10], eax
dec dword [esp + 0x14]
cmp dword [esp + 0x14], 0xffffffef
jg 0x100125c9
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], 0x4280
cmp dword [esp + 0x10], 0x44d7
jle 0x1001265a
mov esi, ebx
mov edi, ebx
mov eax, edi
lea ecx, [esp + 0x88]
and eax, esi
cdq
push edx
push eax
call fcn.10001a99
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x1001262f
mov eax, dword [eax]
push eax
call fcn.1004027d
pop ecx
push ebx
push 1
lea ecx, [esp + 0x90]
call fcn.10006cfe
inc edi
cmp edi, 0x193d
jl 0x10012612
inc esi
cmp esi, 0x3bc3
jl 0x10012610
xor ecx, ecx
inc ecx
mov eax, dword [0x1044416c]
mov esi, 0x270
test al, 2
jne 0x100126a3
or eax, 2
mov edx, 0x1571
or dword [0x10444164], 0xffffffff
mov dword [0x1044416c], eax
mov dword [0x10442de4], edx
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [ecx*4 + 0x10442de4], edx
inc ecx
cmp ecx, esi
jl 0x10012682
mov dword [0x10442de0], esi
cmp dword [esp + 0x10], 0x41f8
jge 0x100126b8
push str.zbguvux_eoebpobv_kcxibejwp_nnhwhbz_aaouxthl
call fcn.1004027d
pop ecx
or dword [esp + 0xbc], 0xffffffff
push 3
pop esi
cmp byte [0x10442d9f], bl
jne 0x100128b4
push 0x5915
push 0x5d1a
push 0x25db
push 0x7aff
push 0x355
push 1
push 0x7bbd
push ebx
xor dl, dl
mov ecx, 0x10442de0
call fcn.10012e08
movdqa xmm0, xmmword [0x10064670]
lea eax, [esp + 0xa8]
add esp, 0x20
mov dword [esp + 0x3c], ebx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x40], ebx
movdqu xmmword [esp + 0x78], xmm0
mov dword [esp + 0x44], ebx
push dword [esp + 0x28]
push eax
lea eax, [esp + 0x80]
push eax
push ebx
call fcn.1000b7db
mov dword [esp + 0xbc], 4
lea eax, [esp + 0x78]
push dword [esp + 0x28]
movdqa xmm0, xmmword [0x10064640]
lea ecx, [esp + 0x34]
push eax
lea eax, [esp + 0x70]
mov dword [esp + 0x20], 0x6673e7ed
push eax
push ebx
movdqu xmmword [esp + 0x78], xmm0
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
call fcn.1000b7db
push 5
pop ecx
mov byte [esp + 0xbc], cl
mov dword [esp + 0x10], ebx
jmp 0x1001279c
mov eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0x60], 0xfffffffc
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 2
jl 0x1001278c
mov edx, dword [esp + 0x3c]
xor eax, eax
cmp dword [edx + 4], ebx
setne al
cmp ecx, dword [edx + 0xc]
mov ecx, dword [edx + 0xc]
mov dword [esp + 0x60], eax
sbb eax, eax
neg eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x30]
mov dword [eax + 0xc], ecx
xor eax, eax
mov ecx, dword [edx]
cmp dword [edx + 0xc], ecx
setge al
cmp eax, ecx
jle 0x10012811
lea eax, [esp + 0x22]
mov byte [esp + 0x22], bl
push eax
push ecx
push 0x7c00
push 0x27bc
push ecx
mov edx, 0x7aba
xor cl, cl
call fcn.1001213c
add esp, 0x14
lea edx, [esp + 0x18]
push 0x36b3
push ecx
push ecx
push ebx
push ecx
call fcn.10010f3d
add esp, 0x14
jmp 0x1001283e
mov dword [esp + 0x18], ebx
jmp 0x10012837
push ecx
push 0x392d
push 0x328a
mov byte [esp + 0x2d], bl
lea edx, [esp + 0x2d]
push ebx
call fcn.10010f00
add esp, 0x10
dec dword [esp + 0x18]
cmp dword [esp + 0x18], 0xfffffff0
jne 0x10012817
mov dword [esp + 0x18], esi
jmp 0x1001287e
push 0x1115
push 0x297b
push 0x5ae4
lea ecx, [esp + 0x30]
xor eax, eax
push ecx
inc eax
lea ecx, [esp + 0x40]
push ecx
push eax
push 0x139e
mov dword [esp + 0x40], eax
xor dl, dl
push eax
mov ecx, 0x658a
call fcn.10012e08
add esp, 0x20
inc dword [esp + 0x18]
cmp dword [esp + 0x18], 7
jne 0x10012844
lea ecx, [esp + 0x30]
call fcn.1000643c
or dword [esp + 0xbc], 0xffffffff
lea ecx, [esp + 0x3c]
call fcn.1000643c
push ecx
push ebx
push ecx
push 0x7b37
mov edx, 0x10442d9f
call fcn.10012300
add esp, 0x10
mov dword [esp + 0x10], ebx
mov dword [esp + 0x10], ebx
jmp 0x100128d1
mov eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0xa0], 0xc93b4e1
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 4
jl 0x100128be
mov dword [esp + 0x10], ebx
jmp 0x1001291c
push ebx
push 0x358c
push 0x1b6e
push 0x111c
push 0x5354
xor dl, dl
mov cl, 1
call fcn.10011d24
add esp, 0x14
mov edx, 0x27fa
push ebx
push ecx
push 0x30f3
push 0x7490
call fcn.10011027
add esp, 0x10
inc dword [esp + 0x10]
cmp dword [esp + 0x10], esi
jle 0x100128de
mov dword [esp + 0x10], 0x57e9
cmp dword [esp + 0x10], 0x58a7
jle 0x100129a5
mov esi, ebx
mov dword [esp + 0x14], ebx
mov edi, ebx
mov dword [esp + 0x10], esi
mov ecx, edi
mov eax, ebx
shl esi, cl
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], esi
mov ecx, eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], ebx
sar esi, cl
mov eax, ebx
mov ecx, 0x10071338
and eax, esi
cdq
push edx
push eax
call fcn.100060aa
inc ebx
cmp ebx, 0x2827
jl 0x1001295a
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
inc eax
mov dword [esp + 0x1c], eax
push 0
pop ebx
cmp eax, 0x1121
jl 0x1001294e
mov esi, dword [esp + 0x14]
inc edi
cmp edi, 0x5f75
jl 0x1001293c
inc esi
mov dword [esp + 0x14], esi
cmp esi, 0x5495
jl 0x1001293a
mov eax, dword [0x10442de0]
cmp eax, 0x270
jne 0x100129f1
mov edx, 0x10442de8
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, dword [edx + 0x630]
xor eax, ecx
mov dword [edx + 0x9bc], eax
add edx, 4
cmp edx, 0x104437a8
jl 0x100129b6
jmp 0x100129fd
cmp eax, 0x4e0
jb 0x10012a02
call fcn.100137f9
mov eax, dword [0x10442de0]
mov ecx, dword [eax*4 + 0x10442de4]
inc eax
mov dword [0x10442de0], eax
mov eax, ecx
shr eax, 0xb
and eax, dword [0x10444164]
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 ecx, dword [esp + 0x28]
mov dword [ecx], eax
jmp 0x10012a7a
cmp byte [ebp + 0xc], 0
je 0x10012a72
push 0x1472
push 1
push 0x1290
lea eax, [esp + 0x2f]
mov byte [esp + 0x2f], 0
push 1
push eax
mov edx, 0x75d7
xor cl, cl
call fcn.10011f79
add esp, 0x14
jmp 0x10012a7a
push 0
call dword [sym.imp.KERNEL32.dll_SetCommBreak]
mov ecx, dword [esp + 0xb4]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret