Function at 0x691880
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x68
call fcn.006d13f0
mov eax, dword [0x7c0ab4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x60], 0
call fcn.005f73f0
push edi
call fcn.005f7190
push edi
mov dword [ebp - 0x40], eax
call fcn.005f7190
push edi
mov dword [ebp - 0x38], eax
call fcn.005f7190
push edi
mov dword [ebp - 0x48], eax
call fcn.005f7190
mov edi, eax
add esp, 0x14
mov dword [ebp - 0x50], edi
test edi, edi
je 0x691cf5
push 6
lea eax, [ebp - 0x1c]
push eax
push ebx
call fcn.006925c0
add esp, 0xc
test eax, eax
je 0x691cda
cmp eax, 6
jg 0x691cda
lea eax, [ebp - 0x1c]
push eax
push esi
mov esi, dword [ebp - 0x48]
push esi
call fcn.00691420
add esp, 0xc
test eax, eax
je 0x691cf5
push esi
call fcn.005f67f0
add esp, 4
test eax, eax
jne 0x691cf5
push ebx
push edi
call fcn.005f6550
add esp, 8
test eax, eax
je 0x691cf5
push esi
call fcn.005f68c0
push edi
mov dword [ebp - 0x34], eax
call fcn.005f68c0
mov edi, dword [ebx + 4]
push edi
push esi
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x20], edi
call fcn.005f7070
add esp, 0x10
test eax, eax
je 0x691cf5
mov edx, dword [ebp - 0x48]
mov esi, dword [esi]
mov dword [ebp - 0x3c], esi
mov eax, dword [edx + 4]
cmp eax, edi
jge 0x691991
mov ecx, dword [ebp - 0x20]
lea edi, [esi + eax*4]
sub ecx, eax
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x20]
push edi
push dword [ebp - 0x40]
mov dword [edx + 4], edi
call fcn.005f7070
add esp, 8
test eax, eax
je 0x691cf5
mov edx, dword [ebp - 0x40]
mov ebx, dword [edx]
mov dword [ebp - 0x28], ebx
mov dword [ebx], 1
cmp edi, 1
jle 0x6919c8
lea ecx, [edi - 1]
xor eax, eax
lea edi, [ebx + 4]
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x20]
push edi
push dword [ebp - 0x38]
mov dword [edx + 4], edi
call fcn.005f7070
add esp, 8
test eax, eax
je 0x691cf5
mov eax, dword [ebp - 0x38]
mov edx, dword [eax]
mov dword [ebp - 0x2c], edx
test edi, edi
jle 0x6919f9
mov ecx, edi
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
mov dword [eax + 4], edi
mov eax, dword [ebp - 0x50]
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
test ecx, ecx
je 0x691ad4
nop
mov ebx, dword [esi]
test bl, 1
jne 0x691ace
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x5c]
mov eax, dword [eax]
mov edx, eax
mov ecx, dword [ecx]
and edx, 1
neg edx
mov dword [ebp - 0x58], edx
mov ecx, dword [ecx]
and ecx, edx
lea edx, [edi - 1]
xor eax, ecx
xor ecx, ecx
mov dword [ebp - 0x30], ecx
test edx, edx
jle 0x691ab0
mov ecx, dword [ebp - 0x28]
mov edx, esi
sub edx, ecx
mov dword [ebp - 0x44], edx
lea edi, [ecx + 4]
mov ecx, 0xfffffffc
sub ecx, dword [ebp - 0x28]
mov dword [ebp - 0x54], ecx
nop dword [eax]
mov edx, dword [edx + edi]
mov ecx, edx
shl ecx, 0x1f
shr ebx, 1
or ecx, ebx
shr eax, 1
mov ebx, dword [ebp - 0x30]
mov dword [esi + ebx*4], ecx
mov ebx, edx
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x54]
mov esi, dword [ebp - 0x3c]
add edx, edi
mov ecx, dword [ecx]
mov edx, dword [edx + ecx + 4]
and edx, dword [ebp - 0x58]
xor edx, dword [edi]
mov ecx, edx
shl ecx, 0x1f
or ecx, eax
mov eax, edx
mov edx, dword [ebp - 0x20]
mov dword [edi - 4], ecx
dec edx
mov ecx, dword [ebp - 0x30]
add edi, 4
inc ecx
cmp ecx, edx
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x44]
jl 0x691a60
mov edi, dword [ebp - 0x20]
shr ebx, 1
mov dword [esi + ecx*4], ebx
mov ebx, dword [ebp - 0x28]
shr eax, 1
mov dword [ebx + ecx*4], eax
mov ecx, dword [ebp - 0x34]
sub ecx, 1
mov dword [ebp - 0x34], ecx
jne 0x691a10
jmp 0x691ad1
mov ebx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
cmp ecx, 0x20
jg 0x691aec
mov eax, dword [esi]
test eax, eax
je 0x691cf5
cmp eax, 1
je 0x691cb4
cmp ecx, dword [ebp - 0x4c]
jge 0x691b2b
mov ebx, dword [ebp - 0x50]
mov eax, ecx
mov ecx, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x38]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x48], ebx
mov ebx, eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x40], esi
mov esi, dword [ebp - 0x24]
mov ebx, dword [ebx]
mov dword [ebp - 0x24], ebx
mov ebx, edx
mov edx, dword [eax]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], edx
xor edx, edx
test edi, edi
jle 0x691c62
cmp edi, 4
jb 0x691c17
mov ecx, dword [ebp - 0x2c]
lea eax, [edi - 1]
lea eax, [ebx + eax*4]
lea ecx, [ecx + edi*4]
add ecx, 0xfffffffc
cmp ebx, ecx
ja 0x691b5a
cmp eax, dword [ebp - 0x2c]
jae 0x691c17
lea ecx, [edi - 1]
lea ecx, [esi + ecx*4]
mov dword [ebp - 0x30], ecx
cmp ebx, ecx
ja 0x691b6f
cmp eax, esi
jae 0x691c17
mov ecx, dword [ebp - 0x24]
sub ecx, 4
lea edi, [ecx + edi*4]
cmp ebx, edi
ja 0x691b85
cmp eax, dword [ebp - 0x24]
jae 0x691c14
mov ebx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x2c]
dec ebx
lea eax, [ecx + ebx*4]
mov ebx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x30]
cmp esi, eax
ja 0x691b9e
cmp ecx, dword [ebp - 0x2c]
jae 0x691c14
cmp esi, edi
ja 0x691bad
mov eax, dword [ebp - 0x24]
cmp ecx, eax
jae 0x691cac
mov ecx, dword [ebp - 0x20]
mov eax, ecx
and eax, reloc.WS2_32.dll_closesocket
jns 0x691bbe
dec eax
or eax, 0xfffffffc
inc eax
mov ebx, dword [ebp - 0x2c]
sub ecx, eax
mov edi, dword [ebp - 0x24]
sub ebx, esi
mov dword [ebp - 0x44], ebx
sub edi, esi
mov ebx, dword [ebp - 0x28]
mov eax, esi
mov esi, dword [ebp - 0x3c]
mov dword [ebp - 0x30], ebx
sub dword [ebp - 0x30], esi
mov ebx, dword [ebp - 0x44]
mov esi, dword [ebp - 0x30]
movups xmm0, xmmword [eax]
add edx, 4
lea eax, [eax + 0x10]
movups xmm1, xmmword [edi + eax - 0x10]
pxor xmm1, xmm0
movups xmm0, xmmword [esi + eax - 0x10]
movups xmmword [eax - 0x10], xmm1
movups xmm1, xmmword [ebx + eax - 0x10]
pxor xmm1, xmm0
movups xmmword [esi + eax - 0x10], xmm1
cmp edx, ecx
jl 0x691be1
mov esi, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
cmp edx, edi
jge 0x691c5f
sub eax, esi
lea ecx, [esi + edx*4]
mov dword [ebp - 0x44], eax
sub ebx, esi
mov eax, dword [ebp - 0x2c]
sub eax, esi
mov dword [ebp - 0x54], ebx
mov ebx, dword [ebp - 0x44]
sub edi, edx
mov esi, dword [ebp - 0x54]
mov edx, eax
mov dword [ebp - 0x58], eax
nop dword [eax]
mov eax, dword [ecx + ebx]
lea ecx, [ecx + 4]
xor dword [ecx - 4], eax
mov eax, dword [ecx + edx - 4]
xor dword [ecx + esi - 4], eax
sub edi, 1
jne 0x691c40
mov esi, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x2c]
cmp ecx, dword [ebp - 0x4c]
jne 0x691a07
lea eax, [ecx - 1]
cdq
and edx, 0x1f
lea edi, [edx + eax]
sar edi, 5
mov eax, dword [esi + edi*4]
test eax, eax
jne 0x691c8f
test edi, edi
je 0x691c8f
mov eax, dword [esi + edi*4 - 4]
dec edi
test eax, eax
je 0x691c82
push eax
call fcn.005f6990
mov edx, dword [ebp - 0x2c]
add esp, 4
shl edi, 5
lea ecx, [edi + eax]
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x34], ecx
jmp 0x691a07
mov edi, dword [ebp - 0x20]
jmp 0x691c1a
mov ebx, dword [ebp - 0x40]
push ebx
call fcn.005f6f20
push ebx
push dword [ebp - 0x64]
call fcn.005f6550
xor ecx, ecx
add esp, 0xc
test eax, eax
mov edx, 1
cmovne ecx, edx
mov dword [ebp - 0x60], ecx
jmp 0x691cf5
push 0x18e
push str.....crypto_bn_bn_gf2m.c
push 0x6a
push 0x83
push 3
call fcn.005e34c0
add esp, 0x14
push dword [ebp - 0x68]
call fcn.005f7090
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, dword [ebp - 0x60]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.006d0856
mov esp, ebp
pop ebp
ret