Function at 0x402d00
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4254df
mov eax, dword fs:[0]
push eax
mov eax, 0x14d8
call fcn.00409790
mov eax, dword [0x431080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x14a8], eax
mov dword [ebp - 0x118], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x14b4], eax
lea eax, [ebp - 0x114]
push eax
push 0x104
mov dword [ebp - 0x14b0], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x40302b
mov dword [ebp - 4], 1
call fcn.00408295
mov edx, eax
mov dword [ebp - 0x11c], 0xffffffff
mov dword [ebp - 0x149c], edx
mov ecx, 1
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [ebp + ecx*4 - 0x149c], edx
inc ecx
cmp ecx, 0x270
jb 0x402d93
xorps xmm0, xmm0
mov dword [ebp - 0x14a0], 0x270
xor esi, esi
mov dword [ebp - 0x14b0], 2
mov edi, 0xf
mov dword [ebp - 0x14bc], esi
movups xmmword [ebp - 0x14cc], xmm0
mov dword [ebp - 0x14b8], edi
mov byte [ebp - 0x14cc], 0
mov dword [ebp - 0x14ac], 6
lea ecx, [ebp - 0x14a0]
call fcn.004075a0
mov ecx, 0x24
mul ecx
cmp eax, ecx
jae 0x402e29
cmp eax, 4
jae 0x402e29
mov edi, ecx
lea ecx, [ebp - 0x14a0]
call fcn.004075a0
mul edi
cmp eax, 4
jb 0x402e11
mov edi, dword [ebp - 0x14b8]
lea eax, [edx - 0x80000000]
xor eax, 0x80000000
mov cl, byte [eax + str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ]
mov byte [ebp - 0x118], cl
cmp esi, edi
jae 0x402e67
lea eax, [esi + 1]
cmp edi, 0xf
mov dword [ebp - 0x14bc], eax
lea eax, [ebp - 0x14cc]
cmova eax, dword [ebp - 0x14cc]
mov byte [eax + esi], cl
mov byte [eax + esi + 1], 0
jmp 0x402e80
push dword [ebp - 0x118]
lea ecx, [ebp - 0x14cc]
push dword [ebp - 0x14b4]
push 1
call fcn.00406ac0
sub dword [ebp - 0x14ac], 1
je 0x402e9a
mov edi, dword [ebp - 0x14b8]
mov esi, dword [ebp - 0x14bc]
jmp 0x402df4
xorps xmm0, xmm0
mov dword [ebp - 0x14d4], 0
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x14d0], 0
movups xmmword [ebp - 0x14e4], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402ec1
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
lea ecx, [ebp - 0x14e4]
call fcn.00402c20
lea eax, [ebp - 0x14cc]
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x14a8]
mov ecx, esi
push eax
lea eax, [ebp - 0x14e4]
push eax
push dword [ebp - 0x14b4]
call fcn.00406f10
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14d0]
cmp ecx, 0xf
jbe 0x402f40
mov edx, dword [ebp - 0x14e4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402f36
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40304c
push ecx
push edx
call fcn.00408aac
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14b8]
mov dword [ebp - 0x14b0], 5
cmp ecx, 0xf
jbe 0x402f88
mov edx, dword [ebp - 0x14cc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402f7e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40304c
push ecx
push edx
call fcn.00408aac
add esp, 8
mov byte [ebp - 0x14a8], 0
lea ecx, [ebp - 0x14e4]
push dword [ebp - 0x14a8]
mov edx, esi
call fcn.004071e0
add esp, 4
lea ecx, [ebp - 0x14e4]
mov dword [ebp - 4], 3
call fcn.00402bb0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14d0]
mov byte [ebp - 0x14a1], al
cmp ecx, 7
jbe 0x403003
mov edx, dword [ebp - 0x14e4]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402ff3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403051
push ecx
push edx
call fcn.00408aac
mov al, byte [ebp - 0x14a1]
add esp, 8
test al, al
jne 0x40300e
push str.Failed_to_create_temporary_directory.
jmp 0x403030
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00408813
mov esp, ebp
pop ebp
ret
push str.Failed_to_retrieve_the_temporary_path.
lea ecx, [ebp - 0x14c0]
call fcn.00401270
push 0x42fd54
lea eax, [ebp - 0x14c0]
push eax
call fcn.00409dd0
call fcn.004111ed
call fcn.004111ed
int3