Function at 0x7f9670
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x18
mov eax, dword [0xbd33e0]
mov esi, dword [ebp + 8]
xor eax, ebp
mov dword [esp + 0x10], eax
mov ebx, dword [ecx + 8]
test byte [edx + 5], 4
je 0x7f96b6
mov eax, dword [edx + 8]
mov ecx, esi
mov edx, 0x45
mov esi, eax
neg esi
test ecx, ecx
mov ecx, ebx
cmove esi, eax
push dword [ebp + 0xc]
push esi
call fcn.007d10d0
jmp 0x7f9b60
mov edi, ecx
mov ecx, dword [edx + 8]
lea edx, [esp + 8]
mov dword [esp + 4], ecx
call fcn.007987b0
mov ecx, eax
xor ecx, 3
or ecx, esi
setne cl
cmp eax, 2
je 0x7f9709
test cl, cl
je 0x7f9709
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
test esi, esi
je 0x7f9b76
mov esi, edx
mov dword [esp], edx
mov edx, ebx
mov ebx, 0x80000000
xor esi, ebx
mov ebx, edx
mov edx, dword [esp]
or esi, ecx
mov esi, dword [ebp + 8]
jne 0x7f9b76
mov edx, fcn.00798910
mov dword [esp], edi
mov edi, fcn.00798910
or edx, 2
xor edi, 2
movzx ecx, byte [0xbb7bef]
mov eax, edx
add eax, edi
sete al
or al, 2
movzx eax, al
bt ecx, eax
jb 0x7f980d
mov al, byte [0xbb7bef]
mov ecx, edx
mov ah, 1
add ecx, edi
sete cl
or cl, 2
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb7bef], ah
jne 0x7f973d
mov ecx, fcn.00798910
mov edx, fcn.00798910
or ecx, 2
xor edx, 2
mov esi, ecx
add esi, edx
sete ah
or ah, 2
xor ah, 7
movzx esi, ah
movzx eax, al
bt eax, esi
jae 0x7f979c
mov eax, ecx
movzx esi, byte [0xbb7bef]
add eax, edx
sete al
or al, 2
movzx eax, al
bt esi, eax
jae 0x7f9782
jmp 0x7f980d
add ecx, edx
movzx ecx, byte [0xbb7bef]
sete al
or al, 2
movzx eax, al
bt ecx, eax
jb 0x7f97e8
mov eax, fcn.00798910
mov edx, fcn.00798910
xor ecx, ecx
xor edx, 2
or eax, 2
add eax, edx
mov al, 1
sete cl
or ecx, 0x8f372e32
add ecx, 0x388
xor dword [0xbb7be8], ecx
and cl, 7
shl al, cl
or byte [0xbb7bef], al
mov eax, fcn.00798910
mov ecx, fcn.00798910
xor ecx, 2
or eax, 2
add eax, ecx
mov al, 0xfe
sete cl
or cl, 2
xor cl, 7
rol al, cl
and byte [0xbb7bef], al
push 2
push 0xbb7be8
mov esi, dword [esp + 0xc]
push esi
call fcn.00783750
add esp, 0xc
test eax, eax
jne 0x7f9b51
mov edx, fcn.007b1060
mov esi, fcn.007b1060
xor eax, eax
movzx edi, byte [0xbb7bf7]
or edx, 2
xor esi, 2
mov ecx, edx
add ecx, esi
sete al
mov ecx, eax
xor ecx, 1
lea eax, [ecx + eax*2]
or al, 4
movzx eax, al
bt edi, eax
jb 0x7f996b
mov al, byte [0xbb7bf7]
mov edi, edx
xor ecx, ecx
mov ah, 1
add edi, esi
sete cl
mov ebx, ecx
xor ebx, 1
lea ecx, [ebx + ecx*2]
or cl, 4
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb7bf7], ah
jne 0x7f9864
mov ecx, fcn.007b1060
mov edx, fcn.007b1060
xor ebx, ebx
movzx eax, al
or ecx, 2
xor edx, 2
mov esi, ecx
add esi, edx
sete bl
mov esi, ebx
xor ebx, 1
lea ebx, [ebx + esi*2]
or bl, 4
xor bl, 7
movzx esi, bl
bt eax, esi
jae 0x7f98e4
mov esi, ecx
xor eax, eax
add esi, edx
movzx esi, byte [0xbb7bf7]
sete al
mov ebx, eax
xor ebx, 1
lea eax, [ebx + eax*2]
or al, 4
movzx eax, al
bt esi, eax
jae 0x7f98bd
jmp 0x7f996b
xor eax, eax
add ecx, edx
movzx edx, byte [0xbb7bf7]
sete al
mov ecx, eax
xor ecx, 1
lea eax, [ecx + eax*2]
or al, 4
movzx eax, al
bt edx, eax
jb 0x7f993c
mov eax, fcn.007b1060
mov ecx, fcn.007b1060
xor edx, edx
xor ecx, 2
or eax, 2
add eax, ecx
sete dl
mov eax, edx
xor eax, 0xa9c29a01
lea ecx, [eax + edx*2 + 0x85c]
mov al, 1
xor dword [0xbb7bf0], ecx
and cl, 7
shl al, cl
or byte [0xbb7bf7], al
mov eax, fcn.007b1060
mov ecx, fcn.007b1060
xor edx, edx
xor ecx, 2
or eax, 2
add eax, ecx
sete dl
mov eax, edx
xor eax, 1
lea ecx, [eax + edx*2]
mov al, 0xfe
or cl, 4
xor cl, 7
rol al, cl
and byte [0xbb7bf7], al
mov eax, fcn.007e51c0
mov edx, 3
movzx ecx, byte [0xbb7c1f]
mov edi, dword [esp]
mov esi, dword [ebp + 8]
sub edx, eax
mov eax, edx
xor eax, fcn.007e51c0
setne al
or al, 4
movzx eax, al
bt ecx, eax
jb 0x7f9b2d
mov al, byte [0xbb7c1f]
mov ecx, edx
mov ah, 1
xor ecx, fcn.007e51c0
setne cl
or cl, 4
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb7c1f], ah
jne 0x7f99a1
mov edx, fcn.007e51c0
mov ecx, 3
movzx eax, al
sub ecx, edx
mov edx, ecx
xor edx, fcn.007e51c0
setne dl
or dl, 4
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7f9a0a
mov eax, ecx
movzx edx, byte [0xbb7c1f]
xor eax, fcn.007e51c0
setne al
or al, 4
movzx eax, al
bt edx, eax
jae 0x7f99ea
jmp 0x7f9b2d
xor ecx, fcn.007e51c0
movzx ecx, byte [0xbb7c1f]
setne al
or al, 4
movzx eax, al
bt ecx, eax
jb 0x7f9b08
mov eax, fcn.007e51c0
mov edx, 3
xor ecx, ecx
sub edx, eax
mov eax, dword [str.___L]
xor edx, fcn.007e51c0
sete cl
xor ecx, 0x4023cd59
add ecx, 0x14c
mov edx, ecx
xor eax, ecx
shr edx, 0x1f
mov dword [str.___L], eax
not eax
or edx, ecx
and cl, 7
imul edx, eax
mov eax, dword [0xbb7c04]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb7c04], eax
or esi, edx
not eax
mov edx, dword [0xbb7c08]
imul eax, esi
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb7c08], edx
or esi, eax
not edx
mov eax, dword [0xbb7c0c]
imul edx, esi
lea esi, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbb7c0c], eax
or esi, edx
not eax
mov edx, dword [0xbb7c10]
imul eax, esi
mov esi, eax
shl esi, 4
xor edx, eax
shr eax, 0x1b
mov dword [0xbb7c10], edx
or eax, esi
not edx
mov ebx, dword [0xbb7c14]
imul edx, eax
mov esi, edx
shl esi, 5
xor ebx, edx
shr edx, 0x1a
mov dword [0xbb7c14], ebx
or edx, esi
not ebx
mov esi, dword [ebp + 8]
imul ebx, edx
mov dl, 1
xor dword [0xbb7c18], ebx
shl dl, cl
or byte [0xbb7c1f], dl
mov eax, fcn.007e51c0
mov ecx, 3
sub ecx, eax
mov al, 0xfe
xor ecx, fcn.007e51c0
setne cl
or cl, 4
xor cl, 7
rol al, cl
and byte [0xbb7c1f], al
test esi, esi
mov eax, 0xbb7bf0
mov ecx, 0xc26bb1
cmovne ecx, eax
push dword [esp + 4]
push ecx
push str.___L
push edi
call fcn.0078de60
add esp, 0x10
jmp 0x7f9b63
mov ecx, ebx
mov edx, esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.007f9be0
add esp, 8
mov ecx, dword [esp + 0x10]
xor ecx, ebp
call fcn.00989fe9
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
test esi, esi
je 0x7f9b9b
xor esi, esi
neg ecx
mov edi, 0
sbb edi, edx
cmp eax, 3
mov eax, 0x80000000
cmove edi, eax
cmove ecx, esi
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edi
mov ecx, ebx
mov edx, 0x46
push 0xfffffffffffffff2
lea eax, [esp + 0xc]
push eax
push dword [ebp + 0xc]
call fcn.007fce50
add esp, 0xc
jmp 0x7f9b63