Function at 0x7868a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x4d0
mov eax, dword [0xbcbae0]
mov ebx, edx
mov esi, ecx
xor eax, esp
mov dword [esp + 0x4cc], eax
mov ebp, dword [ecx]
mov edi, dword [ebp + 0x70]
cmp dword [ebp + 0xb0], 0
jne 0x7868d4
mov dword [ebp + 0x110], 0
lea ecx, [esp + 0x10]
mov edx, esi
mov dword [esi + 0xc], 0
mov dword [esi + 0xe0], ebx
call fcn.007c8640
mov eax, dword [ebp + 0xf4]
lea edx, [esp + 0xc]
mov dword [esp + 8], ebp
mov dword [esp + 4], esi
mov dword [esi + 0x7c], eax
mov eax, 0xffffffff
mov dword [ebp + 0xf4], esi
mov ecx, ebx
mov esi, edx
mov dword [esp], eax
call fcn.007c51b0
mov ebp, eax
sub edi, eax
jns 0x78692e
mov esi, dword [esp + 4]
mov dword [esi + 0xc], 0x12
jmp 0x786c07
mov edx, dword [esp + 0xc]
cmp edx, 0xa1
jl 0x786995
mov eax, dword [esp + 8]
mov eax, dword [eax + 0x110]
test eax, eax
je 0x786958
mov esi, dword [esp + 4]
mov dword [esi + 0xc], 9
jmp 0x786c07
mov eax, dword [esp + 0xc]
cmp eax, 0xb3
jne 0x78696b
add ebx, ebp
mov edx, esi
mov ecx, ebx
jmp 0x786913
cmp byte [ebx], 0
jne 0x7869d0
mov eax, dword [esp]
xor ebp, ebp
mov edx, 0
cmp eax, 1
je 0x786991
test eax, eax
jne 0x78698c
mov esi, dword [esp + 4]
jmp 0x786c07
mov edx, 1
mov dword [esp + 0xc], edx
mov eax, dword [esp + 4]
lea ecx, [esp + 0x10]
mov dword [eax + 0xbc], ebx
mov dword [eax + 0xc0], ebp
push ebp
push ebx
call fcn.007c8740
add esp, 8
mov ecx, dword [esp + 4]
add ebx, ebp
mov eax, dword [esp + 0xc]
mov edx, esi
cmp dword [ecx + 0xc], 0
mov esi, ecx
je 0x78690c
jmp 0x786c07
cmp eax, 0xa3
je 0x786a02
cmp eax, 0xa2
je 0x7869f5
cmp eax, 0xa1
jne 0x786a0f
lea ecx, [ebx + 6]
call fcn.007c8660
mov edx, eax
mov dword [esp + 0xc], eax
jmp 0x786995
mov edx, dword [esp]
lea ecx, [ebx + 4]
call fcn.007c86b0
jmp 0x7869ed
mov edx, dword [esp]
lea ecx, [ebx + 6]
call fcn.007c8700
jmp 0x7869ed
mov edi, fcn.007e7cd0
xor eax, eax
movzx edx, byte [0xbaff6f]
mov esi, dword [esp + 4]
and edi, 1
inc edi
mov ecx, edi
xor ecx, fcn.007e7cd0
sete al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2]
and al, 3
movzx eax, al
bt edx, eax
jb 0x786bf7
mov al, byte [0xbaff6f]
xor edx, edx
mov ecx, edi
xor edi, fcn.007e7cd0
sete dl
mov edi, ecx
mov ecx, edx
not ecx
lea ecx, [edx + ecx*2]
mov dl, 1
and cl, 3
xor cl, 7
shl dl, cl
or dl, al
lock cmpxchg byte [0xbaff6f], dl
jne 0x786a4a
mov ecx, fcn.007e7cd0
xor edx, edx
movzx eax, al
and ecx, 1
inc ecx
mov edi, ecx
xor edi, fcn.007e7cd0
sete dl
mov edi, edx
not edx
lea edx, [edi + edx*2]
and dl, 3
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x786ace
mov edx, ecx
xor eax, eax
movzx edi, byte [0xbaff6f]
xor edx, fcn.007e7cd0
sete al
mov edx, eax
not edx
lea eax, [eax + edx*2]
and al, 3
movzx eax, al
bt edi, eax
jae 0x786aa4
jmp 0x786bf7
xor eax, eax
xor ecx, fcn.007e7cd0
movzx edx, byte [0xbaff6f]
sete al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2]
and al, 3
movzx eax, al
bt edx, eax
jb 0x786bcd
mov ecx, fcn.007e7cd0
xor eax, eax
and ecx, 1
inc ecx
xor ecx, fcn.007e7cd0
sete al
mov ecx, eax
not ecx
and ecx, 0x13d
lea ecx, [eax + ecx*2 + 0x13532c80]
mov eax, dword [0xbaff50]
xor eax, ecx
mov dword [0xbaff50], eax
not eax
mov edx, dword [0xbaff54]
imul eax, ecx
and cl, 3
lea edi, [eax + eax]
xor edx, eax
shr eax, 0x1e
mov dword [0xbaff54], edx
or eax, edi
not edx
imul edx, eax
mov eax, dword [0xbaff58]
lea edi, [edx*4]
xor eax, edx
shr edx, 0x1d
mov dword [0xbaff58], eax
or edx, edi
not eax
imul eax, edx
mov edx, dword [0xbaff5c]
lea edi, [eax*8]
xor edx, eax
shr eax, 0x1c
mov dword [0xbaff5c], edx
or eax, edi
not edx
imul edx, eax
mov eax, dword [str._qG]
mov edi, edx
shl edi, 4
xor eax, edx
shr edx, 0x1b
mov dword [str._qG], eax
or edx, edi
not eax
imul eax, edx
mov edx, dword [0xbaff64]
mov edi, eax
shl edi, 5
xor edx, eax
shr eax, 0x1a
mov dword [0xbaff64], edx
or eax, edi
not edx
imul edx, eax
xor dword [0xbaff68], edx
mov dl, 1
shl dl, cl
or byte [0xbaff6f], dl
mov eax, fcn.007e7cd0
xor ecx, ecx
and eax, 1
inc eax
xor eax, fcn.007e7cd0
sete cl
mov eax, ecx
not eax
lea ecx, [ecx + eax*2]
mov al, 0xfe
and cl, 3
xor cl, 7
rol al, cl
and byte [0xbaff6f], al
push ebx
push ebp
push 0xbaff50
push esi
call fcn.00782570
add esp, 0x10
lea ecx, [esp + 0x10]
call fcn.007c8830
mov edi, dword [esp + 8]
cmp byte [edi + 0x51], 0
je 0x786c28
mov dword [esi + 0xc], 7
mov ebp, 7
jmp 0x786c3c
mov ebp, dword [esi + 0xc]
test ebp, ebp
je 0x786da3
cmp ebp, 0x65
je 0x786da3
cmp dword [esi + 4], 0
jne 0x786da3
mov eax, fcn.007c38e0
mov edi, 3
movzx edx, byte [0xbaff77]
sub edi, eax
xor eax, eax
mov ecx, edi
xor ecx, fcn.007c38e0
sete al
mov ecx, eax
xor ecx, 5
lea eax, [ecx + eax*2]
bt edx, eax
jb 0x786d86
mov al, byte [0xbaff77]
mov dword [esp], ebp
mov ebp, edi
xor edx, edx
xor ebp, fcn.007c38e0
sete dl
mov ecx, edx
xor ecx, 5
lea ecx, [ecx + edx*2]
mov dl, 1
xor cl, 7
shl dl, cl
or dl, al
lock cmpxchg byte [0xbaff77], dl
jne 0x786c7f
mov edx, fcn.007c38e0
mov ecx, 3
movzx eax, al
sub ecx, edx
xor edx, edx
mov edi, ecx
xor edi, fcn.007c38e0
sete dl
mov edi, edx
xor edx, 5
lea edx, [edx + edi*2]
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x786cff
mov ebp, dword [esp]
mov edx, ecx
xor eax, eax
movzx edi, byte [0xbaff77]
xor edx, fcn.007c38e0
sete al
mov edx, eax
xor edx, 5
lea eax, [edx + eax*2]
bt edi, eax
jae 0x786cd9
jmp 0x786d86
xor eax, eax
xor ecx, fcn.007c38e0
movzx edx, byte [0xbaff77]
mov ebp, dword [esp]
sete al
mov ecx, eax
xor ecx, 5
lea eax, [ecx + eax*2]
bt edx, eax
jb 0x786d5a
mov eax, fcn.007c38e0
mov ecx, 3
sub ecx, eax
xor eax, eax
xor ecx, fcn.007c38e0
sete al
mov ecx, eax
xor ecx, 0x40812fad
lea ecx, [ecx + eax*2 + 0xa0]
mov al, 1
xor dword [0xbaff70], ecx
and cl, 7
shl al, cl
or byte [0xbaff77], al
mov eax, fcn.007c38e0
mov ecx, 3
sub ecx, eax
xor eax, eax
xor ecx, fcn.007c38e0
sete al
mov ecx, eax
xor ecx, 5
lea ecx, [ecx + eax*2]
mov al, 0xfe
xor cl, 7
rol al, cl
and byte [0xbaff77], al
mov ecx, ebp
call fcn.0077e340
push eax
push 0xbaff70
mov edi, dword [esp + 0x10]
push edi
call fcn.00782620
add esp, 0xc
mov dword [esi + 4], eax
mov ebp, dword [esi + 4]
test ebp, ebp
jne 0x786db1
xor ebp, ebp
jmp 0x786f30
mov edi, fcn.007be460
xor eax, eax
movzx edx, byte [0xbaff87]
imul edi, edi
and edi, 3
cmp edi, 2
sete al
mov ecx, eax
xor ecx, 3
lea eax, [eax + ecx*2]
bt edx, eax
jb 0x786f00
mov al, byte [0xbaff87]
xor ecx, ecx
cmp edi, 2
sete cl
mov edx, ecx
not edx
and edx, 3
lea ecx, [ecx + edx*2]
mov dl, 1
xor cl, 7
shl dl, cl
or dl, al
lock cmpxchg byte [0xbaff87], dl
jne 0x786de1
mov ecx, fcn.007be460
xor edx, edx
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 2
sete dl
mov edi, edx
not edi
and edi, 3
lea edx, [edx + edi*2]
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x786e52
xor eax, eax
cmp ecx, 2
movzx edi, byte [0xbaff87]
sete al
mov edx, eax
xor edx, 3
lea eax, [eax + edx*2]
bt edi, eax
jae 0x786e31
jmp 0x786f00
xor eax, eax
cmp ecx, 2
movzx edx, byte [0xbaff87]
sete al
mov ecx, eax
xor ecx, 3
lea eax, [eax + ecx*2]
bt edx, eax
jb 0x786ed6
mov ecx, fcn.007be460
xor eax, eax
imul ecx, ecx
and ecx, 3
cmp ecx, 2
sete al
mov ecx, eax
not ecx
and ecx, 0x48b
lea ecx, [eax + ecx*2 - 0x50a054a0]
mov eax, dword [0xbaff78]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbaff78], eax
not eax
imul edx, eax
mov eax, dword [0xbaff7c]
lea edi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbaff7c], eax
or edi, edx
not eax
mov dl, 1
imul eax, edi
shl dl, cl
xor dword [0xbaff80], eax
or byte [0xbaff87], dl
mov ecx, fcn.007be460
xor eax, eax
imul ecx, ecx
and ecx, 3
cmp ecx, 2
sete al
mov ecx, eax
not ecx
and ecx, 3
lea ecx, [eax + ecx*2]
mov al, 0xfe
xor cl, 7
rol al, cl
and byte [0xbaff87], al
mov eax, dword [esp + 0x4e4]
mov dword [eax], ebp
push dword [esi + 0xe0]
push ebp
push 0xbaff78
push dword [esi + 0xc]
call fcn.00777b70
add esp, 0x10
mov edi, dword [esp + 8]
mov ebp, 1
mov dword [esi + 4], 0
mov dword [esi + 0xe0], ebx
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x786f55
cmp dword [esi + 0x24], 0
jle 0x786f55
cmp byte [esi + 0x12], 0
jne 0x786f55
call fcn.007a1e20
mov dword [esi + 8], 0
cmp byte [esi + 0x12], 0
jne 0x786f73
mov edx, dword [esi + 0x6c]
mov ecx, edi
call fcn.00774f10
mov dword [esi + 0x6c], 0
mov dword [esi + 0x68], 0
push dword [esi + 0xfc]
call fcn.00775660
add esp, 4
mov al, byte [esi + 0xc8]
test al, al
jne 0x786f9e
mov edx, dword [esi + 0xe4]
mov ecx, edi
call fcn.00774e50
mov al, byte [esi + 0xc8]
cmp al, 1
ja 0x786faf
mov edx, dword [esi + 0xec]
mov ecx, edi
call fcn.00774e00
mov edx, dword [esi + 0x10c]
test edx, edx
je 0x786fc0
mov ecx, edi
call fcn.007c03e0
mov edx, dword [esi + 0xd8]
mov ecx, edi
call fcn.00774f10
mov edx, dword [esi + 0x70]
test edx, edx
je 0x786ff2
mov eax, dword [edx]
mov ecx, edi
mov dword [esi + 0x70], eax
call fcn.0078dba0
jmp 0x786fcd
mov eax, dword [edx + 0x4c]
mov ecx, edi
mov dword [esi + 0x100], eax
call fcn.00774e50
mov edx, dword [esi + 0x100]
test edx, edx
jne 0x786fe2
mov eax, dword [esi + 0x7c]
mov dword [edi + 0xf4], eax
mov dword [esi + 0x7c], 0
mov ecx, dword [esp + 0x4cc]
xor ecx, esp
call fcn.00980459
mov eax, ebp
add esp, 0x4d0
pop esi
pop edi
pop ebx
pop ebp
ret