Function at 0x4869d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov ecx, dword [esp + 0x24]
mov dword [esp], 0
cmp dword [esp + 0x20], 0
sete dl
test ecx, ecx
sete dh
xor eax, eax
or dh, dl
jne 0x486caa
mov ebp, dword [esp + 0x34]
mov eax, dword [esp + 0x28]
xor ebx, ebx
cmp byte [eax], 0x68
jne 0x486a21
cmp byte [eax + 1], 0x65
mov edx, 0
jne 0x486a23
xor ebx, ebx
cmp byte [eax + 2], 0x78
sete bl
lea edx, [ebx + ebx*2]
jmp 0x486a23
xor edx, edx
add eax, edx
push eax
push ecx
call fcn.003515f0
add esp, 8
mov esi, eax
test ebp, ebp
je 0x486a3f
xor eax, eax
test esi, esi
setne al
mov dword [ebp], eax
test esi, esi
je 0x486c9d
mov edi, dword [esp + 0x2c]
mov edx, dword [esi + 4]
lea ecx, [edx - 1]
cmp ecx, 2
jb 0x486a86
cmp edx, 4
je 0x486a9f
xor eax, eax
cmp edx, 5
jne 0x486bf3
test ebx, ebx
je 0x486b2b
push edi
call fcn.004f8b98
add esp, 4
test al, 1
jne 0x486b34
shr eax, 1
jmp 0x486bf3
mov eax, esp
test ebx, ebx
je 0x486ac8
push edi
push eax
call fcn.0041d280
add esp, 8
test eax, eax
jne 0x486ada
jmp 0x486c9d
test ebx, ebx
je 0x486b1c
call fcn.00327120
push 0x82080c
push 0x6f
push 0x8207f2
call fcn.00327220
add esp, 0xc
push 0
push 0x80106
jmp 0x486bd8
push edi
push eax
call fcn.0041d5c0
add esp, 8
test eax, eax
je 0x486c9d
mov ecx, dword [esp]
test ecx, ecx
je 0x486c9d
mov eax, dword [esi + 4]
cmp eax, 2
jne 0x486b5c
push ecx
call fcn.002fad20
add esp, 4
test eax, eax
je 0x486b56
call fcn.00327120
push 0x82080c
push 0x3b
push 0x8207f2
call fcn.00327220
add esp, 0xc
push 0
push 0x7a
jmp 0x486bd8
push edi
call fcn.004f8b98
add esp, 4
inc eax
jmp 0x486bf3
mov eax, dword [esp + 0x30]
jmp 0x486bf3
call fcn.00327120
push 0x82080c
push 0x79
push 0x8207f2
call fcn.00327220
add esp, 0xc
push 0
push 0x67
jmp 0x486bd8
mov eax, dword [esi + 4]
mov ecx, dword [esp]
cmp eax, 1
jne 0x486b87
push ecx
call fcn.002fad20
add esp, 4
mov ecx, dword [esp]
test eax, eax
je 0x486b87
push 1
push ecx
call fcn.002ff630
add esp, 8
test eax, eax
je 0x486c9d
mov ecx, dword [esp]
push ecx
call fcn.002f9790
add esp, 4
mov ebp, eax
mov edx, dword [esi + 4]
mov edi, dword [esi + 0xc]
xor edx, 1
and eax, 7
lea ecx, [ebp + 8]
or eax, edx
cmovne ecx, ebp
test edi, edi
je 0x486be7
mov eax, edi
lea edx, [edi*8]
cmp ecx, edx
mov edi, dword [esp + 0x2c]
jbe 0x486bf3
call fcn.00327120
push 0x82080c
push 0x65
push 0x8207f2
call fcn.00327220
add esp, 0xc
push 0
push 0x74
push 0xf
call fcn.00327310
add esp, 0xc
jmp 0x486c9d
add ecx, 7
shr ecx, 3
mov eax, ecx
mov edi, dword [esp + 0x2c]
cmp eax, 1
mov ecx, eax
adc ecx, 0
push 0xdb
push 0x8207f2
push ecx
mov ebp, eax
call fcn.0034ca40
add esp, 0xc
test eax, eax
je 0x486c9d
test ebp, ebp
je 0x486cb2
mov dword [esp + 4], ebp
mov ecx, dword [esi + 4]
lea edx, [ecx - 1]
cmp edx, 2
jb 0x486cb9
cmp ecx, 4
mov edx, dword [esp + 4]
je 0x486d39
cmp ecx, 5
jne 0x486d31
test ebx, ebx
je 0x486d4d
mov dword [esp + 8], 0
lea ecx, [esp + 8]
push 0x3a
push edi
push ecx
push edx
push eax
mov ebx, eax
mov ebp, edx
call fcn.0034e960
add esp, 0x14
mov ecx, eax
mov eax, ebx
test ecx, ecx
jne 0x486dab
push dword [esp]
mov esi, eax
call fcn.002f99b0
add esp, 4
push 0xe2
push 0x8207f2
push esi
call fcn.0034cbc0
add esp, 0xc
jmp 0x486ca8
push dword [esp]
call fcn.002f99b0
add esp, 4
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebp, ebp
jmp 0x486dab
mov ebp, dword [esp]
push dword [esp + 4]
mov ebx, eax
push eax
push ebp
call fcn.002fa530
add esp, 0xc
cmp dword [esi + 4], 1
jne 0x486d35
push ebp
call fcn.002fad20
add esp, 4
test eax, eax
je 0x486d35
mov ebp, dword [esp + 4]
mov edx, ebp
mov eax, ebx
cmp ebp, 8
jb 0x486d9d
xor ecx, ecx
cmp ebp, 0x20
mov edx, ebp
jb 0x486d65
mov ecx, edx
and ecx, 0xffffffe0
xor edx, edx
pcmpeqd xmm0, xmm0
movdqu xmm1, xmmword [eax + edx]
movdqu xmm2, xmmword [eax + edx + 0x10]
pxor xmm1, xmm0
pxor xmm2, xmm0
movdqu xmmword [eax + edx], xmm1
movdqu xmmword [eax + edx + 0x10], xmm2
add edx, 0x20
cmp ecx, edx
jne 0x486d04
mov edx, dword [esp + 4]
cmp edx, ecx
jne 0x486d60
mov ebp, edx
jmp 0x486dab
mov eax, ebx
jmp 0x486da7
push edx
push edi
push eax
mov ebx, eax
mov ebp, edx
call fcn.004f8bb0
mov eax, ebx
add esp, 0xc
dec ebp
jmp 0x486dab
push edx
push edi
push eax
mov ebx, eax
mov ebp, edx
call fcn.004f8d80
mov eax, ebx
add esp, 0xc
jmp 0x486dab
test dl, 0x18
je 0x486d96
mov ebp, edx
and ebp, 0xfffffff8
and edx, 7
mov ebx, eax
mov edi, ebp
add ebx, ebp
pcmpeqd xmm0, xmm0
movq xmm1, qword [eax + ecx]
pxor xmm1, xmm0
movq qword [eax + ecx], xmm1
add ecx, 8
cmp edi, ecx
jne 0x486d77
mov ebp, dword [esp + 4]
cmp ebp, edi
jne 0x486d9d
jmp 0x486dab
mov ebx, eax
add ebx, ecx
and edx, 0x1f
xor ecx, ecx
not byte [ebx + ecx]
inc ecx
cmp edx, ecx
jne 0x486d9f
mov ebp, dword [esp + 4]
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov esi, dword [esp + 0x20]
mov dword [esi + 4], edx
mov dword [esi], ecx
mov dword [esi + 8], eax
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], 0xffffffff
push dword [esp]
call fcn.002f99b0
add esp, 4
mov eax, 1
jmp 0x486caa