Function at 0x79c5f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
mov edx, fcn.007c9730
mov eax, fcn.007c9730
xor esi, esi
mov dword [esp + 8], ecx
and edx, 1
xor edx, eax
mov dword [esp + 0x10], edx
xor eax, eax
cmp dword [esp + 0x10], 0xffffffff
mov edi, dword [esi*4 + 0xb559d0]
mov ebp, dword [esi*4 + 0xb55b10]
mov dword [esp + 0x18], esi
sete al
mov ecx, eax
not ecx
and ecx, 0x685
lea edx, [eax + ecx*2 + 0xc9bf95a]
mov eax, 1
xor edx, dword [esi*4 + 0xb54070]
mov ecx, edx
and cl, 7
movzx ebx, cl
shl eax, cl
xor cl, 7
mov dword [esp], ebx
mov ebx, 1
shl ebx, cl
movzx ecx, byte [edi + ebp - 1]
mov esi, dword [esp]
bt ecx, esi
jb 0x79c6f4
mov dword [esp + 4], eax
mov al, byte [edi + ebp - 1]
mov ecx, eax
or cl, bl
lock cmpxchg byte [edi + ebp - 1], cl
jne 0x79c679
mov ecx, dword [esp + 4]
movzx eax, al
test ebx, eax
je 0x79c69b
movzx eax, byte [edi + ebp - 1]
test ecx, eax
je 0x79c690
jmp 0x79c6f4
mov dword [esp + 0xc], ebx
movzx eax, byte [edi + ebp - 1]
test ecx, eax
jne 0x79c6ea
lea ecx, [ebp - 4]
shr ecx, 2
je 0x79c6e2
xor eax, eax
mov ebx, edi
mov dword [esp + 0x14], ecx
mov esi, dword [ebx]
mov ecx, eax
mov dword [esp], edx
inc eax
shl dword [esp], cl
and cl, 0x1f
xor cl, 0x1f
xor esi, edx
shr edx, cl
mov ecx, dword [esp + 0x14]
or edx, dword [esp]
mov dword [ebx], esi
not esi
add ebx, 4
imul edx, esi
cmp eax, ecx
jne 0x79c6b8
mov eax, dword [esp + 4]
or byte [edi + ebp - 1], al
mov eax, dword [esp + 0xc]
not al
and byte [edi + ebp - 1], al
mov esi, dword [esp + 0x18]
inc esi
cmp esi, 0x50
jne 0x79c610
mov edi, dword [esp + 8]
mov eax, dword [edi + 0x2c]
test eax, eax
je 0x79c8fd
push eax
call dword [0xbb3744]
test eax, eax
jne 0x79c8e8
mov edx, fcn.007d95b0
xor eax, eax
movzx esi, byte [0xbb4753]
not edx
and edx, 1
mov ecx, edx
add ecx, fcn.007d95b0
sete al
mov ecx, eax
xor ecx, 5
lea eax, [ecx + eax*2 + 4]
and al, 7
movzx eax, al
bt esi, eax
jb 0x79c8be
mov al, byte [0xbb4753]
mov esi, edx
xor ecx, ecx
mov ah, 1
add esi, fcn.007d95b0
sete cl
mov ebx, ecx
xor ebx, 5
lea ecx, [ebx + ecx*2 + 4]
and cl, 7
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb4753], ah
jne 0x79c75a
mov ecx, fcn.007d95b0
xor edx, edx
movzx eax, al
not ecx
and ecx, 1
mov esi, ecx
add esi, fcn.007d95b0
sete dl
mov ebx, edx
xor ebx, 5
lea edx, [ebx + edx*2 + 4]
and dl, 7
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x79c7e3
mov edx, ecx
xor eax, eax
movzx esi, byte [0xbb4753]
add edx, fcn.007d95b0
sete al
mov edx, eax
xor edx, 5
lea eax, [edx + eax*2 + 4]
and al, 7
movzx eax, al
bt esi, eax
jae 0x79c7b7
jmp 0x79c8be
xor eax, eax
add ecx, fcn.007d95b0
movzx edx, byte [0xbb4753]
sete al
mov ecx, eax
xor ecx, 5
lea eax, [ecx + eax*2 + 4]
and al, 7
movzx eax, al
bt edx, eax
jb 0x79c891
mov eax, fcn.007d95b0
xor ecx, ecx
not eax
and eax, 1
add eax, fcn.007d95b0
sete cl
mov eax, ecx
xor eax, 0xa7eeb3c5
lea ecx, [eax + ecx*2 + 0x1004]
mov eax, dword [0xbb4740]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbb4740], eax
not eax
imul edx, eax
mov eax, dword [0xbb4744]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb4744], eax
or esi, edx
not eax
mov edx, dword [0xbb4748]
imul eax, esi
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb4748], edx
or esi, eax
not edx
mov al, 1
imul edx, esi
shl al, cl
xor dword [0xbb474c], edx
or byte [0xbb4753], al
mov eax, fcn.007d95b0
xor ecx, ecx
not eax
and eax, 1
add eax, fcn.007d95b0
sete cl
mov eax, ecx
xor eax, 5
lea ecx, [eax + ecx*2 + 4]
mov al, 0xfe
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbb4753], al
call dword [0xbb35b8]
mov ecx, 0x180a
mov edx, eax
mov dword [edi + 0x14], eax
push 0x3352
push dword [edi + 0x1c]
push 0xbb4740
call fcn.0079cac0
add esp, 0x28
jmp 0x79caac
mov dword [edi + 0x2c], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x30], 0
mov eax, dword [edi + 0x28]
test eax, eax
je 0x79caa9
push eax
call dword [0xbb34a4]
test eax, eax
jne 0x79caa2
mov edx, fcn.007b1060
xor eax, eax
movzx esi, byte [0xbb4773]
imul edx, edx
and edx, 3
cmp edx, 1
seta al
mov ecx, eax
xor ecx, 1
lea eax, [ecx + eax*2]
bt esi, eax
jb 0x79ca80
mov al, byte [0xbb4773]
xor ecx, ecx
cmp edx, 1
mov ah, 1
seta cl
mov ebx, ecx
xor ebx, 1
lea ecx, [ebx + ecx*2]
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb4773], ah
jne 0x79c947
mov ecx, fcn.007b1060
xor edx, edx
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 1
seta dl
mov ebx, edx
xor ebx, 1
lea edx, [ebx + edx*2]
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x79c9b4
xor eax, eax
cmp ecx, 1
movzx esi, byte [0xbb4773]
seta al
mov edx, eax
xor edx, 1
lea eax, [edx + eax*2]
bt esi, eax
jae 0x79c993
jmp 0x79ca80
xor eax, eax
cmp ecx, 1
movzx edx, byte [0xbb4773]
seta al
mov ecx, eax
xor ecx, 1
lea eax, [ecx + eax*2]
bt edx, eax
jb 0x79ca58
mov eax, fcn.007b1060
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 1
seta cl
mov eax, ecx
xor eax, 0xbae8a741
lea ecx, [eax + ecx*2 + 0x120]
mov eax, dword [0xbb4760]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbb4760], eax
not eax
imul edx, eax
mov eax, dword [0xbb4764]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb4764], eax
or esi, edx
not eax
mov edx, dword [0xbb4768]
imul eax, esi
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb4768], edx
or esi, eax
not edx
mov al, 1
imul edx, esi
shl al, cl
xor dword [0xbb476c], edx
or byte [0xbb4773], al
mov eax, fcn.007b1060
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 1
seta cl
mov eax, ecx
xor eax, 1
lea ecx, [eax + ecx*2]
mov al, 0xfe
xor cl, 7
rol al, cl
and byte [0xbb4773], al
call dword [0xbb35b8]
mov ecx, 0x180a
mov edx, eax
mov dword [edi + 0x14], eax
push 0x335d
push dword [edi + 0x1c]
push 0xbb4760
jmp 0x79c8db
mov dword [edi + 0x28], 0
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret