Function at 0x76c5e8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffda0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
mov ebx, eax
je 0x76c9e6
mov eax, 0xdf6
call fcn.00771dbc
push eax
call fcn.0078e1dc
pop ecx
push 0x443291
call fcn.0078e1dc
pop ecx
xor edx, edx
or word [ebx + 0x3ee4], 0x40
mov eax, dword [ebx + 0x6614]
push edx
add eax, 7
xor edx, edx
push eax
mov eax, ebx
call fcn.00766c44
xor ecx, ecx
mov edx, 0x73
mov eax, ebx
call fcn.0076a8f8
push 0
push 0
mov edx, 2
mov eax, ebx
call fcn.00766c44
mov eax, ebx
call fcn.00766cfc
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
push dword [ebp - 8]
push dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0076c9f0
mov dword [ebp - 4], eax
lea esi, [ebx + 0x4c20]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea eax, [esi + 0xc30]
mov edx, 0x14
call fcn.0076a420
mov word [esi + 8], 0x8000
xor ecx, ecx
mov eax, ebx
mov dword [esi + 0x24], ecx
xor ecx, ecx
or word [ebx + 0x4c28], 0x4000
push 0
push 0x443297
push 0
xor edx, edx
call fcn.0076c234
push 0
push 0
xor edx, edx
mov eax, ebx
call fcn.00766c44
xor ecx, ecx
xor esi, esi
mov dword [ebp - 0x20], ecx
lea eax, [ebp - 0x1030]
mov edx, dword [ebp - 4]
shl edx, 9
call fcn.007670ec
push dword [ebp - 0x102c]
push 0
push dword [ebp - 0x1030]
call fcn.0079df38
mov dword [ebp - 0x24], 0xfffffff
add esp, 0xc
jmp 0x76c891
call fcn.0076f1e4
cmp dword [ebp - 8], 0
jne 0x76c735
cmp dword [ebp - 0xc], 0x200
jae 0x76c767
jmp 0x76c737
jge 0x76c767
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x1230]
mov edi, eax
mov eax, 0x200
sub eax, edi
add edx, edi
push eax
push 0
push edx
call fcn.0079df38
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
add esp, 0xc
jmp 0x76c777
sub dword [ebp - 0xc], 0x200
sbb dword [ebp - 8], 0
mov edi, 0x200
lea edx, [ebp - 0x1230]
mov ecx, edi
mov eax, ebx
call fcn.00766ad8
mov edx, dword [ebp - 0x20]
shl edx, 9
add edx, dword [ebp - 0x1030]
xor eax, eax
mov cl, byte [ebp + eax - 0x1230]
xor byte [edx + eax], cl
inc eax
cmp eax, 0x200
jl 0x76c794
lea edx, [ebp - 0x1230]
mov ecx, 0x200
or eax, 0xffffffff
call fcn.0076f610
mov byte [ebp + esi - 0x1024], al
inc esi
shr eax, 8
mov byte [ebp + esi - 0x1024], al
inc esi
cmp esi, 0x1000
jne 0x76c825
lea eax, [ebp - 0x1240]
mov edx, ebx
call fcn.00766420
push 0
push 0
mov edx, 2
mov eax, ebx
call fcn.00766c44
lea edx, [ebp - 0x1024]
mov ecx, esi
mov eax, ebx
call fcn.0076691c
lea edx, [ebp - 0x1024]
mov ecx, esi
mov eax, dword [ebp - 0x24]
call fcn.0076f610
mov dword [ebp - 0x24], eax
xor esi, esi
lea eax, [ebp - 0x1240]
mov edx, 2
call fcn.00766444
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
and eax, 0xff
xor edx, edx
cmp edx, 0
jne 0x76c879
cmp eax, 0
jne 0x76c879
mov ecx, dword [ebx + 0x13b8]
cmp byte [ecx + 0x20b4], 0
jne 0x76c879
push 0
push 0x200
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
call fcn.007a0bd8
push edx
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.0079c75c
push eax
push 0x44329a
call fcn.0078e1dc
add esp, 8
add dword [ebp - 0x1c], 1
adc dword [ebp - 0x18], 0
inc dword [ebp - 0x20]
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp - 4]
jb 0x76c891
xor ecx, ecx
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 8], 0
jne 0x76c8a3
cmp dword [ebp - 0xc], 0
ja 0x76c71f
jmp 0x76c8a9
jg 0x76c71f
push 0
push 0
mov edx, 2
mov eax, ebx
call fcn.00766c44
lea edx, [ebp - 0x1024]
mov ecx, esi
mov eax, ebx
call fcn.0076691c
lea edx, [ebp - 0x1024]
mov ecx, esi
mov eax, dword [ebp - 0x24]
call fcn.0076f610
mov dword [ebp - 0x24], eax
mov eax, ebx
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x1030]
shl ecx, 9
call fcn.0076691c
mov ecx, dword [ebp - 4]
shl ecx, 9
mov edx, dword [ebp - 0x1030]
mov eax, dword [ebp - 0x24]
call fcn.0076f610
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
not eax
mov dword [ebx + 0x4c38], eax
mov eax, ebx
push dword [ebp - 0x10]
push dword [ebp - 0x14]
xor edx, edx
call fcn.00766c44
lea eax, [ebp - 0x1260]
xor edx, edx
call fcn.0077a4ec
mov edx, 0x4432a4
lea eax, [ebp - 0x1260]
mov ecx, 8
call fcn.0077a698
lea eax, [ebp - 0x1260]
mov edx, dword [ebp - 4]
call fcn.0077a620
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
lea eax, [ebp - 0x1260]
call fcn.0077a670
lea edx, [ebx + 0x5850]
lea eax, [ebp - 0x1260]
call fcn.0077a768
push 0
push 0x443297
push 0
push 0
push 2
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
call fcn.007a0bd8
mov ecx, eax
mov edx, dword [ebp - 4]
shl edx, 9
add ecx, edx
xor edx, edx
mov eax, ebx
call fcn.0076c234
push 0
push 0
mov edx, 2
mov eax, ebx
call fcn.00766c44
mov ecx, dword [ebx + 0x13b8]
cmp byte [ecx + 0x20b4], 0
jne 0x76c9c6
push 0x4432ad
call fcn.0078e1dc
pop ecx
lea eax, [ebp - 0x1260]
mov edx, 2
call fcn.0077a520
lea eax, [ebp - 0x1030]
mov edx, 2
call fcn.00764658
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret