Function at 0x79e490
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [0xbcbae0]
mov esi, ecx
xor eax, esp
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0
mov ecx, dword [ecx]
call fcn.0079ed30
mov ebp, eax
test eax, eax
jne 0x79e9ab
lea eax, [esp + 0x14]
mov ecx, esi
mov edx, 1
push 0
push eax
call fcn.0079ef80
add esp, 8
mov ebp, eax
test eax, eax
jne 0x79e9ab
mov ebp, dword [esp + 0x14]
mov ecx, dword [ebp + 0x38]
add ecx, 0x1c
call fcn.0055d990
mov ecx, dword [esi]
lea edx, [esp + 0x10]
mov ebx, eax
call fcn.0077ca80
test ebx, ebx
je 0x79e508
mov eax, dword [ebp + 0x38]
mov ecx, dword [eax + 0x18]
cmp ecx, dword [eax + 0x5c]
je 0x79e50c
mov ebx, dword [esp + 0x10]
mov eax, dword [esi + 4]
xor edi, edi
test byte [eax + 0x23], 2
cmove edi, ebx
test edi, edi
jne 0x79e52a
mov ebx, dword [esi + 0x28]
mov dword [esp + 4], edi
mov edi, ebp
jmp 0x79e956
mov eax, fcn.00798a70
mov edx, 3
movzx ecx, byte [0xbad437]
sub edx, eax
mov eax, edx
xor eax, fcn.00798a70
sete al
not al
add al, 0x40
and al, 7
movzx eax, al
bt ecx, eax
jb 0x79e6bf
mov al, byte [0xbad437]
mov ecx, edx
mov ah, 1
xor ecx, fcn.00798a70
sete cl
not cl
add cl, 0x40
and cl, 7
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbad437], ah
jne 0x79e55e
mov edx, fcn.00798a70
mov ecx, 3
movzx eax, al
sub ecx, edx
mov edx, ecx
xor edx, fcn.00798a70
sete dl
not dl
add dl, 0x40
and dl, 7
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x79e5d5
mov eax, ecx
movzx edx, byte [0xbad437]
xor eax, fcn.00798a70
sete al
not al
add al, 0x40
and al, 7
movzx eax, al
bt edx, eax
jae 0x79e5b1
jmp 0x79e6bf
xor ecx, fcn.00798a70
movzx ecx, byte [0xbad437]
sete al
not al
add al, 0x40
and al, 7
movzx eax, al
bt ecx, eax
jb 0x79e695
mov eax, fcn.00798a70
mov edx, 3
xor ecx, ecx
sub edx, eax
mov eax, dword [0xbad420]
xor edx, fcn.00798a70
sete cl
xor ecx, 0x34d3e5f
add ecx, 0x140
xor eax, ecx
mov dword [0xbad420], eax
not eax
mov edx, dword [0xbad424]
imul eax, ecx
and cl, 7
lea ebx, [eax + eax]
xor edx, eax
shr eax, 0x1e
mov dword [0xbad424], edx
or ebx, eax
not edx
mov eax, dword [0xbad428]
imul edx, ebx
lea ebx, [edx*4]
xor eax, edx
shr edx, 0x1d
mov dword [0xbad428], eax
or ebx, edx
not eax
mov edx, dword [0xbad42c]
imul eax, ebx
lea ebx, [eax*8]
xor edx, eax
shr eax, 0x1c
mov dword [0xbad42c], edx
or ebx, eax
not edx
mov al, 1
imul edx, ebx
shl al, cl
xor dword [0xbad430], edx
or byte [0xbad437], al
mov eax, fcn.00798a70
mov ecx, 3
sub ecx, eax
mov al, 0xfe
xor ecx, fcn.00798a70
sete cl
not cl
add cl, 0x40
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbad437], al
mov ebx, dword [ebp + 0x38]
push 0x10
push 0xbad420
push ebx
call fcn.00981170
add esp, 0xc
test eax, eax
je 0x79e6e2
mov edi, ebp
mov ebp, 0x1a
jmp 0x79e90b
cmp byte [ebx + 0x12], 3
jb 0x79e6ec
or byte [esi + 0x18], 1
cmp byte [ebx + 0x13], 2
ja 0x79e6d6
jne 0x79e738
test byte [esi + 0x18], 0x20
jne 0x79e738
mov dword [esp + 0xc], 0
lea edx, [esp + 0xc]
mov dword [esp], ebx
mov ebx, edi
mov edi, ebp
mov ecx, dword [esi]
call fcn.0079efe0
mov ebp, eax
test eax, eax
jne 0x79e90b
mov ebp, edi
mov edi, ebx
cmp dword [esp + 0xc], 0
mov ebx, dword [esp]
jne 0x79e738
mov ecx, ebp
call fcn.0079f030
jmp 0x79e9a9
mov edx, fcn.007f4410
xor eax, eax
and edx, 1
inc edx
mov ecx, edx
xor ecx, fcn.007f4410
movzx ecx, byte [0xbad443]
sete al
bt ecx, eax
jb 0x79e83d
mov al, byte [0xbad443]
mov ecx, edx
mov ah, 1
xor ecx, fcn.007f4410
sete cl
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbad443], ah
jne 0x79e763
mov ecx, fcn.007f4410
movzx eax, al
and ecx, 1
inc ecx
mov edx, ecx
xor edx, fcn.007f4410
sete dl
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x79e7be
mov edx, ecx
xor eax, eax
xor edx, fcn.007f4410
movzx edx, byte [0xbad443]
sete al
bt edx, eax
jae 0x79e7a3
jmp 0x79e83d
xor eax, eax
xor ecx, fcn.007f4410
movzx ecx, byte [0xbad443]
sete al
bt ecx, eax
jb 0x79e81f
mov eax, fcn.007f4410
xor ecx, ecx
and eax, 1
inc eax
xor eax, fcn.007f4410
mov eax, dword [0xbad438]
sete cl
or ecx, 0xc823dd20
add ecx, 0xa8
mov edx, ecx
xor eax, ecx
shr edx, 0x1f
mov dword [0xbad438], eax
not eax
or edx, ecx
and cl, 7
imul edx, eax
xor dword [0xbad43c], edx
mov dl, 1
shl dl, cl
or byte [0xbad443], dl
mov eax, fcn.007f4410
and eax, 1
inc eax
xor eax, fcn.007f4410
mov al, 0xfe
sete cl
xor cl, 7
rol al, cl
and byte [0xbad443], al
mov cl, byte [ebx + 0x17]
movzx eax, word [ebx + 0x15]
xor cl, byte [0xbad43a]
xor ax, word [0xbad438]
movzx ecx, cl
or cx, ax
jne 0x79e6d6
movzx eax, byte [ebx + 0x10]
movzx ecx, byte [ebx + 0x11]
shl eax, 8
shl ecx, 0x10
lea edx, [ecx + eax - 0x101]
cmp edx, 0xfeff
ja 0x79e6d6
mov dword [esp + 4], edi
mov edi, ebp
lea ebp, [ecx + eax]
lea eax, [ecx + eax - 1]
and eax, ebp
je 0x79e896
mov ebp, 0x1a
jmp 0x79e90b
or byte [esi + 0x18], 2
mov dword [esp], ebx
movzx eax, byte [ebx + 0x14]
mov ebx, ebp
sub ebx, eax
cmp ebp, dword [esi + 0x24]
je 0x79e8e2
mov ecx, edi
mov edi, eax
call fcn.0079f030
mov ecx, esi
mov dword [esi + 0x28], ebx
mov dword [esi + 0x24], ebp
call fcn.0079f040
mov ecx, dword [esi]
lea edx, [esi + 0x24]
push edi
call fcn.00796880
add esp, 4
mov ecx, dword [esp + 0x18]
mov esi, eax
xor ecx, esp
call fcn.00980459
mov eax, esi
jmp 0x79e9b8
mov ecx, dword [esi + 4]
mov dword [esp + 8], ebp
call fcn.0079f060
test eax, eax
jne 0x79e91e
mov eax, dword [esp + 4]
cmp eax, dword [esp + 0x10]
jbe 0x79e91e
mov ecx, 0xc77
call fcn.00799c70
mov ebp, 0xb
mov ecx, edi
call fcn.0079f030
mov dword [esi + 0xc], 0
jmp 0x79e9ab
cmp ebx, 0x1e0
mov ebp, 0x1a
jb 0x79e90b
mov ebp, dword [esp]
mov eax, dword [esp + 8]
lea ecx, [ebp + 0x34]
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], ebx
call fcn.0055d990
test eax, eax
setne byte [esi + 0x11]
add ebp, 0x40
mov ecx, ebp
call fcn.0055d990
test eax, eax
setne byte [esi + 0x12]
mov eax, ebx
mov ebp, 0x80808081
shl eax, 6
add eax, 0xfffffd00
mul ebp
mov eax, ebx
add ebx, 0xffffffdd
shl eax, 5
mov ecx, edx
add eax, 0xfffffe80
shr ecx, 7
mul ebp
add ecx, 0xffffffe9
shr edx, 7
mov word [esi + 0x1a], cx
add edx, 0xffffffe9
cmp cx, 0x7f
mov word [esi + 0x1c], dx
mov word [esi + 0x1e], bx
mov word [esi + 0x20], dx
jb 0x79e99c
mov cl, 0x7f
mov eax, dword [esp + 4]
mov byte [esi + 0x15], cl
mov dword [esi + 0xc], edi
mov dword [esi + 0x30], eax
xor ebp, ebp
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00980459
mov eax, ebp
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret