Function at 0x10034d60
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10083e5f
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xa8
mov eax, dword [0x100a6040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x50], esi
movzx eax, word [ebx + 8]
push eax
mov dword [ebp - 4], 0
call fcn.10010050
test eax, eax
je 0x10034e53
cmp dword [eax + 0x1c], 0xf
lea edx, [eax + 8]
jbe 0x10034dca
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0xb0], 0
xorps xmm0, xmm0
mov dword [ebp - 0x9c], 0
movups xmmword [ebp - 0xac], xmm0
mov dword [ebp - 0x98], 0
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10034df7
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0xb0]
call fcn.10003350
mov byte [ebp - 4], 1
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x5c], eax
test eax, eax
je 0x10034f71
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10034f71
cmp dword [ebp - 0x98], 0xf
lea ecx, [ebp - 0xac]
cmova ecx, dword [ebp - 0xac]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10034e47
jmp 0x10034f0b
mov dl, 0xf
mov dword [ebp - 0x44], 0x617a330f
mov dword [ebp - 0x40], 0x78606164
xor ecx, ecx
mov word [ebp - 0x3c], 0x3161
mov byte [ebp - 0x3a], 0
nop
xor byte [ebp + ecx - 0x43], dl
inc ecx
cmp ecx, 9
jae 0x10034e7f
mov dl, byte [ebp - 0x44]
jmp 0x10034e70
xorps xmm0, xmm0
mov byte [ebp - 0x3a], 0
lea ecx, [ebp - 0x43]
mov dword [ebp - 0xb0], 0
movups xmmword [ebp - 0xac], xmm0
mov dword [ebp - 0x9c], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x98], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10034eb1
sub ecx, edx
lea eax, [ebp - 0x43]
push ecx
push eax
lea ecx, [ebp - 0xb0]
call fcn.10003350
mov byte [ebp - 4], 2
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x5c], eax
test eax, eax
je 0x10034f71
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10034f71
cmp dword [ebp - 0x98], 0xf
lea ecx, [ebp - 0xac]
cmova ecx, dword [ebp - 0xac]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10034f04
sub ecx, edx
mov dword [ebp - 0x38], ecx
lea esi, [ecx + 0x21]
push esi
call fcn.100460a0
add esp, 4
mov edi, eax
push esi
push 0
push edi
call fcn.10048c00
add esp, 0xc
lea edx, [ebp - 0xac]
cmp dword [ebp - 0x98], 0xf
lea esi, [edi + 0x20]
cmova edx, dword [ebp - 0xac]
push dword [ebp - 0x38]
push edx
push esi
call fcn.10048680
mov eax, dword [ebp - 0x38]
add esp, 0xc
mov ecx, dword [ebp - 0x5c]
mov dword [edi + 4], esi
mov dword [edi + 0x14], eax
push edi
mov dword [edi + 0x18], 0x1f
call dword [0x1009e0e0]
push edi
call fcn.10046080
add esp, 4
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 0
call fcn.10002f50
mov eax, dword [ebp - 0xb0]
push 8
push eax
mov dword [ebp - 0xb0], 0
call fcn.10046080
mov eax, dword [ebx + 0x10]
add esp, 8
mov ecx, dword [ebx + 0x14]
mov byte [ebp - 0x31], 0
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0xb4], ecx
cmp eax, ecx
je 0x100356ab
nop word [eax + eax]
mov edi, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x48], edi
movzx eax, ax
test edi, edi
je 0x1003569a
test ax, ax
je 0x1003569a
mov esi, dword [0x1009e08c]
mov eax, 0x10624dd3
mul edi
mov ecx, 0xd78ae8
mov eax, edx
shr eax, 6
mov dword [ebp - 0x54], eax
imul eax, eax, 0x3e8
push eax
call fcn.10014390
mov ecx, eax
call esi
mov esi, eax
mov dword [ebp - 0x38], esi
test esi, esi
je 0x10035313
xorps xmm0, xmm0
mov word [ebp - 0x4c], 0x3a
lea ecx, [ebp - 0x4b]
mov byte [ebp - 0x4b], 0
mov dword [ebp - 0x30], 0
lea edx, [ecx + 1]
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10035045
sub ecx, edx
lea eax, [ebp - 0x4b]
push ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.10003350
mov eax, 0x12e0be83
mov byte [ebp - 4], 3
mov cl, byte [esi + 4]
mov esi, edi
mul edi
mov byte [ebp - 0x55], cl
sub esi, edx
shr esi, 1
add esi, edx
shr esi, 0x1d
cmp esi, 4
jae 0x1003511f
cmp cl, 0x2d
jae 0x1003511f
push 4
push 0xd78af0
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003511f
sub esi, dword [ebp - 0x54]
movzx ecx, byte [ebp - 0x55]
mov edx, dword [0x1009e090]
imul eax, esi, 0x3e8
mov ecx, dword [ecx*4 + 0xd78af0]
add eax, edi
push eax
call edx
mov edi, eax
mov esi, edi
test edi, edi
je 0x10035123
cmp dword [edi + 0x48], 0
je 0x10035123
push dword [ebp - 0x48]
xor edx, edx
lea ecx, [ebp - 0x90]
push edi
call fcn.1000f640
mov esi, eax
add esp, 8
lea eax, [ebp - 0x30]
cmp eax, esi
je 0x100350f8
mov ecx, eax
call fcn.10002f50
push esi
lea ecx, [ebp - 0x30]
call fcn.10007c30
lea ecx, [ebp - 0x90]
call fcn.10002f50
mov eax, dword [ebp - 0x90]
push 8
push eax
mov dword [ebp - 0x90], 0
call fcn.10046080
mov esi, edi
jmp 0x10035176
xor esi, esi
jmp 0x10035126
mov edi, dword [ebp - 0x48]
mov edx, dword [ebp - 0x38]
lea ecx, [ebp - 0x90]
push edi
push 0
call fcn.1000f640
mov edi, eax
add esp, 8
lea eax, [ebp - 0x30]
cmp eax, edi
je 0x10035153
mov ecx, eax
call fcn.10002f50
push edi
lea ecx, [ebp - 0x30]
call fcn.10007c30
lea ecx, [ebp - 0x90]
call fcn.10002f50
mov eax, dword [ebp - 0x90]
push 8
push eax
mov dword [ebp - 0x90], 0
call fcn.10046080
movzx eax, byte [ebp - 0x31]
add esp, 8
lea edi, [eax + eax*2]
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x48], edi
mov ecx, dword [eax + edi*8 + 0x3c]
test ecx, ecx
je 0x10035291
add ecx, 4
lea edx, [ebp - 0x30]
call fcn.100111d0
mov edx, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x38]
mov eax, dword [edx + edi*8 + 0x3c]
mov dword [eax + 0x50], ecx
mov eax, dword [edx + edi*8 + 0x3c]
mov dword [eax + 0x54], esi
mov eax, dword [edx + edi*8 + 0x3c]
mov dword [eax + 0x58], 0
test esi, esi
je 0x100351cf
mov eax, dword [ebp - 0x38]
movsx ecx, word [esi + 0x56]
movsx eax, word [eax + 0x66]
add ecx, eax
jmp 0x100351d3
movsx ecx, word [ecx + 0x66]
mov eax, dword [edx + edi*8 + 0x3c]
mov dword [eax + 0x5c], ecx
mov eax, dword [edx + edi*8 + 0x3c]
mov eax, dword [eax]
mov dword [ebp - 0x54], eax
test eax, eax
je 0x10035291
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003526d
cmp dword [ebp - 0x18], 0xf
lea ecx, [ebp - 0x2c]
cmova ecx, dword [ebp - 0x2c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10035206
sub ecx, edx
mov dword [ebp - 0x38], ecx
lea esi, [ecx + 0x21]
push esi
call fcn.100460a0
add esp, 4
mov edi, eax
push esi
push 0
push edi
call fcn.10048c00
add esp, 0xc
lea edx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0xf
lea esi, [edi + 0x20]
cmova edx, dword [ebp - 0x2c]
push dword [ebp - 0x38]
push edx
push esi
call fcn.10048680
mov eax, dword [ebp - 0x38]
add esp, 0xc
mov ecx, dword [ebp - 0x54]
mov dword [edi + 4], esi
mov dword [edi + 0x14], eax
push edi
mov dword [edi + 0x18], 0x1f
call dword [0x1009e0c0]
push edi
call fcn.10046080
mov edi, dword [ebp - 0x48]
add esp, 4
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + edi*8 + 0x3c]
mov esi, dword [eax]
test esi, esi
je 0x10035291
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10035291
push 1
mov ecx, esi
call dword [0x1009e0b8]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.10002f50
mov eax, dword [ebp - 0x30]
push 8
push eax
mov dword [ebp - 0x30], 0
call fcn.10046080
add esp, 8
mov edi, dword [ebp - 0x50]
mov eax, dword [ebp - 0x94]
sub esp, 8
movss xmm1, dword [0x1009f960]
mov dl, 0x69
movzx eax, ax
xor ecx, ecx
mov dword [ebp - 0x44], 0x5b474c69
mov dword [ebp - 0x40], 0x4c4c0f05
mov byte [ebp - 0x3c], 0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm0, xmm1
minss xmm1, xmm0
cvtps2pd xmm0, xmm1
movss dword [ebp - 0x94], xmm1
movsd qword [esp], xmm0
nop
xor byte [ebp + ecx - 0x43], dl
inc ecx
cmp ecx, 7
jae 0x1003559f
mov dl, byte [ebp - 0x44]
jmp 0x10035300
lea eax, [edi - 1]
cmp eax, 0x5f5e0fe
ja 0x100352b2
movzx eax, byte [ebp - 0x31]
lea esi, [eax + eax*2]
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x48], esi
mov dword [eax + esi*8 + 0x28], edi
mov edi, eax
cmp dword [edi + esi*8 + 0x3c], 0
je 0x10035570
movaps xmm0, xmmword [0x1009fd70]
xor ecx, ecx
movups xmmword [ebp - 0x74], xmm0
mov dword [ebp - 0x64], 0x7c263720
mov dword [ebp - 0x60], 0x262a36
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x73]
xor al, byte [ebp - 0x74]
mov byte [ebp + ecx - 0x73], al
inc ecx
cmp ecx, 0x16
jb 0x10035360
xorps xmm0, xmm0
mov byte [ebp - 0x5d], 0
lea ecx, [ebp - 0x73]
mov dword [ebp - 0x90], 0
movups xmmword [ebp - 0x8c], xmm0
mov dword [ebp - 0x7c], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x78], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100353a0
sub ecx, edx
lea eax, [ebp - 0x73]
push ecx
push eax
lea ecx, [ebp - 0x90]
call fcn.10003350
mov byte [ebp - 4], 4
lea edx, [ebp - 0x90]
mov ecx, dword [edi + esi*8 + 0x3c]
add ecx, 4
call fcn.100111d0
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0
call fcn.10002f50
mov eax, dword [ebp - 0x90]
push 8
push eax
mov dword [ebp - 0x90], 0
call fcn.10046080
mov eax, dword [edi + esi*8 + 0x3c]
add esp, 8
cmp dword [eax], 0
je 0x10035570
movaps xmm0, xmmword [0x1009fb10]
xor ecx, ecx
movups xmmword [ebp - 0x74], xmm0
mov dword [ebp - 0x64], 0x471d0c1b
mov dword [ebp - 0x60], 0x1d110d
mov al, byte [ebp + ecx - 0x73]
xor al, byte [ebp - 0x74]
mov byte [ebp + ecx - 0x73], al
inc ecx
cmp ecx, 0x16
jb 0x10035421
xorps xmm0, xmm0
mov byte [ebp - 0x5d], 0
lea ecx, [ebp - 0x73]
mov dword [ebp - 0x90], 0
movups xmmword [ebp - 0x8c], xmm0
mov dword [ebp - 0x7c], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x78], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10035460
sub ecx, edx
lea eax, [ebp - 0x73]
push ecx
push eax
lea ecx, [ebp - 0x90]
call fcn.10003350
mov byte [ebp - 4], 5
mov eax, dword [edi + esi*8 + 0x3c]
mov eax, dword [eax]
mov dword [ebp - 0x54], eax
test eax, eax
je 0x10035523
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10035523
cmp dword [ebp - 0x78], 0xf
lea ecx, [ebp - 0x8c]
cmova ecx, dword [ebp - 0x8c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100354b3
sub ecx, edx
mov dword [ebp - 0x38], ecx
lea esi, [ecx + 0x21]
push esi
call fcn.100460a0
add esp, 4
mov edi, eax
push esi
push 0
push edi
call fcn.10048c00
add esp, 0xc
lea edx, [ebp - 0x8c]
cmp dword [ebp - 0x78], 0xf
lea esi, [edi + 0x20]
cmova edx, dword [ebp - 0x8c]
push dword [ebp - 0x38]
push edx
push esi
call fcn.10048680
mov eax, dword [ebp - 0x38]
add esp, 0xc
mov ecx, dword [ebp - 0x54]
mov dword [edi + 4], esi
mov dword [edi + 0x14], eax
push edi
mov dword [edi + 0x18], 0x1f
call dword [0x1009e0c0]
push edi
call fcn.10046080
mov edi, dword [ebp - 0x50]
add esp, 4
mov esi, dword [ebp - 0x48]
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0
call fcn.10002f50
mov eax, dword [ebp - 0x90]
push 8
push eax
mov dword [ebp - 0x90], 0
call fcn.10046080
mov eax, dword [edi + esi*8 + 0x3c]
add esp, 8
mov esi, dword [eax]
test esi, esi
je 0x1003556d
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003556d
push eax
mov ecx, esi
call dword [0x1009e0b8]
mov esi, dword [ebp - 0x48]
mov esi, dword [edi + esi*8 + 0x38]
test esi, esi
je 0x100352b5
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100352b5
lea ecx, [esi + 0xd0]
mov dl, 2
call fcn.100142c0
jmp 0x100352b5
sub esp, 0x1c
mov byte [ebp - 0x3c], 0
mov edx, esp
lea ecx, [ebp - 0x43]
xorps xmm0, xmm0
lea esi, [ecx + 1]
mov dword [edx], 0
movups xmmword [edx + 4], xmm0
mov dword [edx + 0x14], 0
mov dword [edx + 0x18], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100355d0
sub ecx, esi
lea eax, [ebp - 0x43]
push ecx
push eax
mov ecx, edx
call fcn.10003350
lea eax, [ebp - 0x90]
push eax
call fcn.1000d820
add esp, 0x28
movzx esi, byte [ebp - 0x31]
mov edx, eax
mov byte [ebp - 4], 6
mov dword [ebp - 0x54], esi
lea ecx, [esi + esi*2]
mov ecx, dword [edi + ecx*8 + 0x30]
call fcn.100141e0
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0
call fcn.10002f50
mov eax, dword [ebp - 0x90]
push 8
push eax
mov dword [ebp - 0x90], 0
call fcn.10046080
lea eax, [esi + esi*2]
add esp, 8
mov esi, dword [edi + eax*8 + 0x34]
test esi, esi
je 0x1003566f
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003566f
movss xmm0, dword [ebp - 0x94]
sub esp, 0xc
mov ecx, esi
mov dword [esp + 8], eax
mov dword [esp + 4], eax
movss dword [esp], xmm0
call dword [0x1009e0d4]
mov esi, dword [ebp - 0x54]
mov esi, dword [edi + esi*4 + 0xc]
test esi, esi
je 0x10035691
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10035691
push 1
mov ecx, esi
call dword [0x1009e0b8]
inc byte [ebp - 0x31]
mov ecx, dword [ebp - 0xb4]
mov eax, dword [ebp - 0x5c]
add eax, 8
mov dword [ebp - 0x5c], eax
cmp eax, ecx
jne 0x10034fc0
lea ecx, [ebx + 0xc]
call fcn.10035710
mov eax, dword [ebx + 0xc]
push 8
push eax
mov dword [ebx + 0xc], 0
call fcn.10046080
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10045fd0
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x14