Function at 0x79b0c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x48
mov dword [esp + 0xc], edx
mov ebx, ecx
lea edx, [esp + 0x38]
mov eax, dword [0xbcbae0]
xor eax, ebp
mov dword [esp + 0x40], eax
mov esi, dword [ecx]
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 1
mov eax, dword [ecx + 0x98]
mov dword [esp + 0x28], eax
mov ecx, dword [ecx + 0x40]
call fcn.00799a90
test eax, eax
mov dword [esp + 8], 0
je 0x79b118
mov edi, eax
jmp 0x79b1d9
mov eax, dword [ebx]
mov dword [esp + 4], esi
mov esi, dword [ebx + 0xe0]
mov ecx, dword [ebx + 0x40]
mov eax, dword [eax + 8]
mov edx, esi
inc eax
push eax
call fcn.0079c450
add esp, 4
mov edi, eax
test eax, eax
jne 0x79b1d9
cmp byte [esi], 0
mov edi, 0
mov dword [esp + 8], 0
je 0x79b169
mov ecx, dword [esp + 4]
lea eax, [esp + 0x2c]
mov edx, esi
push eax
push 0
call fcn.0079c5e0
add esp, 8
mov edi, eax
test edi, edi
jne 0x79b1d1
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x79b1d1
mov ecx, dword [esp + 0xc]
lea eax, [ebx + 0x48]
mov dword [ebx + 0x4c], 0
mov dword [ebx + 0x48], 0
mov dword [esp + 8], 0
mov dword [esp + 0x24], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x30]
mov ecx, ebx
push eax
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x44]
push dword [esp + 0x44]
call fcn.0079be20
add esp, 0x10
test eax, eax
je 0x79b2ac
mov edi, eax
cmp eax, 0x65
je 0x79b3f2
test edi, edi
je 0x79b3f2
mov al, byte [ebx + 0xc]
mov byte [ebx + 0x12], al
cmp dword [esp + 0xc], 0
je 0x79b5ff
cmp dword [esp + 8], 0
je 0x79b5ff
mov edx, 0x98b29c
xor eax, eax
movzx esi, byte [0xbad3ef]
imul edx, edx
and edx, 3
cmp edx, 1
seta al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2]
or al, 4
movzx eax, al
bt esi, eax
jb 0x79b5e3
mov al, byte [0xbad3ef]
mov esi, ebx
xor ebx, ebx
cmp edx, 1
mov ah, 1
seta bl
mov ecx, ebx
xor ecx, 1
lea ebx, [ebx + ecx*2]
mov cl, 7
or bl, 4
sub cl, bl
shl ah, cl
or ah, al
lock cmpxchg byte [0xbad3ef], ah
jne 0x79b22c
mov ecx, 0x98b29c
xor edx, edx
mov ah, 7
imul ecx, ecx
and ecx, 3
cmp ecx, 1
seta dl
mov ebx, edx
xor ebx, 1
lea edx, [edx + ebx*2]
or dl, 4
sub ah, dl
movzx edx, ah
movzx eax, al
bt eax, edx
jae 0x79b4b5
mov ebx, esi
xor eax, eax
cmp ecx, 1
movzx esi, byte [0xbad3ef]
seta al
mov edx, eax
xor edx, 1
lea eax, [eax + edx*2]
or al, 4
movzx eax, al
bt esi, eax
jae 0x79b286
jmp 0x79b5e3
mov eax, dword [esp + 0x34]
cmp eax, 0xffffffff
jne 0x79b2e1
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov edx, dword [ebx + 0x98]
sub eax, dword [ebx + 0x94]
sbb ecx, 0
add edx, 8
mov esi, edx
sar esi, 0x1f
push esi
push edx
push ecx
push eax
call fcn.009804e0
mov dword [esp + 0x34], eax
mov ecx, eax
or ecx, dword [esp + 0xc]
je 0x79b2f9
mov edi, dword [ebx + 0x48]
mov ecx, dword [ebx + 0x4c]
mov esi, dword [ebx + 0x94]
xor ebx, ebx
jmp 0x79b377
mov ecx, ebx
mov esi, dword [ebx + 0x94]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x54]
xor ebx, ebx
mov edx, dword [ecx + 0x50]
mov edi, dword [ecx + 0x48]
add edx, esi
mov dword [esp + 0x10], edi
adc eax, 0
mov dword [esp + 0x20], edx
xor edx, edi
mov edi, dword [ecx + 0x4c]
mov dword [esp + 0x18], eax
xor eax, edi
or eax, edx
je 0x79b338
mov ecx, edi
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 4]
jmp 0x79b377
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x3c]
sub eax, edi
sbb edx, dword [esp + 0x18]
mov dword [esp + 4], eax
mov dword [esp + 0x10], edx
mov edx, dword [ecx + 0x98]
add edx, 8
mov eax, edx
sar eax, 0x1f
push eax
push edx
push dword [esp + 0x18]
push dword [esp + 0x10]
call fcn.009804e0
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x34], eax
xor ebx, ecx
xor esi, edi
or esi, ebx
mov ebx, dword [esp + 0x24]
jne 0x79b3a2
mov esi, dword [esp + 0x30]
mov ecx, ebx
mov edi, eax
mov edx, esi
call fcn.0079c600
test eax, eax
je 0x79b39d
mov edi, eax
jmp 0x79b1d9
mov eax, edi
mov dword [ebx + 0x18], esi
test eax, eax
je 0x79b19e
mov ecx, dword [esp + 0x1c]
xor esi, esi
mov dword [esp + 4], eax
test ecx, ecx
je 0x79b3bf
mov ecx, ebx
call fcn.0079c730
mov edx, dword [esp + 0x14]
mov ecx, ebx
push 0
push 1
push 0
call fcn.0079b9c0
add esp, 0xc
test eax, eax
je 0x79b485
mov edi, eax
cmp eax, 0x65
je 0x79b49d
cmp edi, 0x20a
jne 0x79b1d1
lea edx, [esp + 0x28]
mov ecx, ebx
push 0xffffffffffffffff
call fcn.00796880
add esp, 4
mov cl, byte [ebx + 0xc]
mov edi, eax
test edi, edi
mov byte [ebx + 0x12], cl
jne 0x79b1df
mov eax, dword [ebx]
mov esi, dword [ebx + 0xe0]
mov ecx, dword [ebx + 0x40]
mov eax, dword [eax + 8]
mov edx, esi
inc eax
push eax
call fcn.0079c450
add esp, 4
test eax, eax
jne 0x79b47e
mov al, byte [ebx + 0x10]
dec al
cmp al, 3
jb 0x79b446
mov ecx, ebx
xor edx, edx
call fcn.0077ccf0
test eax, eax
jne 0x79b47e
xor edx, edx
cmp byte [esi], 0
mov ecx, ebx
setne dl
push 0
call fcn.0079ad40
add esp, 4
test eax, eax
jne 0x79b47e
xor edi, edi
cmp byte [esi], 0
je 0x79b1df
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x79b1df
mov ecx, ebx
mov edx, esi
call fcn.0079c750
mov edi, eax
jmp 0x79b1df
mov eax, dword [esp + 4]
inc dword [esp + 8]
inc esi
xor ecx, ecx
cmp esi, eax
jae 0x79b19a
jmp 0x79b3b4
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x14]
mov dword [edx + 4], ecx
mov dword [edx], eax
xor ecx, ecx
jmp 0x79b19a
xor eax, eax
cmp ecx, 1
movzx edx, byte [0xbad3ef]
mov ebx, esi
seta al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2]
or al, 4
movzx eax, al
bt edx, eax
jb 0x79b5b8
mov ecx, 0x98b29c
xor eax, eax
imul ecx, ecx
and ecx, 3
cmp ecx, 1
seta al
mov ecx, eax
not ecx
and ecx, 0x401
lea ecx, [eax + ecx*2 - 0x2775858c]
mov eax, dword [0xbad3d0]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbad3d0], eax
not eax
imul edx, eax
mov eax, dword [0xbad3d4]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbad3d4], eax
or esi, edx
not eax
mov edx, dword [0xbad3d8]
imul eax, esi
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbad3d8], edx
or esi, eax
not edx
mov eax, dword [0xbad3dc]
imul edx, esi
lea esi, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbad3dc], eax
or esi, edx
not eax
mov edx, dword [0xbad3e0]
imul eax, esi
mov esi, eax
shl esi, 4
xor edx, eax
shr eax, 0x1b
mov dword [0xbad3e0], edx
or eax, esi
not edx
imul edx, eax
mov eax, dword [0xbad3e4]
mov esi, edx
shl esi, 5
xor eax, edx
shr edx, 0x1a
mov dword [0xbad3e4], eax
or edx, esi
not eax
imul eax, edx
mov dl, 1
xor dword [0xbad3e8], eax
shl dl, cl
or byte [0xbad3ef], dl
mov eax, 0x98b29c
xor ecx, ecx
mov dl, 0xfe
imul eax, eax
and eax, 3
cmp eax, 1
seta cl
mov eax, ecx
xor eax, 1
lea eax, [ecx + eax*2]
mov cl, 7
or al, 4
sub cl, al
rol dl, cl
and byte [0xbad3ef], dl
push dword [ebx + 0xac]
push dword [esp + 0xc]
push 0xbad3d0
push 0x21b
call fcn.00777b70
add esp, 0x10
mov ecx, ebx
call fcn.00796b80
mov ecx, dword [esp + 0x40]
xor ecx, ebp
call fcn.00980459
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret