Function at 0x5d2600
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
test dword [esp], esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
mov eax, 0x348
call fcn.006bfd90
mov eax, dword [0x7f5314]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebx + 0x20], 0x100000
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x31c], eax
mov eax, dword [ebx + 0x14]
push esi
mov esi, dword [ebx + 0x10]
mov dword [ebp - 0x2e8], eax
mov eax, dword [ebx + 0x18]
push edi
mov dword [ebp - 0x2d8], eax
mov edi, 0x40
mov eax, dword [ebx + 0x24]
mov dword [ebp - 0x318], ecx
mov dword [ebp - 0x320], esi
mov dword [ebp - 0x2fc], eax
mov dword [ebp - 0x2dc], edi
mov dword [ebp - 0x300], 0x28
mov dword [ebp - 0x2c0], 8
mov byte [ebp - 0x2b1], 1
jae 0x5d2ef6
push ecx
call fcn.005e0860
push eax
call fcn.0053e190
add esp, 8
cmp eax, 0x2a0
jg 0x5d277d
je 0x5d2745
cmp eax, 4
je 0x5d26fb
cmp eax, edi
jne 0x5d278e
lea eax, [ebp - 0x2b0]
push eax
call fcn.0060b330
add esp, 4
test eax, eax
jle 0x5d2ef6
mov dword [ebp - 0x2d0], 0x5d3090
lea eax, [edi - 0x2c]
mov dword [ebp - 0x2bc], 0x60b370
lea ecx, [edi - 0x38]
jmp 0x5d2837
lea eax, [ebp - 0x2b0]
push eax
call fcn.0060c6f0
add esp, 4
test eax, eax
jle 0x5d2ef6
mov eax, 0x10
mov dword [ebp - 0x2d0], 0x5d3010
mov edx, 0x30
mov dword [ebp - 0x2bc], 0x60c730
mov dword [ebp - 0x300], edx
mov byte [ebp - 0x2b1], 0
lea ecx, [eax - 8]
jmp 0x5d283c
lea eax, [ebp - 0x2b0]
push eax
call fcn.0060b7d0
add esp, 4
test eax, eax
jle 0x5d2ef6
mov eax, 0x20
mov dword [ebp - 0x2d0], 0x5d3130
mov dword [ebp - 0x2bc], 0x60b830
lea ecx, [eax - 0x18]
jmp 0x5d2837
sub eax, 0x2a1
je 0x5d27f1
sub eax, 1
je 0x5d27d6
sub eax, 1
je 0x5d27a1
test esi, esi
je 0x5d2ef6
mov dword [esi], 0
jmp 0x5d2ef6
lea eax, [ebp - 0x2b0]
push eax
call fcn.0060b480
add esp, 4
test eax, eax
jle 0x5d2ef6
mov eax, 0x1c
mov dword [ebp - 0x2d0], 0x5d3130
mov dword [ebp - 0x2bc], 0x60b830
lea ecx, [eax - 0x14]
jmp 0x5d2837
lea eax, [ebp - 0x2b0]
push eax
call fcn.0060c2b0
add esp, 4
test eax, eax
jle 0x5d2ef6
mov eax, edi
jmp 0x5d280d
lea eax, [ebp - 0x2b0]
push eax
call fcn.0060b940
add esp, 4
test eax, eax
jle 0x5d2ef6
mov eax, 0x30
mov ecx, 0x10
mov dword [ebp - 0x2bc], 0x60c360
mov edi, 0x80
mov dword [ebp - 0x2c0], ecx
mov dword [ebp - 0x2dc], edi
mov dword [ebp - 0x2d0], 0x5d3220
mov edx, 0x28
cmp byte [ebx + 0x2c], 0
mov esi, 0xd
mov dword [ebp - 0x2c4], eax
mov dword [ebp - 0x2f8], esi
je 0x5d286d
mov esi, dword [ebx + 0x28]
add esi, 0xb
mov dword [ebp - 0x2cc], 2
add esi, edx
mov dword [ebp - 0x2f8], esi
jmp 0x5d287f
add eax, 0xff
xor edx, edx
add eax, edi
div edi
inc eax
mov dword [ebp - 0x2cc], eax
sub esi, dword [ebp - 0x2c4]
xor edx, edx
mov eax, dword [ebx + 0x20]
add ecx, esi
dec eax
add ecx, edi
add eax, ecx
xor ecx, ecx
div edi
xor edx, edx
xor edi, edi
mov dword [ebp - 0x2f4], eax
mov eax, dword [ebx + 0x1c]
add eax, esi
mov dword [ebp - 0x2ec], edx
mov esi, dword [ebp - 0x2dc]
mov dword [ebp - 0x2b8], eax
div esi
mov dword [ebp - 0x2d4], edi
mov dword [ebp - 0x328], eax
mov eax, dword [ebp - 0x2b8]
add eax, dword [ebp - 0x2c0]
mov dword [ebp - 0x2e4], edx
xor edx, edx
div esi
cmp byte [ebx + 0x2c], cl
mov edx, dword [ebp - 0x2f4]
setne cl
mov dword [ebp - 0x32c], eax
mov eax, dword [ebp - 0x2cc]
add ecx, eax
cmp edx, ecx
jbe 0x5d290b
sub edx, eax
mov edi, edx
mov dword [ebp - 0x2ec], edx
imul edi, esi
mov dword [ebp - 0x2d4], edi
mov eax, dword [ebp - 0x2b8]
shl eax, 3
cmp byte [ebx + 0x2c], 0
mov dword [ebp - 0x2b8], eax
jne 0x5d29b6
lea eax, [eax + esi*8]
push esi
mov dword [ebp - 0x2b8], eax
lea eax, [ebp - 0xd8]
push 0
push eax
call fcn.006c2360
mov eax, dword [ebx + 0x28]
add esp, 0xc
cmp eax, 0x80
ja 0x5d2ef6
push eax
push dword [ebp - 0x2fc]
lea eax, [ebp - 0xd8]
push eax
call fcn.006c1de0
movaps xmm1, xmmword [str.6666666666666666jjjjjjjjjjjjjjjjSRTP_AES128_CM_SHA1_80]
add esp, 0xc
xor eax, eax
nop dword [eax]
movups xmm0, xmmword [ebp + eax - 0xd8]
pxor xmm0, xmm1
movups xmmword [ebp + eax - 0xd8], xmm0
movups xmm0, xmmword [ebp + eax - 0xc8]
pxor xmm0, xmm1
movups xmmword [ebp + eax - 0xc8], xmm0
add eax, 0x20
cmp eax, esi
jb 0x5d2970
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0x2b0]
push eax
call dword [ebp - 0x2bc]
add esp, 8
cmp byte [ebp - 0x2b1], 0
je 0x5d2a04
mov eax, dword [ebp - 0x2c0]
add eax, 0xfffffffc
push eax
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.006c2360
mov ecx, dword [ebp - 0x2b8]
add esp, 0xc
mov edx, dword [ebp - 0x2c0]
mov eax, ecx
shr eax, 0x18
mov byte [ebp + edx - 0x18], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp + edx - 0x17], al
mov eax, ecx
shr eax, 8
mov byte [ebp + edx - 0x16], al
mov byte [ebp + edx - 0x15], cl
jmp 0x5d2a43
push dword [ebp - 0x2c0]
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.006c2360
mov ecx, dword [ebp - 0x2b8]
add esp, 0xc
mov edx, dword [ebp - 0x2c0]
mov eax, ecx
shr eax, 0x18
mov byte [ebp + edx - 0x19], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp + edx - 0x1a], al
mov eax, ecx
shr eax, 8
mov byte [ebp + edx - 0x1b], al
mov byte [ebp + edx - 0x1c], cl
test edi, edi
je 0x5d2ba5
cmp byte [ebx + 0x2c], 0
je 0x5d2b17
mov eax, dword [ebp - 0x2f8]
cmp eax, esi
jbe 0x5d2ef6
push dword [ebp - 0x2e8]
sub eax, esi
mov dword [ebp - 0x2b8], eax
lea eax, [ebp - 0x2b0]
push eax
call dword [ebp - 0x2bc]
push dword [ebp - 0x2b8]
mov eax, dword [ebp - 0x2e8]
add eax, esi
push eax
lea eax, [ebp - 0x158]
push eax
call fcn.006c1de0
mov eax, esi
sub eax, dword [ebp - 0x2b8]
push eax
push dword [ebp - 0x2d8]
lea eax, [ebp - 0x158]
add eax, dword [ebp - 0x2b8]
push eax
call fcn.006c1de0
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x2b0]
push eax
call dword [ebp - 0x2bc]
xor edx, edx
mov eax, edi
div esi
add esp, 0x28
dec eax
cmp eax, 1
jbe 0x5d2ba5
mov edi, dword [ebp - 0x2d8]
sub edi, dword [ebp - 0x2b8]
add edi, esi
dec eax
mov dword [ebp - 0x2b8], eax
lea eax, [ebp - 0x2b0]
push edi
push eax
call dword [ebp - 0x2bc]
add esp, 8
add edi, esi
sub dword [ebp - 0x2b8], 1
jne 0x5d2af6
jmp 0x5d2b9f
mov ecx, dword [ebp - 0x2e8]
mov eax, dword [ecx + 8]
movq xmm0, qword [ecx]
mov dword [ebp - 0x150], eax
mov al, byte [ecx + 0xc]
mov byte [ebp - 0x14c], al
lea eax, [esi - 0xd]
push eax
push dword [ebp - 0x2d8]
lea eax, [ebp - 0x14b]
movq qword [ebp - 0x158], xmm0
push eax
call fcn.006c1de0
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x2b0]
push eax
call dword [ebp - 0x2bc]
xor edx, edx
mov eax, edi
div esi
add esp, 0x14
cmp eax, 1
jbe 0x5d2ba5
lea edi, [esi - 0xd]
add edi, dword [ebp - 0x2d8]
dec eax
mov dword [ebp - 0x2b8], eax
lea eax, [ebp - 0x2b0]
push edi
push eax
call dword [ebp - 0x2bc]
add esp, 8
add edi, esi
sub dword [ebp - 0x2b8], 1
jne 0x5d2b83
mov edi, dword [ebp - 0x2d4]
push 0x40
lea eax, [ebp - 0x58]
push 0
push eax
call fcn.006c2360
mov eax, dword [ebp - 0x2cc]
add esp, 0xc
mov ecx, dword [ebp - 0x2ec]
add eax, ecx
mov dword [ebp - 0x314], eax
cmp ecx, eax
ja 0x5d2e5f
mov eax, dword [ebp - 0x2e4]
neg dword [ebp - 0x2e4]
lea edx, [eax + 1]
shr eax, 0x1f
mov dword [ebp - 0x304], eax
mov eax, edx
shr eax, 0x1f
mov dword [ebp - 0x308], edx
mov edx, esi
mov dword [ebp - 0x30c], eax
mov eax, dword [ebp - 0x2c0]
sub edx, eax
sub eax, esi
mov dword [ebp - 0x310], edx
lea eax, [ebp + eax - 0x14]
mov dword [ebp - 0x2f4], eax
mov eax, ecx
xor esi, esi
xor eax, dword [ebp - 0x328]
lea edx, [eax - 1]
not eax
shr eax, 0x1f
shr edx, 0x1f
and dl, al
mov eax, ecx
xor eax, dword [ebp - 0x32c]
neg dl
mov dword [ebp - 0x2d4], edx
lea ecx, [eax - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
and cl, al
neg cl
movsx eax, cl
mov dword [ebp - 0x2c0], ecx
not cl
or cl, dl
mov byte [ebp - 0x2c5], cl
mov ecx, dword [ebp - 0x2e4]
movd xmm0, eax
mov eax, dword [ebp - 0x2f4]
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm0, xmm0, 0
movaps xmmword [ebp - 0x340], xmm0
mov dword [ebp - 0x2b8], ecx
mov dword [ebp - 0x2cc], eax
nop
mov edx, dword [ebp - 0x2f8]
mov byte [ebp - 0x2b1], 0
cmp edi, edx
jae 0x5d2ca9
mov eax, dword [ebp - 0x2e8]
jmp 0x5d2cba
mov eax, dword [ebx + 0x20]
add eax, edx
cmp edi, eax
jae 0x5d2cc3
mov eax, dword [ebp - 0x2d8]
sub eax, edx
mov al, byte [eax + edi]
mov byte [ebp - 0x2b1], al
mov eax, dword [ebp - 0x304]
mov edx, esi
shr ecx, 0x1f
inc edi
xor cl, al
shr edx, 0x1f
xor al, dl
or cl, al
mov eax, dword [ebp - 0x2d4]
xor cl, dl
movzx eax, al
dec cl
movzx ecx, cl
and ecx, eax
mov dword [ebp - 0x2e0], ecx
not ecx
mov dword [ebp - 0x2f0], ecx
mov eax, dword [ebp - 0x2f0]
mov ecx, dword [ebp - 0x2e0]
and al, byte [ebp - 0x2b1]
and cl, 0x80
or cl, al
mov eax, dword [ebp - 0x30c]
mov dword [ebp - 0x2e0], ecx
mov ecx, esi
sub ecx, dword [ebp - 0x308]
shr ecx, 0x1f
xor cl, al
xor al, dl
or cl, al
xor cl, dl
mov edx, dword [ebp - 0x2e0]
dec cl
and cl, byte [ebp - 0x2d4]
not cl
and cl, byte [ebp - 0x2c5]
and dl, cl
cmp esi, dword [ebp - 0x310]
jb 0x5d2d7d
mov eax, dword [ebp - 0x2c0]
movzx eax, al
mov dword [ebp - 0x2e0], eax
not eax
mov dword [ebp - 0x2f0], eax
mov eax, dword [ebp - 0x2cc]
mov ecx, dword [ebp - 0x2e0]
and cl, byte [eax]
mov eax, dword [ebp - 0x2f0]
and dl, al
or dl, cl
mov ecx, dword [ebp - 0x2b8]
inc dword [ebp - 0x2cc]
inc ecx
mov byte [ebp + esi - 0x1d8], dl
inc esi
mov dword [ebp - 0x2b8], ecx
cmp esi, dword [ebp - 0x2dc]
jb 0x5d2c90
lea eax, [ebp - 0x1d8]
push eax
lea eax, [ebp - 0x2b0]
push eax
call dword [ebp - 0x2bc]
lea eax, [ebp - 0x1d8]
push eax
lea eax, [ebp - 0x2b0]
push eax
call dword [ebp - 0x2d0]
mov edx, dword [ebp - 0x2c4]
add esp, 0x10
xor eax, eax
cmp edx, 0x20
jb 0x5d2e2b
movaps xmm2, xmmword [ebp - 0x340]
mov ecx, edx
and ecx, 0xffffffe0
nop dword [eax + eax]
movups xmm0, xmmword [ebp + eax - 0x58]
movups xmm1, xmmword [ebp + eax - 0x1d8]
pand xmm1, xmm2
por xmm1, xmm0
movups xmmword [ebp + eax - 0x58], xmm1
movups xmm1, xmmword [ebp + eax - 0x1c8]
movups xmm0, xmmword [ebp + eax - 0x48]
pand xmm1, xmm2
por xmm1, xmm0
movups xmmword [ebp + eax - 0x48], xmm1
add eax, 0x20
cmp eax, ecx
jb 0x5d2df0
cmp eax, edx
jae 0x5d2e46
nop
mov cl, byte [ebp + eax - 0x1d8]
and cl, byte [ebp - 0x2c0]
or byte [ebp + eax - 0x58], cl
inc eax
cmp eax, edx
jb 0x5d2e30
mov ecx, dword [ebp - 0x2ec]
inc ecx
mov dword [ebp - 0x2ec], ecx
cmp ecx, dword [ebp - 0x314]
jbe 0x5d2c16
call fcn.005dc750
mov esi, eax
test esi, esi
je 0x5d2eed
push 0
push dword [ebp - 0x318]
call fcn.005e0860
add esp, 4
push eax
push esi
call fcn.005dc3b0
add esp, 0xc
test eax, eax
jle 0x5d2eed
cmp byte [ebx + 0x2c], 0
je 0x5d2f0b
mov edi, dword [ebp - 0x300]
lea eax, [ebp - 0xd8]
push edi
push 0x5c
push eax
call fcn.006c2360
push dword [ebx + 0x28]
push dword [ebp - 0x2fc]
push esi
call fcn.005dc540
add esp, 0x18
test eax, eax
jle 0x5d2eed
push edi
lea eax, [ebp - 0xd8]
push eax
push esi
call fcn.005dc540
add esp, 0xc
test eax, eax
jle 0x5d2eed
push dword [ebp - 0x2c4]
lea eax, [ebp - 0x58]
push eax
push esi
call fcn.005dc540
add esp, 0xc
test eax, eax
jg 0x5d2f7f
push esi
call fcn.005dc730
add esp, 4
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006c0fe0
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
movaps xmm1, xmmword [0x764710]
xor eax, eax
mov ecx, dword [ebp - 0x2dc]
nop word [eax + eax]
movups xmm0, xmmword [ebp + eax - 0xd8]
pxor xmm0, xmm1
movups xmmword [ebp + eax - 0xd8], xmm0
movups xmm0, xmmword [ebp + eax - 0xc8]
pxor xmm0, xmm1
movups xmmword [ebp + eax - 0xc8], xmm0
add eax, 0x20
cmp eax, ecx
jb 0x5d2f20
push ecx
lea eax, [ebp - 0xd8]
push eax
push esi
call fcn.005dc540
add esp, 0xc
test eax, eax
jle 0x5d2eed
push dword [ebp - 0x2c4]
lea eax, [ebp - 0x58]
push eax
push esi
call fcn.005dc540
add esp, 0xc
test eax, eax
jle 0x5d2eed
lea eax, [ebp - 0x324]
push eax
push dword [ebp - 0x31c]
push esi
call fcn.005dc250
add esp, 0xc
test eax, eax
je 0x5d2fab
mov ecx, dword [ebp - 0x320]
test ecx, ecx
je 0x5d2fab
mov eax, dword [ebp - 0x324]
mov dword [ecx], eax
push esi
call fcn.005dc730
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov eax, 1
pop edi
pop esi
call fcn.006c0fe0
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret