Function at 0x10019f82
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 0x1005e1c6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd0
mov byte [esp + 0x3c], dl
push ebx
push esi
push edi
mov edi, ecx
test dl, dl
je 0x10019fd6
mov esi, dword [ebp + 0xc]
xor ecx, ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [esi]
mov eax, dword [edx]
mov eax, dword [edx]
mov eax, dword [esi]
cmp eax, 0x4caf14c9
setge cl
xor eax, eax
test ecx, ecx
setg al
mov dword [edi], eax
jmp 0x1001a68c
push 1
lea ecx, [esp + 0x6c]
call fcn.1000580e
push 3
pop esi
lea eax, [esp + 0x68]
xor ebx, ebx
push eax
mov dword [esp + 0xe8], ebx
lea eax, [esp + 0x84]
mov dword [esp + 0x20], 0x453606de
mov edx, 0x5e75
mov dword [esp + 0x40], esi
xor cl, cl
push eax
call fcn.1001b448
pop ecx
mov dword [esp + 0x20], ebx
pop ecx
cmp dword [esp + 0x1c], ebx
jl 0x1001a129
push ecx
mov dword [esp + 0x44], 0x83111738
mov dword [esp + 0x50], 0x15e82aa9
push ecx
mov dword [esp + 0x68], 0x2cfb6473
lea ecx, [esp + 0x37]
mov byte [esp + 0x37], bl
call fcn.1001c64e
pop ecx
mov dword [esp + 0x44], ebx
pop ecx
cmp dword [esp + 0x40], ebx
jl 0x1001a11f
mov dword [esp + 0x5c], 9
mov dword [esp + 0x34], ebx
mov eax, dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x68]
mov eax, dword [ecx + eax*4]
mov dword [ecx + edx*4], eax
mov eax, dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
mov eax, dword [esp + 0x4c]
mov eax, dword [esp + 0x1c]
mov eax, dword [esp + 0x40]
cmp eax, dword [esp + 0x1c]
jge 0x1001a0cd
lea eax, [esp + 0x1c]
mov dword [esp + 0x64], 1
push eax
lea eax, [esp + 0x40]
push eax
push ecx
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x74]
push eax
lea edx, [esp + 0x84]
call fcn.10019ddf
add esp, 0x1c
jmp 0x1001a103
mov dword [esp + 0x34], 0x17
jmp 0x1001a0fc
mov dword [esp + 0x3c], ebx
cmp dword [esp + 0x3c], ebx
jl 0x1001a0f8
push ecx
mov byte [esp + 0x2a], bl
lea edx, [esp + 0x2a]
push ebx
call fcn.1001c060
dec dword [esp + 0x44]
pop ecx
pop ecx
jns 0x1001a0e1
dec dword [esp + 0x34]
cmp dword [esp + 0x34], 0xfffffffc
jl 0x1001a0d7
sub esp, 0xc
lea eax, [esp + 0x6c]
xor dl, dl
push eax
call fcn.1001a8f4
add esp, 0x10
dec dword [esp + 0x40]
jns 0x1001a059
dec dword [esp + 0x1c]
jns 0x1001a022
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [esp + 0x68]
or dword [esp + 0xe4], 0xffffffff
call fcn.1000586b
mov eax, dword [0x1010c5ec]
mov edi, 0x270
test al, 1
jne 0x1001a18e
or dword [0x1010d984], 0xffffffff
or eax, 1
mov ecx, 0x1571
mov dword [0x1010c5ec], eax
xor edx, edx
mov dword [0x1010c604], ecx
inc edx
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul ecx, eax, 0x6c078965
add ecx, edx
mov dword [edx*4 + 0x1010c604], ecx
inc edx
cmp edx, edi
jl 0x1001a16d
mov dword [0x1010c600], edi
push 4
lea ecx, [esp + 0x88]
call fcn.1000580e
push ecx
lea eax, [esp + 0x34]
mov dword [esp + 0xe8], 1
push eax
lea eax, [esp + 0x8c]
push eax
push ecx
push ecx
call fcn.1001a6bc
add esp, 0x14
mov dword [esp + 0x30], ebx
jmp 0x1001a1d5
mov eax, dword [esp + 0x30]
mov dword [esp + eax*4 + 0x44], 0x6960f57a
inc dword [esp + 0x30]
cmp dword [esp + 0x30], 1
jl 0x1001a1c5
mov dword [esp + 0x44], esi
cmp dword [esp + 0x44], ebx
jl 0x1001a1fb
mov byte [esp + 0x27], bl
lea edx, [esp + 0x27]
push ebx
call fcn.10019c73
dec dword [esp + 0x48]
pop ecx
jns 0x1001a1e6
or dword [esp + 0xe4], 0xffffffff
lea ecx, [esp + 0x84]
call fcn.1000586b
mov dword [esp + 0x10], 0xdb3ae355
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x10], ebx
jmp 0x1001a372
mov dword [esp + 0xc], 1
mov dword [esp + 0x38], 0x73063d62
mov dword [esp + 0x18], ebx
jmp 0x1001a251
mov eax, dword [esp + 0x18]
mov dword [esp + eax*4 + 0x90], 0xfffffff8
inc dword [esp + 0x18]
cmp dword [esp + 0x18], esi
jl 0x1001a23e
mov eax, dword [esp + 0xc]
mov eax, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
add eax, dword [esp + 0xc]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov eax, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x94], eax
mov dword [esp + 0xc], 2
cmp dword [esp + 0xc], ebx
jl 0x1001a36e
mov byte [esp + 0x17], bl
cmp byte [esp + 0x17], 0
je 0x1001a2bc
push ecx
push ecx
call fcn.1001c0ea
pop ecx
pop ecx
mov dword [esp + 0x20], 0x1cfb
cmp dword [esp + 0x20], 0x20d7
jle 0x1001a335
mov esi, ebx
mov edi, ebx
mov eax, esi
lea ecx, [esp + 0xa8]
cdq
idiv edi
mov eax, edx
cdq
push edx
push eax
call fcn.10001ace
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x1001a2f2
mov eax, dword [eax]
push eax
call fcn.1004699c
pop ecx
push ebx
push 1
lea ecx, [esp + 0xb0]
call fcn.10005d35
inc edi
cmp edi, 0x4e1a
jl 0x1001a2d2
inc esi
cmp esi, 0x166c
jl 0x1001a2d0
push 0x234b
push 0x170
push 0x24a
push 0x259b
push ebx
call dword [sym.imp.USER32.dll_CheckMenuRadioItem]
mov byte [esp + 0x2e], bl
cmp dword [esp + 0x20], 0x1c9a
jge 0x1001a34e
push str.zdzlucg_pykmk_ldvzmh_opwcclnqb_hesaw_bqpjldlzw_mstyw
call fcn.1004699c
pop ecx
or dword [esp + 0xe4], 0xffffffff
lea edx, [esp + 0x2e]
push ecx
call fcn.1001b520
dec dword [esp + 0x10]
pop ecx
jns 0x1001a2a8
push 3
pop esi
dec dword [esp + 0x10]
cmp dword [esp + 0x10], 0xffffffe2
jne 0x1001a228
cmp byte [0x1010c525], 0
jne 0x1001a3b4
push ebx
mov edx, 0xa92
mov ecx, 0x1010c600
call fcn.1001b4d5
mov dword [esp], 0x5c54
mov edx, 0x1010c525
push ecx
push ecx
push 1
push ecx
mov ecx, 0x48c1
call fcn.10019e93
add esp, 0x14
push 1
lea ecx, [esp + 0x54]
call fcn.1000580e
mov dword [esp + 0xe4], 4
lea ecx, [esp + 0x74]
mov dword [esp + 0xc], 6
mov dword [esp + 0x20], ebx
mov dword [esp + 0x38], 0xd04549c4
mov dword [esp + 0x18], 9
push 4
call fcn.1000580e
lea eax, [esp + 0x28]
mov byte [esp + 0xe4], 5
push eax
push ecx
push ecx
push ebx
push ecx
mov edx, 0x3fdd
lea ecx, [esp + 0x64]
call fcn.10019e93
add esp, 0x14
mov dword [esp + 0x28], ebx
jmp 0x1001a42c
mov eax, dword [esp + 0x28]
mov dword [esp + eax*4 + 0x9c], 0xc242ea6a
inc dword [esp + 0x28]
cmp dword [esp + 0x28], esi
jl 0x1001a419
push ecx
lea eax, [esp + 0x2c]
mov edx, 0x21e4
push ebx
push eax
lea ecx, [esp + 0x80]
call fcn.10019ca1
mov dword [esp + 0x18], ebx
add esp, 0xc
cmp dword [esp + 0xc], ebx
jl 0x1001a566
mov edi, dword [esp + 0x74]
mov dword [esp + 0x10], 0xe0b4074d
mov dword [esp + 0x18], 0x84132d38
mov dword [esp + 0x10], ebx
jmp 0x1001a48a
push ecx
mov byte [esp + 0x29], bl
lea ecx, [esp + 0x29]
xor dl, dl
call fcn.1001a8c6
inc dword [esp + 0x14]
pop ecx
cmp dword [esp + 0x10], ebx
jle 0x1001a475
mov eax, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0x50]
cmp dword [eax], ebx
je 0x1001a4c0
mov eax, dword [esp + 0xc]
mov eax, dword [esp + 0xc]
mov eax, dword [esp + 0xc]
mov eax, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
mov eax, dword [esp + 0xc]
mov eax, dword [esp + 0x38]
mov eax, dword [esp + 0xc]
cmp dword [esp + 0x18], ebx
jne 0x1001a4ce
mov eax, dword [esp + 0xc]
mov eax, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x50]
add ecx, dword [eax]
jne 0x1001a4f3
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x50]
cmp dword [eax + ecx*4], ebx
jne 0x1001a4f3
mov eax, ebx
jmp 0x1001a4f6
xor eax, eax
inc eax
imul eax, eax, 0xba79
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x18]
neg ecx
sbb ecx, ecx
xor eax, eax
neg ecx
test ecx, ecx
setle al
xor edx, edx
mov dword [esp + 0x18], eax
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 0x18]
sub ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x50]
cmp ecx, dword [eax + esi*4]
setl dl
xor ecx, ecx
mov dword [esp + 0x10], edx
inc ecx
mov eax, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x38]
sub ecx, eax
mov edx, dword [esp + 0x50]
xor eax, eax
cmp ecx, dword [edx + esi*4]
setl al
mov dword [esp + 0xa4], eax
mov dword [edi + 4], eax
dec dword [esp + 0xc]
jns 0x1001a45f
mov byte [esp + 0x17], bl
cmp byte [esp + 0x17], 0
je 0x1001a57a
push ecx
mov cl, 1
call fcn.10019f3d
pop ecx
lea ecx, [esp + 0x74]
call fcn.1000586b
or dword [esp + 0xe4], 0xffffffff
lea ecx, [esp + 0x50]
call fcn.1000586b
mov dword [esp + 0x38], 0x34fb
cmp dword [esp + 0x38], 0x3608
jle 0x1001a5f1
mov esi, ebx
mov edi, ebx
mov ecx, edi
mov eax, esi
sar eax, cl
lea ecx, [esp + 0xc0]
cdq
push edx
push eax
call fcn.10001ace
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x1001a5c9
mov eax, dword [eax]
push eax
call fcn.1004699c
pop ecx
push ebx
push 1
lea ecx, [esp + 0xc8]
call fcn.10005d35
inc edi
cmp edi, 0x6fd8
jl 0x1001a5aa
inc esi
cmp esi, 0x3a63
jl 0x1001a5a8
mov eax, dword [0x1010c600]
cmp eax, 0x270
jne 0x1001a63d
mov edx, 0x1010c608
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, 0x1010cfc8
jl 0x1001a602
jmp 0x1001a649
cmp eax, 0x4e0
jb 0x1001a64e
call fcn.1001ca8d
mov eax, dword [0x1010c600]
mov edx, dword [eax*4 + 0x1010c604]
inc eax
mov dword [0x1010c600], eax
mov eax, edx
shr eax, 0xb
and eax, dword [0x1010d984]
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, dword [ebp + 0x14]
mov ecx, edx
shr ecx, 0x12
xor ecx, edx
mov dword [eax], ecx
mov ecx, dword [esp + 0xdc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret