Function at 0x10034070
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10042e8e
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x10055014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 0
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov byte [ebp - 0x2d], 0
cmp esi, edi
je 0x10034430
nop dword [eax]
mov ebx, dword [esi]
mov dword [ebp - 0x58], ebx
test ebx, ebx
je 0x10034422
mov eax, 0x10624dd3
mov ecx, 0xd78ae8
mul ebx
mov eax, edx
shr eax, 6
mov dword [ebp - 0x3c], eax
imul eax, eax, 0x3e8
push eax
call fcn.100164e0
mov ecx, eax
call dword [0x1004b53c]
mov dword [ebp - 0x74], eax
test eax, eax
je 0x100342b0
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
mov byte [ebp - 4], 1
mov cl, byte [eax + 4]
mov eax, 0x12e0be83
mul ebx
mov byte [ebp - 0x35], cl
sub ebx, edx
shr ebx, 1
add ebx, edx
shr ebx, 0x1d
cmp ebx, 4
jae 0x10034187
cmp cl, 0x2d
jae 0x10034187
push 4
push 0xd78af0
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10034187
sub ebx, dword [ebp - 0x3c]
movzx ecx, byte [ebp - 0x35]
imul eax, ebx, 0x3e8
mov ebx, dword [ebp - 0x58]
mov ecx, dword [ecx*4 + 0xd78af0]
add eax, ebx
push eax
call dword [0x1004b540]
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x1003418f
cmp dword [eax + 0x48], 0
je 0x1003418f
push ebx
push eax
xor edx, edx
lea ecx, [ebp - 0x70]
call fcn.1000eee0
add esp, 8
mov ebx, eax
jmp 0x100341a2
mov ebx, dword [ebp - 0x58]
xor eax, eax
mov dword [ebp - 0x3c], eax
mov edx, dword [ebp - 0x74]
lea ecx, [ebp - 0x70]
push ebx
push 0
call fcn.1000eee0
add esp, 8
mov ebx, eax
lea eax, [ebp - 0x2c]
cmp eax, ebx
je 0x100341d6
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x100341bb
inc eax
push eax
push dword [ebp - 0x2c]
call fcn.100026c0
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
call fcn.10005ba0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x5c]
cmp eax, 0x10
jb 0x100341ec
inc eax
push eax
push dword [ebp - 0x70]
call fcn.100026c0
mov eax, dword [ebp - 0x34]
movzx ebx, byte [ebp - 0x2d]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + ebx*4]
test ecx, ecx
je 0x10034291
add ecx, 4
lea edx, [ebp - 0x2c]
call fcn.100133c0
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x74]
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + ebx*4]
mov dword [eax + 0x50], edx
mov eax, dword [ecx + 0xc]
mov ecx, dword [ebp - 0x3c]
mov eax, dword [eax + ebx*4]
mov dword [eax + 0x54], ecx
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + ebx*4]
mov dword [eax + 0x58], 0
test ecx, ecx
je 0x10034247
movsx ecx, word [ecx + 0x56]
movsx eax, word [edx + 0x66]
add ecx, eax
jmp 0x1003424b
movsx ecx, word [edx + 0x66]
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0xc]
mov eax, dword [eax + ebx*4]
mov dword [eax + 0x5c], ecx
mov eax, dword [edx + 0xc]
mov eax, dword [eax + ebx*4]
mov ecx, dword [eax]
test ecx, ecx
je 0x10034291
lea edx, [ebp - 0x2c]
call fcn.10016130
mov ecx, dword [ebp - 0x34]
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + ebx*4]
mov ebx, dword [eax]
test ebx, ebx
je 0x10034291
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10034291
push 1
mov ecx, ebx
call dword [0x1004b578]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x1003441f
inc eax
push eax
push dword [ebp - 0x2c]
call fcn.100026c0
jmp 0x1003441f
mov eax, dword [ebp - 0x34]
movzx ebx, byte [ebp - 0x2d]
mov eax, dword [eax + 0xc]
cmp dword [eax + ebx*4], 0
je 0x1003441f
movaps xmm0, xmmword [str.p_9_]
xor ecx, ecx
movups xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0x44], 0x5e041502
mov dword [ebp - 0x40], 0x40814
nop
mov al, byte [ebp - 0x54]
xor byte [ebp + ecx - 0x53], al
inc ecx
cmp ecx, 0x16
jb 0x100342e0
cmp byte [ebp - 0x53], 0
mov byte [ebp - 0x3d], 0
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
jne 0x1003430d
xor ecx, ecx
jmp 0x1003431c
lea ecx, [ebp - 0x53]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10034313
sub ecx, edx
push ecx
lea eax, [ebp - 0x53]
push eax
lea ecx, [ebp - 0x70]
call fcn.100027c0
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x70]
mov byte [ebp - 4], 4
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + ebx*4]
add ecx, 4
call fcn.100133c0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x5c]
cmp eax, 0x10
jb 0x10034357
inc eax
push eax
push dword [ebp - 0x70]
call fcn.100026c0
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + ebx*4]
cmp dword [eax], 0
je 0x1003441f
movaps xmm0, xmmword [0x1004d580]
xor ecx, ecx
movups xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0x44], 0xd574651
mov dword [ebp - 0x40], 0x575b47
mov al, byte [ebp - 0x54]
xor byte [ebp + ecx - 0x53], al
inc ecx
cmp ecx, 0x16
jb 0x10034384
cmp byte [ebp - 0x53], 0
mov byte [ebp - 0x3d], 0
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
jne 0x100343b1
xor ecx, ecx
jmp 0x100343c0
lea ecx, [ebp - 0x53]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100343b7
sub ecx, edx
push ecx
lea eax, [ebp - 0x53]
push eax
lea ecx, [ebp - 0x70]
call fcn.100027c0
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x70]
mov byte [ebp - 4], 5
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + ebx*4]
mov ecx, dword [ecx]
call fcn.10016130
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x5c]
cmp eax, 0x10
jb 0x100343fa
inc eax
push eax
push dword [ebp - 0x70]
call fcn.100026c0
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + ebx*4]
mov ebx, dword [eax]
test ebx, ebx
je 0x1003441f
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003441f
push eax
mov ecx, ebx
call dword [0x1004b578]
inc byte [ebp - 0x2d]
add esi, 4
cmp esi, edi
jne 0x100340c0
mov eax, dword [ebp - 0x34]
mov ecx, eax
call fcn.10033ce0
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x1003444d
mov eax, dword [ebp + 0x10]
sub eax, ecx
sar eax, 2
push eax
push ecx
call fcn.10010020
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1003ce35
mov esp, ebp
pop ebp
ret 0xc