Function at 0x795ff0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [0xbcbae0]
mov ebx, dword [esp + 0x40]
mov edi, dword [esp + 0x44]
mov ebp, edx
mov esi, ecx
xor eax, esp
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], 0x1000
call fcn.00796b40
mov ecx, eax
mov eax, edi
mov dword [ebp], 0
mov dword [esp + 0xc], esi
mov dword [esp + 0x1c], ebp
test al, 2
je 0x7960ae
test ebx, ebx
jne 0x796069
mov dword [esp + 8], 1
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp], 0
xor esi, esi
mov dword [esp + 4], 0
mov edi, 1
jmp 0x79621a
cmp byte [ebx], 0
mov edx, ebx
jne 0x79608b
mov al, 1
mov dword [esp + 8], 1
mov dword [esp + 0x10], edx
mov dword [esp], 0
mov dword [esp + 0x14], eax
jmp 0x796055
mov ebx, ecx
xor ecx, ecx
mov dword [esp + 4], 0
call fcn.0077edc0
test eax, eax
jne 0x7961ef
mov ebx, 7
jmp 0x796777
mov edi, 1
test ebx, ebx
jne 0x7960e5
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0
mov dword [esp], 0
xor esi, esi
mov dword [esp + 4], 0
jmp 0x79621a
cmp byte [ebx], 0
jne 0x7960f6
mov al, 1
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
jmp 0x7960c7
mov ebx, esi
mov esi, dword [esi + 8]
mov al, 1
mov dword [esp + 0x18], ecx
xor ecx, ecx
mov dword [esp + 0x14], eax
lea edx, [esi + esi + 2]
mov eax, edx
sar eax, 0x1f
push eax
call fcn.00784570
add esp, 4
test eax, eax
jne 0x796127
mov ebx, 7
jmp 0x796777
mov edi, eax
mov byte [eax], 0
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x40]
inc esi
mov ecx, ebx
mov dword [esp + 0x10], eax
push edi
push esi
call fcn.00795fb0
add esp, 8
mov ebx, eax
cmp eax, 0x200
jne 0x79615e
mov ebx, dword [esp + 0x48]
shl ebx, 7
sar ebx, 0x1f
and ebx, 0x60e
mov ecx, edi
mov dword [esp], edi
call fcn.00777870
mov edi, dword [esp + 0x40]
mov esi, eax
mov ecx, edi
call fcn.00777870
cmp byte [edi + eax + 1], 0
lea ecx, [edi + eax + 1]
mov edi, ecx
mov dword [esp + 4], ecx
je 0x7961ae
mov edi, dword [esp + 4]
push edi
call fcn.00980650
add esp, 4
lea ebp, [edi + eax]
lea eax, [edi + eax + 1]
push eax
call fcn.00980650
add esp, 4
cmp byte [eax + ebp + 2], 0
lea edi, [eax + ebp + 2]
jne 0x79618a
test ebx, ebx
jne 0x7961e0
mov ecx, dword [esp + 0xc]
lea eax, [esi + 8]
cmp eax, dword [ecx + 8]
jg 0x7961d1
inc edi
mov ecx, dword [esp + 0x18]
mov dword [esp + 8], 0
sub edi, dword [esp + 4]
jmp 0x79621a
mov ecx, 0x5c2d
call fcn.00795040
mov ebx, 0xe
mov edx, dword [esp]
xor ecx, ecx
call fcn.00774f10
jmp 0x796777
mov ecx, eax
mov dword [esp + 8], 1
mov dword [esp], eax
call fcn.00777870
mov esi, eax
mov edi, 1
mov ecx, ebx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov ebx, dword [esp + 0xc]
mov eax, 0x127
add ecx, 7
xor edx, edx
and ecx, 0xfffffff8
mov ebp, ecx
add eax, dword [ebx + 4]
and eax, 0xfffffff8
lea eax, [eax + ecx*2]
lea ecx, [esi + esi*2]
or eax, 4
add ecx, edi
lea ecx, [eax + ecx + 0x12]
call fcn.0077b7b0
test eax, eax
jne 0x79625f
mov edx, dword [esp]
xor ecx, ecx
call fcn.00774f10
mov ebx, 7
jmp 0x796777
lea ecx, [eax + 0xf0]
mov dword [eax + 0xe4], ecx
lea ecx, [eax + 0x120]
mov dword [eax + 0x3c], ecx
mov ecx, dword [ebx + 4]
add ecx, 7
and ecx, 0xfffffff8
lea ecx, [eax + ecx + 0x120]
mov dword [eax + 0x44], ecx
add ecx, ebp
test esi, esi
lea ebx, [ebp + ecx + 4]
mov dword [eax + 0x40], ecx
mov dword [eax + 0xa8], ebx
jle 0x796318
mov ebp, eax
push esi
push dword [esp + 4]
push ebx
call fcn.009806e0
add esp, 0xc
mov eax, dword [esp + 4]
lea ebx, [ebx + esi + 1]
test eax, eax
jne 0x7962bd
mov edi, 1
jmp 0x7962c8
push edi
push eax
push ebx
call fcn.009806e0
add esp, 0xc
add ebx, edi
mov dword [ebp + 0xac], ebx
push esi
mov edi, dword [esp + 4]
push edi
push ebx
call fcn.009806e0
add esp, 0xc
mov dword [esi + ebx + 4], 0x6c616e72
mov dword [esi + ebx], 0x756f6a2d
lea eax, [esi + ebx + 9]
lea ebx, [ebx + esi]
mov dword [ebp + 0xec], eax
push esi
push edi
push eax
call fcn.009806e0
add esp, 0xc
mov dword [esi + ebx + 9], 0x6c61772d
mov ebx, dword [esp + 0x48]
mov esi, dword [esp + 0xc]
jmp 0x79633b
mov ebx, dword [esp + 0x48]
mov esi, dword [esp + 0xc]
mov edi, dword [esp]
mov ebp, eax
mov dword [eax + 0xac], 0
mov dword [eax + 0xec], 0
je 0x796344
xor ecx, ecx
mov edx, edi
call fcn.00774f10
cmp byte [esp + 0x14], 0
mov dword [ebp], esi
mov dword [ebp + 0x90], ebx
je 0x796670
mov eax, dword [esp + 0x10]
cmp byte [eax], 0
je 0x796670
mov dword [esp + 0x20], 0
lea eax, [esp + 0x20]
mov ecx, esi
mov edx, dword [ebp + 0xa8]
push eax
push ebx
push dword [ebp + 0x3c]
call fcn.00796b50
add esp, 0xc
mov ebx, eax
test eax, eax
jne 0x7966c8
mov ebx, dword [esp + 0x20]
mov ecx, dword [ebp + 0x3c]
and ebx, 1
call fcn.00796b70
mov esi, eax
mov edi, ebx
test ebx, ebx
jne 0x7963d0
mov ecx, ebp
call fcn.00796b80
mov eax, dword [ebp + 0x94]
cmp eax, 0x1001
jb 0x7963d0
cmp eax, 0x2001
jb 0x7963cc
mov dword [esp + 0x24], 0x2000
jmp 0x7963d0
mov dword [esp + 0x24], eax
mov edx, fcn.0079f410
movzx ecx, byte [0xbad347]
and edx, 1
inc edx
mov eax, edx
xor eax, fcn.0079f410
sete al
not al
and al, 5
movzx eax, al
bt ecx, eax
jb 0x7964f4
mov al, byte [0xbad347]
mov ecx, edx
mov ah, 1
xor ecx, fcn.0079f410
sete cl
not cl
and cl, 5
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbad347], ah
jne 0x7963ff
mov ecx, fcn.0079f410
movzx eax, al
and ecx, 1
inc ecx
mov edx, ecx
xor edx, fcn.0079f410
sete dl
not dl
and dl, 5
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x79646b
mov eax, ecx
movzx edx, byte [0xbad347]
xor eax, fcn.0079f410
sete al
not al
and al, 5
movzx eax, al
bt edx, eax
jae 0x796449
jmp 0x7964f4
xor ecx, fcn.0079f410
movzx ecx, byte [0xbad347]
sete al
not al
and al, 5
movzx eax, al
bt ecx, eax
jb 0x7964d1
mov eax, fcn.0079f410
xor ecx, ecx
and eax, 1
inc eax
xor eax, fcn.0079f410
mov eax, dword [0xbad33c]
sete cl
xor ecx, 0x40a6cb45
add ecx, 0x860
mov edx, ecx
xor eax, ecx
shr edx, 0x1f
mov dword [0xbad33c], eax
not eax
or edx, ecx
and cl, 7
imul edx, eax
xor dword [0xbad340], edx
mov dl, 1
shl dl, cl
or byte [0xbad347], dl
mov eax, fcn.0079f410
and eax, 1
inc eax
xor eax, fcn.0079f410
mov al, 0xfe
sete cl
not cl
and cl, 5
xor cl, 7
rol al, cl
and byte [0xbad347], al
push 0
push 0xbad33c
push dword [ebp + 0xa8]
call fcn.0078cdf0
add esp, 0xc
mov ebx, 1
test esi, 0x2000
mov byte [ebp + 0xd], al
jne 0x796670
mov edx, 0x8358a0
mov eax, 0x8358a0
movzx ecx, byte [0xbad357]
and edx, 1
xor edx, eax
cmp edx, 0xffffffff
sete al
xor al, 5
movzx eax, al
bt ecx, eax
jb 0x79664d
mov al, byte [0xbad357]
cmp edx, 0xffffffff
mov ah, 1
sete cl
or cl, 0xfa
add cl, 8
shl ah, cl
or ah, al
lock cmpxchg byte [0xbad357], ah
jne 0x79654c
mov ecx, 0x8358a0
mov edx, 0x8358a0
movzx eax, al
and ecx, 1
xor ecx, edx
cmp ecx, 0xffffffff
sete dl
or dl, 0xfa
add dl, 8
movzx edx, dl
bt eax, edx
jae 0x7965aa
cmp ecx, 0xffffffff
movzx edx, byte [0xbad357]
sete al
xor al, 5
movzx eax, al
bt edx, eax
jae 0x79658e
jmp 0x79664d
cmp ecx, 0xffffffff
movzx edx, byte [0xbad357]
sete al
xor al, 5
movzx eax, al
bt edx, eax
jb 0x796628
mov edx, 0x8358a0
mov eax, 0x8358a0
xor ecx, ecx
and edx, 1
xor edx, eax
mov eax, dword [0xbad348]
cmp edx, 0xffffffff
sete cl
xor ecx, 0xb241d2b5
add ecx, 0x1000
mov edx, ecx
xor eax, ecx
shr edx, 0x1f
mov dword [0xbad348], eax
not eax
or edx, ecx
and cl, 7
imul edx, eax
mov eax, dword [0xbad34c]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbad34c], eax
or esi, edx
not eax
mov dl, 1
imul eax, esi
shl dl, cl
xor dword [0xbad350], eax
or byte [0xbad357], dl
mov ecx, 0x8358a0
mov eax, 0x8358a0
and ecx, 1
xor ecx, eax
mov al, 0xfe
cmp ecx, 0xffffffff
sete cl
or cl, 0xfa
add cl, 8
rol al, cl
and byte [0xbad357], al
push 0
push 0xbad348
push dword [ebp + 0xa8]
call fcn.0078cdf0
add esp, 0xc
test eax, eax
jne 0x796670
mov dword [esp + 0xc], 0
jmp 0x796685
and ebx, 1
mov al, 1
mov word [ebp + 0x10], 0x401
mov byte [ebp + 0xd], 1
mov edi, ebx
mov dword [esp + 0xc], eax
lea edx, [esp + 0x24]
mov ecx, ebp
push 0xffffffffffffffff
call fcn.00796880
add esp, 4
mov ebx, eax
test eax, eax
jne 0x7966c8
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x24]
xor eax, eax
mov esi, fcn.00796c30
test edx, edx
cmovne esi, eax
xor edx, 1
push dword [ebp + 0xe4]
push ebp
push esi
call fcn.00796bc0
add esp, 0xc
mov ebx, eax
test eax, eax
je 0x7966e9
mov ecx, dword [ebp + 0x3c]
call fcn.00796cd0
mov ecx, dword [ebp + 0xe0]
call fcn.00796cf0
push ebp
call fcn.00775660
add esp, 4
jmp 0x796777
mov ebx, dword [esp + 0x44]
mov ecx, dword [esp + 0xc]
and ebx, 1
mov eax, ebx
xor al, 1
test cl, cl
mov byte [ebp + 6], al
mov eax, dword [esp + 8]
mov dword [ebp + 0x9c], 0x3fffffff
mov byte [ebp + 0xc], cl
mov byte [ebp + 4], cl
mov byte [ebp + 0x12], cl
mov esi, eax
mov byte [ebp + 0xf], al
mov eax, edi
mov byte [ebp + 0xe], al
mov byte [ebp + 7], cl
jne 0x79672a
mov dword [ebp + 8], 0xa020001
mov ecx, ebp
mov word [ebp + 0x8c], 0x58
mov dword [ebp + 0xa4], 0xffffffff
mov dword [ebp + 0xa0], 0xffffffff
call fcn.00796b80
or esi, ebx
je 0x79675e
test ebx, ebx
sete al
add al, al
add al, 2
mov byte [ebp + 5], al
mov ecx, ebp
mov dword [ebp + 0xc8], 0x796790
call fcn.00796d00
mov eax, dword [esp + 0x1c]
xor ebx, ebx
mov dword [eax], ebp
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00980459
mov eax, ebx
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret