Function at 0x78b5d8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x78b5e1
mov eax, dword [ebp - 4]
add esp, 0xfffffb24
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, 0xdea
call fcn.00771dbc
push eax
call fcn.0078e1dc
pop ecx
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0076ce04
test al, al
je 0x78b64e
mov edx, dword [ebp - 4]
cmp byte [edx + 0x660f], 0
jne 0x78b64e
push 0
push 0
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00766c44
mov eax, 0xdec
call fcn.00771dbc
push eax
call fcn.0078e1dc
pop ecx
xor eax, eax
jmp 0x78bfe7
lea eax, [ebp - 0x90]
mov edx, dword [ebp - 4]
call fcn.00766420
mov edx, 0x444074
mov eax, dword [ebp - 4]
call fcn.0076d48c
test eax, eax
je 0x78b6df
lea eax, [ebp - 0xac]
xor edx, edx
call fcn.0077168c
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [eax + 0x5850]
lea eax, [ebp - 0xac]
mov ecx, dword [ecx + 0x5854]
call fcn.0077174c
lea edx, [ebp - 0x20]
lea eax, [ebp - 0xac]
mov ecx, 8
call fcn.00771870
lea edx, [ebp - 0xc]
lea eax, [ebp - 0xac]
call fcn.007717d4
lea edx, [ebp - 0x14]
lea eax, [ebp - 0xac]
call fcn.00771828
mov byte [ebp - 0x15], 1
lea eax, [ebp - 0xac]
mov edx, 2
call fcn.00765cc0
jmp 0x78b9cf
mov ecx, dword [ebp - 4]
xor edx, edx
mov eax, dword [ecx + 0x6614]
push edx
push eax
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00766c44
mov edx, 0x78
mov eax, dword [ebp - 4]
call fcn.0076d434
test eax, eax
je 0x78b744
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov ax, word [ecx + 0x661a]
cmp ax, word [edx + 0x5938]
jne 0x78b744
mov ecx, dword [ebp - 4]
movzx eax, word [ecx + 0x594a]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x594c]
xor edx, edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
mov byte [ebp - 0x15], 0
jmp 0x78b9cf
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x65f8], 0
mov dword [ecx + 0x65fc], 0
push dword [ebp - 0x24]
push dword [ebp - 0x28]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00766c44
lea edx, [ebp - 0x20ac]
mov ecx, 0x2000
mov eax, dword [ebp - 4]
call fcn.00766ad8
mov edi, eax
test edi, edi
je 0x78b982
xor esi, esi
jmp 0x78b967
lea ebx, [ebp - 0x20ac]
add ebx, esi
cmp byte [ebx + 2], 0x7a
jne 0x78b8b3
push 8
push 0x444077
lea eax, [ebx + 0x22]
push eax
call fcn.0079e1b0
add esp, 0xc
test eax, eax
jne 0x78b8b3
xor ecx, ecx
xor edx, edx
mov cl, byte [ebx + 1]
mov dl, byte [ebx]
shl ecx, 8
add dx, cx
mov ecx, 0x34
not dx
and dx, 0xffff
or eax, 0xffffffff
mov word [ebp - 0x2a], dx
lea edx, [ebx + 2]
call fcn.0076f610
and eax, 0xffff
movzx edx, word [ebp - 0x2a]
cmp eax, edx
jne 0x78b966
xor ecx, ecx
xor eax, eax
mov cl, byte [ebx + 0x2b]
mov al, byte [ebx + 0x2a]
shl ecx, 8
xor edx, edx
add eax, ecx
mov dl, byte [ebx + 0x2c]
xor ecx, ecx
mov cl, byte [ebx + 0x2d]
shl edx, 0x10
shl ecx, 0x18
add eax, edx
add eax, ecx
xor edx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
mov dl, byte [ebx + 0x2f]
mov al, byte [ebx + 0x2e]
shl edx, 8
xor ecx, ecx
add eax, edx
mov cl, byte [ebx + 0x30]
xor edx, edx
mov dl, byte [ebx + 0x31]
shl ecx, 0x10
shl edx, 0x18
add eax, ecx
add eax, edx
xor edx, edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
xor edx, edx
xor eax, eax
mov dl, byte [ebx + 0x33]
mov al, byte [ebx + 0x32]
shl edx, 8
xor ecx, ecx
add eax, edx
mov cl, byte [ebx + 0x34]
xor edx, edx
mov dl, byte [ebx + 0x35]
shl ecx, 0x10
shl edx, 0x18
add eax, ecx
add eax, edx
xor edx, edx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], edx
mov edx, dword [ebp - 0x34]
xor eax, eax
add dword [ebp - 0x14], eax
adc dword [ebp - 0x10], edx
mov eax, esi
cdq
add eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 4]
adc edx, dword [ebp - 0x24]
mov dword [ecx + 0x65f8], eax
mov dword [ecx + 0x65fc], edx
mov byte [ebp - 0x15], 1
jmp 0x78b972
cmp byte [ebx + 2], 0x78
jne 0x78b966
push 8
push 0x444080
lea eax, [ebx + 0x12]
push eax
call fcn.0079e1b0
add esp, 0xc
test eax, eax
jne 0x78b966
xor ecx, ecx
xor edx, edx
mov cl, byte [ebx + 1]
mov dl, byte [ebx]
shl ecx, 8
add edx, ecx
mov ecx, 0x18
not edx
and edx, 0xffff
or eax, 0xffffffff
mov dword [ebp - 0x38], edx
lea edx, [ebx + 2]
call fcn.0076f610
and eax, 0xffff
cmp eax, dword [ebp - 0x38]
jne 0x78b966
xor edx, edx
xor eax, eax
mov dl, byte [ebx + 0xd]
mov al, byte [ebx + 0xc]
shl edx, 8
xor ecx, ecx
add eax, edx
xor edx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
mov dl, byte [ebx + 0xf]
mov al, byte [ebx + 0xe]
shl edx, 8
mov cl, byte [ebx + 0x10]
add eax, edx
xor edx, edx
mov dl, byte [ebx + 0x11]
shl ecx, 0x10
shl edx, 0x18
add eax, ecx
add eax, edx
xor edx, edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
mov eax, esi
mov ecx, dword [ebp - 4]
cdq
add eax, dword [ebp - 0x28]
adc edx, dword [ebp - 0x24]
mov dword [ecx + 0x65f8], eax
mov dword [ecx + 0x65fc], edx
mov byte [ebp - 0x15], 0
jmp 0x78b972
inc esi
lea eax, [edi - 0x32]
cmp esi, eax
jl 0x78b79d
add dword [ebp - 0x28], 0x1fce
adc dword [ebp - 0x24], 0
jmp 0x78b769
mov edx, dword [ebp - 4]
cmp dword [edx + 0x65fc], 0
jne 0x78b9cf
cmp dword [edx + 0x65f8], 0
jne 0x78b9cf
push 0
push 0
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00766c44
mov eax, 0xdec
call fcn.00771dbc
push eax
call fcn.0078e1dc
pop ecx
xor eax, eax
push eax
lea eax, [ebp - 0x90]
mov edx, 2
call fcn.00766444
pop eax
jmp 0x78bfe7
mov eax, 0xdee
call fcn.00771dbc
push eax
call fcn.0078e1dc
pop ecx
push 0
push 0
push 0
push 0
or edx, 0xffffffff
mov eax, dword [ebp - 4]
call fcn.0078c558
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x65f8]
mov dword [ebp - 0x40], ecx
mov ecx, dword [edx + 0x65fc]
mov dword [ebp - 0x3c], ecx
xor ecx, ecx
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x65f8]
mov dword [ebp - 0x48], edx
mov edx, dword [eax + 0x65fc]
mov eax, 0x36
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x4c], ecx
cmp byte [ebp - 0x15], 0
jne 0x78ba30
add eax, 0xffffffe4
mov dword [ebp - 0x54], eax
mov edx, dword [ebp - 4]
cmp byte [edx + 0x6610], 0
je 0x78ba4e
mov ecx, dword [ebp - 0x54]
not ecx
inc ecx
and ecx, 0xf
add ecx, 8
add dword [ebp - 0x54], ecx
mov eax, dword [ebp - 0x54]
cdq
add eax, dword [ebp - 0x48]
adc edx, dword [ebp - 0x44]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], edx
lea eax, [ebp - 0x22b8]
call fcn.0078d368
lea eax, [ebp - 0x22c4]
call fcn.007645ac
push dword [ebp - 0x58]
push dword [ebp - 0x5c]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
lea ecx, [ebp - 0x22c4]
lea edx, [ebp - 0x22b8]
mov eax, dword [ebp - 4]
call fcn.0078c054
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x22d0]
shl edx, 9
call fcn.007670ec
push dword [ebp - 0x22cc]
push 0
push dword [ebp - 0x22d0]
call fcn.0079df38
add esp, 0xc
xor edx, edx
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00766c44
xor edx, edx
mov dword [ebp - 0x60], edx
jmp 0x78bba8
call fcn.0076f1e4
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
sub eax, dword [ebp - 0x40]
sbb edx, dword [ebp - 0x3c]
push edx
push eax
push dword [ebp - 0x44]
push dword [ebp - 0x48]
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0078c558
mov ecx, dword [ebp - 0x60]
cmp ecx, dword [ebp - 0x22b4]
jge 0x78bb5f
mov eax, dword [ebp - 4]
call fcn.00766cfc
mov ecx, dword [ebp - 0x22b8]
mov ebx, dword [ebp - 0x60]
cmp edx, dword [ecx + ebx*8 + 4]
jne 0x78bb2b
cmp eax, dword [ecx + ebx*8]
jb 0x78bb5f
jmp 0x78bb2d
jl 0x78bb5f
mov eax, dword [ebp - 0x22c4]
mov edx, dword [ebp - 0x60]
mov eax, dword [eax + edx*4]
cdq
push edx
push eax
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00766c44
mov ecx, dword [ebp - 0x22c4]
mov eax, dword [ebp - 0x60]
mov eax, dword [ecx + eax*4]
cdq
sub dword [ebp - 0x40], eax
sbb dword [ebp - 0x3c], edx
inc dword [ebp - 0x60]
lea ecx, [ebp - 0x40]
push ecx
push 1
lea edx, [ebp - 0x22ac]
mov ecx, 0x200
mov eax, dword [ebp - 4]
call fcn.0078c4e6
mov edx, dword [ebp - 0x4c]
shl edx, 9
add edx, dword [ebp - 0x22d0]
xor eax, eax
mov cl, byte [ebp + eax - 0x22ac]
xor byte [edx + eax], cl
inc eax
cmp eax, 0x200
jl 0x78bb86
inc dword [ebp - 0x4c]
mov eax, dword [ebp - 0x4c]
cmp eax, dword [ebp - 0xc]
jb 0x78bba8
xor edx, edx
mov dword [ebp - 0x4c], edx
cmp dword [ebp - 0x3c], 0
jne 0x78bbba
cmp dword [ebp - 0x40], 0
ja 0x78badc
jmp 0x78bbc0
jg 0x78badc
push 0
push 0x64
push 0
push 0x64
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0078c558
push 0
push 2
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
call fcn.007a0bd8
add eax, dword [ebp - 0x5c]
adc edx, dword [ebp - 0x58]
push edx
push eax
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00766c44
xor ebx, ebx
jmp 0x78bc2d
lea edx, [ebp - 0x22ac]
mov ecx, 0x200
mov eax, dword [ebp - 4]
call fcn.00766ad8
mov edx, ebx
shl edx, 9
add edx, dword [ebp - 0x22d0]
xor eax, eax
mov cl, byte [ebp + eax - 0x22ac]
xor byte [edx + eax], cl
inc eax
cmp eax, 0x200
jl 0x78bc1a
inc ebx
cmp ebx, dword [ebp - 0xc]
jb 0x78bbfa
push 0
push 0
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00766c44
mov ecx, dword [ebp - 0x5c]
xor edx, edx
mov dword [ebp - 0x68], ecx
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x64], ecx
xor ecx, ecx
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x6c], edx
mov dword [ebp - 0x70], ecx
xor eax, eax
mov dword [ebp - 0x74], 0xffffffff
mov dword [ebp - 0x4c], eax
xor edx, edx
mov dword [ebp - 0x60], edx
jmp 0x78bf41
call fcn.0076f1e4
mov ecx, dword [ebp - 0x60]
cmp ecx, dword [ebp - 0x22b4]
jge 0x78bcda
mov eax, dword [ebp - 4]
call fcn.00766cfc
mov ecx, dword [ebp - 0x22b8]
mov ebx, dword [ebp - 0x60]
cmp edx, dword [ecx + ebx*8 + 4]
jne 0x78bca6
cmp eax, dword [ecx + ebx*8]
jb 0x78bcda
jmp 0x78bca8
jl 0x78bcda
mov eax, dword [ebp - 0x22c4]
mov edx, dword [ebp - 0x60]
mov eax, dword [eax + edx*4]
cdq
push edx
push eax
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00766c44
mov ecx, dword [ebp - 0x22c4]
mov eax, dword [ebp - 0x60]
mov eax, dword [ecx + eax*4]
cdq
sub dword [ebp - 0x40], eax
sbb dword [ebp - 0x3c], edx
inc dword [ebp - 0x60]
lea ecx, [ebp - 0x40]
push ecx
push 1
lea edx, [ebp - 0x22ac]
mov ecx, 0x200
mov eax, dword [ebp - 4]
call fcn.0078c4e6
mov dword [ebp - 0x78], eax
lea edx, [ebp - 0x22ac]
mov ecx, dword [ebp - 0x78]
mov eax, dword [ebp - 8]
call fcn.0076691c
lea edx, [ebp - 0x22ac]
mov ecx, 0x200
or eax, 0xffffffff
call fcn.0076f610
mov edi, eax
and edi, 0xffff
lea eax, [ebp - 0x22e0]
mov edx, dword [ebp - 4]
call fcn.00766420
push dword [ebp - 0x64]
push dword [ebp - 0x68]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00766c44
mov eax, dword [ebp - 4]
call fcn.00766d98
xor ebx, ebx
mov bl, al
mov eax, dword [ebp - 4]
call fcn.00766d98
xor edx, edx
mov dl, al
lea eax, [ebp - 0x22e0]
shl edx, 8
add ebx, edx
mov edx, 2
mov dword [ebp - 0x7c], ebx
add dword [ebp - 0x68], 2
adc dword [ebp - 0x64], 0
call fcn.00766444
cmp edi, dword [ebp - 0x7c]
jne 0x78bd92
push 1
lea ecx, [ebp - 0x74]
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x74]
call fcn.0078bfee
jmp 0x78bf2e
push 0x200
lea ecx, [ebp - 0x22ac]
push ecx
lea eax, [ebp - 0x24e0]
push eax
call fcn.0079dec8
add esp, 0xc
mov ebx, dword [ebp - 0x4c]
shl ebx, 9
add ebx, dword [ebp - 0x22d0]
mov byte [ebp - 0x7d], 0
xor eax, eax
mov dl, byte [ebx + eax]
xor byte [ebp + eax - 0x22ac], dl
inc eax
cmp eax, 0x200
jl 0x78bdbf
lea edx, [ebp - 0x22ac]
mov ecx, 0x200
or eax, 0xffffffff
call fcn.0076f610
mov edi, eax
and edi, 0xffff
cmp edi, dword [ebp - 0x7c]
jne 0x78bdfa
mov byte [ebp - 0x7d], 1
jmp 0x78bec1
mov esi, 1
push 0x200
lea eax, [ebp - 0x24e0]
push eax
lea edx, [ebp - 0x22ac]
push edx
call fcn.0079dec8
add esp, 0xc
xor eax, eax
jmp 0x78be29
mov dl, byte [ebx + eax]
xor byte [ebp + eax - 0x22ac], dl
inc eax
mov ecx, esi
shl ecx, 6
cmp eax, ecx
jl 0x78be1e
lea edx, [ebp - 0x22ac]
mov ecx, 0x200
or eax, 0xffffffff
call fcn.0076f610
mov edi, eax
and edi, 0xffff
cmp edi, dword [ebp - 0x7c]
jne 0x78be58
mov byte [ebp - 0x7d], 1
jmp 0x78bec1
push 0x200
lea eax, [ebp - 0x24e0]
push eax
lea edx, [ebp - 0x22ac]
push edx
call fcn.0079dec8
add esp, 0xc
mov eax, esi
shl eax, 6
cmp eax, 0x200
jge 0x78be91
mov dl, byte [ebx + eax]
xor byte [ebp + eax - 0x22ac], dl
inc eax
cmp eax, 0x200
jl 0x78be7f
lea edx, [ebp - 0x22ac]
mov ecx, 0x200
or eax, 0xffffffff
call fcn.0076f610
mov edi, eax
and edi, 0xffff
cmp edi, dword [ebp - 0x7c]
jne 0x78beb7
mov byte [ebp - 0x7d], 1
jmp 0x78bec1
inc esi
cmp esi, 4
jl 0x78bdff
cmp byte [ebp - 0x7d], 0
je 0x78bf1f
push 1
lea ecx, [ebp - 0x74]
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x74]
call fcn.0078bfee
push 0
lea ecx, [ebp - 0x74]
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x6c]
inc edx
call fcn.0078bfee
mov eax, dword [ebp - 8]
call fcn.00766cfc
push edx
push eax
mov eax, dword [ebp - 0x78]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
push edx
push eax
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.00766c44
lea edx, [ebp - 0x22ac]
mov ecx, dword [ebp - 0x78]
mov eax, dword [ebp - 8]
call fcn.0076691c
jmp 0x78bf2e
inc dword [ebp - 0x70]
cmp dword [ebp - 0x74], 0xffffffff
jne 0x78bf2e
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x74], eax
inc dword [ebp - 0x6c]
inc dword [ebp - 0x4c]
mov edx, dword [ebp - 0x4c]
cmp edx, dword [ebp - 0xc]
jb 0x78bf41
xor ecx, ecx
mov dword [ebp - 0x4c], ecx
cmp dword [ebp - 0x3c], 0
jne 0x78bf53
cmp dword [ebp - 0x40], 0
ja 0x78bc78
jmp 0x78bf59
jg 0x78bc78
push 1
lea ecx, [ebp - 0x74]
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x74]
call fcn.0078bfee
push dword [ebp - 0x44]
push dword [ebp - 0x48]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00766c44
push 0x80000000
push 0
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00767038
push 0
push 0
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00766c44
cmp dword [ebp - 0x70], 0
mov eax, 1
jne 0x78bfa5
inc eax
push eax
lea eax, [ebp - 0x22d0]
mov edx, 2
call fcn.00764658
lea eax, [ebp - 0x22c4]
mov edx, 2
call fcn.00764600
lea eax, [ebp - 0x22b8]
mov edx, 2
call fcn.0078d378
lea eax, [ebp - 0x90]
mov edx, 2
call fcn.00766444
pop eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret