Function at 0x10034dd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x28
push esi
mov eax, edx
mov dword [esp + 0x18], 0xd
mov edx, dword [ebp + 0xc]
mov esi, ecx
push edi
test edx, edx
je 0x10035323
lea edi, [esi + 0x160]
xorps xmm0, xmm0
movups xmmword [edi], xmm0
movups xmmword [esi + 0x170], xmm0
mov dword [esi + 0x180], eax
mov dword [esi + 0x140], 0
mov dword [esi + 0x144], 0
mov dword [esi + 0x148], 0
mov dword [esi + 0x14c], 0
cmp edx, 0xc
jne 0x10034e55
mov eax, dword [ebp + 8]
movq xmm0, qword [eax]
movq qword [edi], xmm0
mov eax, dword [eax + 8]
mov dword [edi + 8], eax
mov byte [esi + 0x16f], 1
jmp 0x10034f3a
mov ecx, edx
movaps xmmword [esp + 0x20], xmm0
and ecx, 0x1fffffff
mov eax, ecx
shr eax, 0x15
mov byte [esp + 0x2c], al
mov eax, ecx
shr eax, 0xd
mov byte [esp + 0x2d], al
mov al, dl
shr ecx, 5
shl al, 3
mov byte [esp + 0x2f], al
mov eax, dword [ebp + 8]
mov byte [esp + 0x2e], cl
nop word [eax + eax]
mov edi, 0x10
cmp edx, edi
cmovb edi, edx
mov dword [esp + 0x18], edi
test edi, edi
je 0x10034ec3
mov edx, eax
lea ecx, [esi + 0x160]
nop word [eax + eax]
mov al, byte [edx]
lea edx, [edx + 1]
xor byte [ecx], al
lea ecx, [ecx + 1]
sub edi, 1
jne 0x10034eb0
mov edi, dword [esp + 0x18]
lea eax, [esi + 0x160]
mov ecx, esi
push eax
mov edx, eax
call fcn.10034c00
mov edx, dword [ebp + 0xc]
add esp, 4
mov eax, dword [ebp + 8]
sub edx, edi
add eax, edi
mov dword [ebp + 0xc], edx
mov dword [ebp + 8], eax
test edx, edx
jne 0x10034e90
lea edx, [esp + 0x21]
mov edi, 4
lea ecx, [esi + 0x161]
nop dword [eax]
movzx eax, byte [edx - 1]
lea edx, [edx + 4]
xor byte [ecx - 1], al
lea ecx, [ecx + 4]
movzx eax, byte [edx - 4]
xor byte [ecx - 4], al
movzx eax, byte [edx - 3]
xor byte [ecx - 3], al
movzx eax, byte [edx - 2]
xor byte [ecx - 2], al
sub edi, 1
jne 0x10034f00
lea edi, [esi + 0x160]
mov ecx, esi
push edi
mov edx, edi
call fcn.10034c00
add esp, 4
mov ecx, dword [esi]
lea eax, [esi + 0x150]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0x10
test ecx, ecx
je 0x10035318
cmp dword [ecx + 4], 1
mov edx, dword [ecx + 0x18]
mov dword [esp + 8], edx
jne 0x10034f9a
cmp edx, 0x10
je 0x10034f73
mov eax, 0xffff9d80
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx + 0x1c]
lea ecx, [esi + 0x150]
push ecx
push edi
push dword [esi + 8]
mov eax, dword [eax + 4]
push dword [esi + 0x3c]
call eax
add esp, 0x10
test eax, eax
je 0x10035288
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [ecx + 4], 6
jne 0x10034fb1
mov ecx, dword [esi + 0x3c]
mov edx, 0x10
push eax
push edi
call fcn.10035330
jmp 0x10034fc5
cmp dword [ecx], 0x49
jne 0x10034fd6
mov ecx, dword [esi + 0x3c]
mov edx, 0x10
push eax
push edi
call fcn.10033ff0
add esp, 8
test eax, eax
je 0x10035288
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test edx, edx
jne 0x10034fe5
mov eax, 0xffff9c80
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp edi, eax
jne 0x1003500c
cmp dword [esi + 0x24], 0
jne 0x10035318
xor edx, edx
mov eax, 0x10
div dword [esp + 8]
test edx, edx
jne 0x10035318
lea eax, [esi + 0x150]
cmp dword [ecx + 4], 2
lea edx, [esi + 0x24]
jne 0x100351a5
mov eax, dword [esi + 8]
test eax, eax
jne 0x100350ea
cmp dword [esi + 0xc], 0
mov ecx, edx
mov eax, dword [edx]
mov dword [esp + 0xc], eax
je 0x100350d8
mov edx, dword [esp + 8]
mov eax, edx
sub eax, dword [esp + 0xc]
cmp eax, 0x10
jae 0x10035112
lea ecx, [esi + 0x24]
mov dword [esp + 0x10], ecx
mov eax, dword [ecx]
test eax, eax
je 0x10035126
sub edx, eax
add eax, 0x14
push edx
add eax, esi
mov dword [esp + 0x18], edx
push edi
push eax
call fcn.10047450
mov eax, dword [esi]
lea ecx, [esi + 0x150]
add esp, 0xc
lea edx, [esi + 0x14]
mov eax, dword [eax + 0x1c]
push ecx
push edx
lea ecx, [esi + 0x28]
mov eax, dword [eax + 8]
push ecx
push dword [esp + 0x14]
push dword [esi + 8]
push dword [esi + 0x3c]
call eax
add esp, 0x18
test eax, eax
jne 0x10035328
mov ecx, dword [esp + 8]
lea eax, [esi + 0x150]
add edi, dword [esp + 0x14]
add eax, ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
mov dword [eax], 0
mov eax, 0x10
sub eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
je 0x10035288
lea eax, [esi + 0x24]
mov dword [esp + 0x10], eax
jmp 0x1003512a
mov eax, dword [esp + 8]
mov edx, ecx
sub eax, dword [esp + 0xc]
cmp eax, 0x10
ja 0x10035112
mov eax, dword [esi + 8]
mov ecx, edx
mov edx, dword [esp + 8]
mov dword [esp + 0x10], ecx
cmp eax, 1
jne 0x10035050
mov eax, dword [ecx]
mov dword [esp + 0xc], eax
mov eax, edx
sub eax, dword [esp + 0xc]
cmp eax, 0x10
jbe 0x10035050
movups xmm0, xmmword [edi]
mov eax, dword [esp + 0xc]
movups xmmword [eax + esi + 0x14], xmm0
add dword [ecx], 0x10
jmp 0x10035288
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0x14]
xor edx, edx
div ecx
mov ecx, edx
mov dword [esp + 0xc], ecx
test ecx, ecx
jne 0x1003514d
cmp dword [esi + 8], edx
jne 0x1003514d
cmp dword [esi + 0xc], edx
cmovne ecx, dword [esp + 8]
mov dword [esp + 0xc], ecx
mov eax, edi
sub eax, ecx
add eax, dword [esp + 0x14]
push ecx
push eax
lea eax, [esi + 0x14]
push eax
call fcn.10047450
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
add dword [eax], ecx
sub edx, ecx
je 0x10035288
mov ecx, dword [esp + 0x18]
mov eax, dword [esi]
push ecx
push edi
lea ecx, [esi + 0x28]
mov eax, dword [eax + 0x1c]
push ecx
push edx
push dword [esi + 8]
mov eax, dword [eax + 8]
push dword [esi + 0x3c]
call eax
add esp, 0x18
test eax, eax
je 0x10035288
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [ecx + 4], 3
jne 0x100351d3
mov ecx, dword [ecx + 0x1c]
push eax
push edi
lea eax, [esi + 0x28]
push eax
mov eax, dword [ecx + 0xc]
push edx
push 0x10
push dword [esi + 8]
push dword [esi + 0x3c]
call eax
add esp, 0x1c
test eax, eax
je 0x10035288
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [ecx + 4], 4
jne 0x100351fe
mov ecx, dword [ecx + 0x1c]
push eax
push edi
lea eax, [esi + 0x28]
push eax
mov eax, dword [ecx + 0x10]
push edx
push 0x10
push dword [esi + 0x3c]
call eax
add esp, 0x18
test eax, eax
je 0x10035288
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [ecx + 4], 5
jne 0x10035229
mov ecx, dword [ecx + 0x1c]
push eax
push edi
lea eax, [esi + 0x14]
push eax
lea eax, [esi + 0x28]
push eax
mov eax, dword [ecx + 0x14]
push edx
push 0x10
push dword [esi + 0x3c]
call eax
add esp, 0x1c
test eax, eax
je 0x10035288
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [ecx + 4], 9
jne 0x10035262
cmp dword [edx], 0
jbe 0x1003523f
mov eax, 0xffff9f80
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ecx + 0x1c]
push eax
push edi
lea eax, [esi + 0x28]
push eax
mov eax, dword [ecx + 0x18]
push 0x10
push dword [esi + 8]
push dword [esi + 0x3c]
call eax
add esp, 0x18
test eax, eax
je 0x10035288
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [ecx + 4], 7
jne 0x10035234
mov eax, dword [ecx + 0x1c]
lea ecx, [esi + 0x150]
push ecx
push edi
push 0x10
push dword [esi + 0x3c]
mov eax, dword [eax + 0x1c]
call eax
add esp, 0x10
test eax, eax
jne 0x10035328
mov ecx, dword [ebp + 0x10]
lea edx, [esi + 0x170]
mov dword [esi + 0x148], 0xd
mov eax, 0xd
mov dword [esi + 0x14c], 0
nop word [eax + eax]
mov edi, 0x10
cmp eax, edi
cmovb edi, eax
mov dword [esp + 0x18], edi
test edi, edi
je 0x100352e9
mov edx, ecx
lea eax, [esi + 0x170]
nop word [eax + eax]
mov cl, byte [edx]
lea edx, [edx + 1]
xor byte [eax], cl
lea eax, [eax + 1]
sub edi, 1
jne 0x100352d0
mov edi, dword [esp + 0x18]
lea edx, [esi + 0x170]
push edx
mov ecx, esi
call fcn.10034c00
mov eax, dword [esp + 0x20]
lea edx, [esi + 0x170]
mov ecx, dword [ebp + 0x10]
sub eax, edi
add ecx, edi
mov dword [esp + 0x20], eax
add esp, 4
mov dword [ebp + 0x10], ecx
test eax, eax
jne 0x100352b0
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0xffff9f00
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0xffffffec
pop edi
pop esi
mov esp, ebp
pop ebp
ret