Function at 0x10003e32
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x139c
call fcn.10049580
mov eax, dword [0x10085040]
xor eax, esp
mov dword [esp + 0x1398], eax
push ebx
mov ebx, ecx
push esi
push edi
mov dword [esp + 0xc], ebx
mov eax, dword [ebx + 0x618]
cmp eax, 0x100012
je 0x10003ed7
cmp eax, 0x100029
je 0x10003ed7
cmp byte [0x1008698a], 0
je 0x10003ed7
cmp byte [0x1008696f], 0
jne 0x10003ed7
mov ecx, dword [ebx + 0x75c]
mov edx, str.2110
push 0x10085948
push str.0260
mov byte [0x1008698a], 0
call fcn.10002f92
mov ecx, dword [ebx + 0x75c]
mov edx, 0x10085a38
push str.ghighi
push str.0250
call fcn.10002f92
mov ecx, dword [ebx + 0x75c]
mov edx, str.24C0
push 0x10085958
push str.24C3
call fcn.10002f92
add esp, 0x18
mov eax, dword [0x10086c84]
test dword [eax + 4], 0x20000
jne 0x1000413e
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 0x34c]
call eax
test al, al
jne 0x1000413e
cmp dword [ebx + 0x618], 0x100064
jne 0x10003f1d
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 0x32c]
call eax
test al, al
jne 0x1000413e
push 0x47
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x10003f68
mov esi, 0x10000e
cmp dword [ebx + 0x618], esi
je 0x10003f68
mov eax, dword [0x10086d1c]
test dword [eax], 0x2000000
jne 0x10003f68
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 0x340]
call eax
test al, al
jne 0x10003f68
xor eax, eax
mov ecx, ebx
push eax
push eax
push eax
mov eax, dword [0x10086cf4]
push esi
add eax, 0x68caf0
call eax
mov edi, dword [0x10086cb8]
mov esi, dword [edi + 0x4c]
mov edi, dword [edi + 0x50]
jmp 0x100040a2
mov ecx, dword [esi]
test ecx, ecx
je 0x1000409f
mov eax, dword [0x10086cf4]
add eax, 0x67c8a0
call eax
mov edx, dword [0x10086cf4]
mov ebx, eax
mov ecx, dword [esi]
lea edx, [edx + 0x67c8a0]
call edx
test ebx, ebx
je 0x1000409b
call fcn.1002bb61
or dword [esp + 0x139c], 0xffffffff
xor edx, edx
mov dword [esp + 0x1c], eax
inc edx
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
mov ecx, 0x270
add eax, edx
mov dword [esp + edx*4 + 0x1c], eax
inc edx
cmp edx, ecx
jb 0x10003fbd
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x18]
call fcn.10005de2
push 2
pop ecx
mul ecx
push 0x52
mov dword [esp + 0x14], eax
lea eax, [edx - 0x7fffffff]
xor eax, 0x80000000
mov dword [esp + 0x14], eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ebx, dword [esp + 0xc]
test ax, ax
jns 0x1000409f
cmp dword [ebx + 0x618], 0x100012
je 0x1000409f
mov eax, dword [0x10086d1c]
test dword [eax], 0x2000000
jne 0x1000409f
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 0x340]
call eax
test al, al
jne 0x1000409f
mov eax, dword [esp + 0x10]
cmp eax, 1
jne 0x10004083
push str.ghighi
push str.0250
mov edx, 0x10085a38
mov ecx, dword [ebx + 0x75c]
mov byte [0x1008698a], 1
call fcn.10002f92
pop ecx
pop ecx
xor eax, eax
mov ecx, ebx
push eax
push eax
push eax
mov eax, dword [0x10086cf4]
push 0x100012
add eax, 0x68caf0
call eax
jmp 0x1000409f
push 2
pop ecx
cmp eax, ecx
jne 0x1000409f
push 0x10085948
push str.0260
mov edx, str.2110
jmp 0x10004055
mov ebx, dword [esp + 0xc]
mov esi, dword [esi + 8]
cmp esi, edi
jne 0x10003f79
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x47
call esi
test ax, ax
je 0x100040f7
mov eax, dword [0x10086d1c]
test dword [eax], 0x2000000
jne 0x100040f7
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 0x340]
call eax
test al, al
je 0x100040f7
mov ecx, 0x10001d
cmp dword [ebx + 0x618], ecx
je 0x100040f7
xor eax, eax
push eax
push eax
push eax
mov eax, dword [0x10086cf4]
push ecx
add eax, 0x68caf0
mov ecx, ebx
call eax
push 0x48
call esi
test ax, ax
je 0x1000413e
mov esi, 0x100064
cmp dword [ebx + 0x618], esi
je 0x1000413e
mov eax, dword [0x10086d1c]
test dword [eax], 0x2000000
jne 0x1000413e
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 0x340]
call eax
test al, al
jne 0x1000413e
xor eax, eax
mov ecx, ebx
push eax
push eax
push eax
mov eax, dword [0x10086cf4]
push esi
add eax, 0x68caf0
call eax
mov ecx, dword [esp + 0x13a4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1002bb83
mov esp, ebp
pop ebp
ret