Function at 0x1003ca61
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 0x10065abf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd0
mov byte [esp + 0x28], dl
push ebx
push esi
push edi
test dl, dl
je 0x1003d131
mov dword [esp + 0x20], 0xfffffffc
lea ecx, [esp + 0x5c]
mov dword [esp + 0x14], 0x4351cdcb
push 2
call fcn.10001d4c
xor edx, edx
mov dword [esp + 0x1c], 0x5231fbf6
mov dword [esp + 0x10], edx
jmp 0x1003cacf
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x5c]
mov dword [eax + ecx*4], 0xe64f1479
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 2
jl 0x1003cabc
mov dword [esp + 0x10], edx
jmp 0x1003caef
mov eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0x90], 0xfffffff8
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 4
jl 0x1003cadc
push 3
mov dword [esp + 0x14], edx
pop esi
jmp 0x1003cb0f
mov eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0x50], 0x7c69
inc dword [esp + 0x10]
cmp dword [esp + 0x10], esi
jl 0x1003caff
mov eax, dword [esp + 0x50]
xor edx, edx
mov eax, dword [esp + 0x1c]
inc dword [esp + 0x50]
mov eax, dword [esp + 0x9c]
mov eax, dword [esp + 0x94]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], 0xffffffff
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
cmp eax, ecx
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x1c]
setle dl
xor ebx, ebx
cmp edx, dword [eax + 4]
mov eax, dword [esp + 0x14]
setg bl
xor edx, edx
cmp ecx, eax
lea ecx, [esp + 0x5c]
setg dl
xor eax, eax
cmp ebx, edx
setg al
mov dword [esp + 0x94], eax
call fcn.10001d88
mov eax, dword [0x10146fa0]
mov ebx, 0x270
test al, 1
jne 0x1003cbc8
or dword [0x10148334], 0xffffffff
or eax, 1
mov ecx, 0x1571
mov dword [0x10146fa0], eax
xor edx, edx
mov dword [0x10146fb4], ecx
inc edx
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul ecx, eax, 0x6c078965
add ecx, edx
mov dword [edx*4 + 0x10146fb4], ecx
inc edx
cmp edx, ebx
jl 0x1003cba7
mov dword [0x10146fb0], ebx
xor ebx, ebx
cmp byte [0x10146dde], bl
jne 0x1003ccb5
push ebx
mov edx, 0x10146fb0
mov ecx, 0x5b0
call fcn.1003edf9
pop ecx
mov dword [esp + 0x14], 0xbacd
lea ecx, [esp + 0x80]
push 2
call fcn.10001d4c
lea eax, [esp + 0x28]
mov dword [esp + 0xe4], ebx
mov dword [esp + 0x18], ebx
lea ecx, [esp + 0x80]
push eax
xor dl, dl
call fcn.1003d488
pop ecx
mov dword [esp + 0x28], ebx
jmp 0x1003cc2e
mov eax, dword [esp + 0x28]
mov dword [esp + eax*4 + 0x68], ebx
inc dword [esp + 0x28]
cmp dword [esp + 0x28], esi
jl 0x1003cc22
mov eax, dword [esp + 0x14]
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x14], ebx
jne 0x1003cc4a
mov eax, dword [esp + 0x14]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x80]
dec ecx
neg ecx
sbb ecx, ecx
neg ecx
mov dword [eax + 4], ecx
mov eax, dword [esp + 0x68]
cmp dword [esp + 0x68], 0x1dab9737
je 0x1003cc78
cmp dword [esp + 0x68], ebx
je 0x1003cc78
xor eax, eax
inc eax
jmp 0x1003cc7a
mov eax, ebx
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x80]
or dword [esp + 0xe4], 0xffffffff
call fcn.10001d88
push 0xb9e
push 0x7941
push 0x69bf
push 0x10146dde
mov edx, 0x779b
xor cl, cl
call fcn.1003ef18
add esp, 0x10
xor esi, esi
mov dword [esp + 0x20], 0x53b26bdd
inc esi
lea ecx, [esp + 0x38]
push esi
call fcn.10001d4c
push 0x17c8
lea eax, [esp + 0x3c]
mov dword [esp + 0xe8], esi
push eax
mov dword [esp + 0x20], 0xda78
lea ecx, [esp + 0xac]
push ebx
mov edx, 0x7acb
call fcn.1003e1ab
add esp, 0xc
mov dword [esp + 0x20], 0x16
jmp 0x1003d080
mov dword [esp + 0x14], 0x94f934f5
mov dword [esp + 0x14], ebx
jmp 0x1003cd23
mov eax, dword [esp + 0x14]
mov dword [esp + eax*4 + 0x2c], 0x2cfb6318
inc dword [esp + 0x14]
cmp dword [esp + 0x14], 2
jl 0x1003cd13
mov dword [esp + 0x2c], ebx
jmp 0x1003cfff
mov dword [esp + 0x10], 0x5b7f37c0
mov dword [esp + 0x18], 0x9ae86a67
mov dword [esp + 0x14], 0x1b6
cmp dword [esp + 0x14], 0x415
jle 0x1003cdbe
mov edi, ebx
mov dword [esp + 0x1c], ebx
mov esi, ebx
mov eax, edi
cdq
idiv esi
mov edi, edx
mov eax, edi
lea ecx, [esp + 0xa8]
and eax, ebx
cdq
push edx
push eax
call fcn.10001a6a
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x1003cd81
mov eax, dword [eax]
push eax
call fcn.1004c39e
pop ecx
push 0
push 1
lea ecx, [esp + 0xb0]
call fcn.1000205a
inc ebx
cmp ebx, 0x3463
jl 0x1003cd64
mov edi, dword [esp + 0x1c]
inc esi
push 0
pop ebx
cmp esi, 0x6089
jl 0x1003cd5d
inc edi
mov dword [esp + 0x1c], edi
cmp edi, 0x1884
jl 0x1003cd5b
mov dword [esp + 0x18], 0x2a74db50
cmp dword [esp + 0x14], 0x174
jge 0x1003cddb
push str.wfmk_axlyor_ubszz_tqs_yxl_hqahrk
call fcn.1004c39e
pop ecx
mov dword [esp + 0xe4], 1
mov dword [esp + 0x10], ebx
cmp dword [esp + 0x10], ebx
jl 0x1003ce14
lea eax, [esp + 0x26]
mov byte [esp + 0x26], bl
push eax
mov edx, 0x3806
xor cl, cl
call fcn.1003edd4
mov dword [esp + 0x18], 0xead9bacc
dec dword [esp + 0x14]
pop ecx
jns 0x1003cdf0
mov dword [esp + 0x10], ebx
cmp dword [esp + 0x10], ebx
jl 0x1003cffb
mov dword [esp + 0x1c], 0xa48a2b8e
mov dword [esp + 0x18], 0x58163090
mov dword [esp + 0x14], ebx
jmp 0x1003cfe7
push 1
lea ecx, [esp + 0x78]
call fcn.10001d4c
lea eax, [esp + 0x74]
mov byte [esp + 0xe4], 4
push eax
push 0x6cbd
push ecx
mov edx, 0x5f00
lea ecx, [esp + 0xac]
call fcn.1003d4dc
mov byte [esp + 0x33], bl
add esp, 0xc
mov dword [esp + 0x18], 0x6b59
cmp dword [esp + 0x18], 0x6c9e
jle 0x1003cef0
push 0x132e
push ebx
push 0x72f
push 0x1620
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_TextOutA]
mov esi, ebx
mov edi, ebx
mov eax, edi
lea ecx, [esp + 0xc0]
and eax, esi
cdq
push edx
push eax
call fcn.10001a6a
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x1003cec8
mov eax, dword [eax]
push eax
call fcn.1004c39e
pop ecx
push ebx
push 1
lea ecx, [esp + 0xc8]
call fcn.1000205a
inc edi
cmp edi, 0x39dc
jl 0x1003ceab
inc esi
cmp esi, 0x4e73
jl 0x1003cea9
xor dl, dl
lea ecx, [esp + 0x27]
call fcn.1003e2b2
cmp dword [esp + 0x18], 0x67cd
jge 0x1003cf10
push str.eomt_biuvafoh_hza_wulyyxshn_ihwnpq_vsmxat_afkwwqay
call fcn.1004c39e
pop ecx
mov dword [esp + 0xe4], 4
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x38]
cmp dword [eax + ecx*4], ebx
jne 0x1003cf88
mov eax, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0x38]
mov eax, dword [eax]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x10], eax
je 0x1003cf4c
mov eax, dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x10], ebx
je 0x1003cf68
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x38]
cmp dword [eax + ecx*4], ebx
je 0x1003cf68
xor eax, eax
inc eax
jmp 0x1003cf6a
mov eax, ebx
mov ecx, dword [esp + 0x10]
xor edx, edx
imul ecx, eax
mov eax, dword [esp + 0x2c]
cmp ecx, eax
mov eax, dword [esp + 0x10]
setl dl
sub edx, eax
jne 0x1003cf88
mov ecx, ebx
jmp 0x1003cf8b
xor ecx, ecx
inc ecx
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x38]
cmp dword [eax + ecx*4], ebx
je 0x1003cfbe
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x38]
cmp dword [eax + ecx*4], ebx
je 0x1003cfbe
xor eax, eax
inc eax
jmp 0x1003cfc0
mov eax, ebx
push 9
pop ecx
cmp ecx, eax
sbb ecx, ecx
inc ecx
add ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x74]
mov byte [esp + 0xe4], 1
mov dword [eax], ecx
lea ecx, [esp + 0x74]
call fcn.10001d88
inc dword [esp + 0x14]
cmp dword [esp + 0x14], ebx
jle 0x1003ce3b
dec dword [esp + 0x10]
jns 0x1003ce22
dec dword [esp + 0x2c]
cmp dword [esp + 0x2c], 0xfffffffb
jg 0x1003cd33
mov dword [esp + 0x14], ebx
jmp 0x1003d075
push 1
lea ecx, [esp + 0x48]
call fcn.10001d4c
push ecx
lea edx, [esp + 0x90]
mov byte [esp + 0xe8], 7
lea ecx, [esp + 0x48]
call fcn.1003d26b
mov eax, dword [esp + 0x48]
pop ecx
mov dword [eax], ebx
mov eax, dword [eax]
mov eax, dword [esp + eax*4 + 0x30]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
sub ecx, eax
mov eax, dword [esp + 0x14]
neg ecx
sbb ecx, ecx
inc ecx
mov dword [esp + eax*4 + 0x2c], ecx
mov eax, dword [esp + 0x44]
dec dword [eax]
jns 0x1003d03b
lea ecx, [esp + 0x44]
mov byte [esp + 0xe4], 1
call fcn.10001d88
inc dword [esp + 0x14]
cmp dword [esp + 0x14], 1
jle 0x1003d010
dec dword [esp + 0x20]
cmp dword [esp + 0x20], 0xffffffe5
jg 0x1003cd05
lea ecx, [esp + 0x38]
call fcn.10001d88
mov eax, dword [0x10146fb0]
cmp eax, 0x270
jne 0x1003d0e0
mov edx, 0x10146fb8
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, 0x10147978
jl 0x1003d0a5
jmp 0x1003d0ec
cmp eax, 0x4e0
jb 0x1003d0f1
call fcn.1003f68a
mov eax, dword [0x10146fb0]
mov edx, dword [eax*4 + 0x10146fb4]
inc eax
mov dword [0x10146fb0], eax
mov eax, edx
shr eax, 0xb
and eax, dword [0x10148334]
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 + 8]
mov ecx, edx
shr ecx, 0x12
xor ecx, edx
mov dword [eax], ecx
jmp 0x1003d137
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov ecx, dword [esp + 0xdc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret