Function at 0x7d3e60
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [esp + 0x64]
mov esi, dword [esp + 0x58]
mov dword [eax], 0
mov dword [esp], esi
call fcn.007b7ca0
mov ebp, eax
test ebp, ebp
jne 0x7d424e
mov ecx, dword [esp + 0x54]
mov ebx, dword [esp + 0x48]
mov eax, ecx
shr eax, 3
and ecx, 7
cmp ecx, 1
sbb eax, 0xffffffff
mov ebp, 0x20012
cmp eax, ebx
jne 0x7d424e
imul ecx, esi, 0x64
mov esi, dword [ecx + 0x818d34]
lea ecx, [esi + esi]
add eax, 0xfffffffe
cmp ecx, eax
jae 0x7d424e
mov dword [esp], ebx
call fcn.00492770
mov edi, eax
mov dword [esp], ebx
call fcn.00492770
mov ebp, eax
mov dword [esp], esi
call fcn.00492770
mov edx, eax
test edi, edi
je 0x7d4138
test ebp, ebp
je 0x7d4138
test edx, edx
je 0x7d4138
mov dword [esp + 0x28], ebp
mov ebp, dword [esp + 0x44]
cmp byte [ebp], 0
jne 0x7d4230
lea eax, [ebp + 1]
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], edx
mov dword [esp + 0x24], edx
call fcn.007c51d0
sub ebx, esi
dec ebx
lea eax, [esi + ebp + 1]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.007c51d0
mov eax, dword [esp + 0x48]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov eax, dword [esp + 0x58]
mov dword [esp], eax
call fcn.007bb100
mov edx, dword [esp + 0x24]
mov ebp, eax
test ebp, ebp
jne 0x7d4232
mov dword [esp + 0x1c], ebx
test esi, esi
mov dword [esp + 0x20], esi
je 0x7d4019
xor ecx, ecx
mov edx, dword [esp + 0x20]
cmp edx, 0x20
jb 0x7d3ff4
mov eax, edx
and eax, 0xffffffe0
mov esi, edx
je 0x7d3ff4
mov edx, dword [esp + 0x28]
lea edx, [edx + esi - 1]
cmp dword [esp + 0x24], edx
ja 0x7d3fb1
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
lea edx, [edx + esi - 1]
cmp dword [esp + 0x28], edx
jbe 0x7d3ff4
mov ecx, dword [esp + 0x28]
lea ecx, [ecx + 0x10]
mov edx, dword [esp + 0x24]
lea edx, [edx + 0x10]
mov ebp, dword [esp + 0x20]
and ebp, 0xffffffe0
movups xmm0, xmmword [ecx - 0x10]
movups xmm1, xmmword [ecx]
movups xmm2, xmmword [edx - 0x10]
movups xmm3, xmmword [edx]
xorps xmm2, xmm0
xorps xmm3, xmm1
movups xmmword [edx - 0x10], xmm2
movups xmmword [edx], xmm3
add ecx, 0x20
add edx, 0x20
add ebp, 0xffffffe0
jne 0x7d3fc6
cmp dword [esp + 0x20], eax
mov ecx, eax
je 0x7d4019
mov eax, dword [esp + 0x28]
lea eax, [eax + ecx]
mov edx, dword [esp + 0x24]
add edx, ecx
mov ebp, dword [esp + 0x20]
sub ebp, ecx
nop word [eax + eax]
mov cl, byte [eax]
xor byte [edx], cl
inc eax
inc edx
dec ebp
jne 0x7d4010
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 8], eax
mov ebp, dword [esp + 0x24]
mov dword [esp + 4], ebp
mov esi, dword [esp + 0x58]
mov dword [esp], esi
call fcn.007bb100
mov edx, ebp
mov ebp, eax
test ebp, ebp
jne 0x7d4232
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x4c]
test ebx, ebx
je 0x7d40fc
mov eax, dword [esp + 0x48]
lea ecx, [eax - 1]
mov ebx, ecx
mov edx, dword [esp + 0x20]
sub ebx, edx
xor ebp, ebp
cmp ebx, 0x20
jb 0x7d40e0
mov dword [esp + 0x14], ebx
and ebx, 0xffffffe0
je 0x7d40e0
lea eax, [eax - 2]
sub eax, edx
mov edx, dword [esp + 0x28]
lea edx, [edx + eax]
cmp dword [esp + 0x18], edx
ja 0x7d409c
add eax, dword [esp + 0x18]
cmp dword [esp + 0x28], eax
jbe 0x7d40e0
mov eax, dword [esp + 0x28]
lea ebp, [eax + 0x10]
mov eax, dword [esp + 0x18]
lea eax, [eax + 0x10]
mov edx, dword [esp + 0x14]
and edx, 0xffffffe0
movups xmm0, xmmword [ebp - 0x10]
movups xmm1, xmmword [ebp]
movups xmm2, xmmword [eax - 0x10]
movups xmm3, xmmword [eax]
xorps xmm2, xmm0
xorps xmm3, xmm1
movups xmmword [eax - 0x10], xmm2
movups xmmword [eax], xmm3
add ebp, 0x20
add eax, 0x20
add edx, 0xffffffe0
jne 0x7d40b1
cmp dword [esp + 0x14], ebx
mov ebp, ebx
je 0x7d40fc
mov eax, dword [esp + 0x28]
add eax, ebp
mov edx, dword [esp + 0x18]
lea edx, [edx + ebp]
sub ecx, ebp
sub ecx, dword [esp + 0x20]
mov bl, byte [eax]
xor byte [edx], bl
inc eax
inc edx
dec ecx
jne 0x7d40f3
mov eax, dword [esp + 0x48]
mov dword [esp + 0x2c], eax
test edi, edi
je 0x7d4167
mov eax, dword [esp + 0x50]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x10], ecx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.007b4040
mov edx, ebx
mov ebp, eax
test ebp, ebp
mov edi, dword [esp + 0x18]
jmp 0x7d4195
mov esi, edx
test edi, edi
je 0x7d4146
mov dword [esp], edi
call fcn.004936c0
test ebp, ebp
je 0x7d4152
mov dword [esp], ebp
call fcn.004936c0
mov ebp, 0xc
test esi, esi
je 0x7d424e
mov dword [esp], esi
jmp 0x7d4249
lea eax, [esp + 0x2c]
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x24]
mov dword [esp + 0xc], ebp
mov edi, dword [esp + 0x18]
mov dword [esp + 4], edi
mov dword [esp], esi
mov dword [esp + 8], 0
call fcn.007b4040
mov edx, ebp
mov ebp, eax
test ebp, ebp
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
jne 0x7d4232
mov ebp, eax
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], edx
mov esi, edx
call fcn.007c7b90
test eax, eax
je 0x7d41c1
xor ebp, ebp
mov edx, esi
jmp 0x7d4232
mov dword [esp + 0x2c], ebx
mov eax, ebp
mov edx, esi
jmp 0x7d41d0
inc ebx
mov dword [esp + 0x2c], ebx
cmp ebx, eax
jae 0x7d41da
cmp byte [edi + ebx], 0
je 0x7d41cb
mov ebp, 0x20005
cmp ebx, eax
je 0x7d4232
mov esi, eax
movzx eax, byte [edi + ebx]
cmp eax, 1
jne 0x7d4232
mov ecx, dword [esp + 0x60]
inc ebx
mov dword [esp + 0x2c], ebx
mov eax, esi
sub eax, ebx
cmp eax, dword [ecx]
mov dword [ecx], eax
mov ebp, 0x20004
ja 0x7d4232
mov ecx, dword [esp + 0x5c]
mov ebp, edx
mov edx, edi
add edx, ebx
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp], ecx
call fcn.007c51d0
mov edx, ebp
add dword [esp + 0x2c], esi
mov eax, dword [esp + 0x64]
mov dword [eax], 1
xor ebp, ebp
mov dword [esp], edx
call fcn.004936c0
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call fcn.004936c0
mov dword [esp], edi
call fcn.004936c0
mov eax, ebp
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret