Function at 0x7de470
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0xbcbae0]
xor eax, ebp
test edx, edx
mov dword [esp + 0x18], eax
je 0x7dea27
mov edi, edx
mov edx, dword [ecx]
mov dword [esp + 8], ecx
mov esi, dword [edi + 8]
movsx ebx, byte [esi + 1]
test ebx, ebx
jne 0x7de4b5
mov ebx, dword [ecx + 0xc4]
inc ebx
mov word [ecx + 0xc4], bx
jmp 0x7de85a
mov eax, dword [ebp + 8]
cmp byte [esi], 0x3f
mov dword [esp + 4], edx
jne 0x7de555
cmp eax, 2
jne 0x7de4de
add ebx, 0xffffffd0
xor ecx, ecx
mov eax, ebx
mov dword [esp + 0x10], ebx
sar eax, 0x1f
mov dword [esp + 0x14], eax
jmp 0x7de502
lea ecx, [esi + 1]
dec eax
lea edx, [esp + 0x10]
push 1
push eax
call fcn.007a52b0
mov edx, dword [esp + 0xc]
add esp, 8
test eax, eax
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
setne cl
mov edx, dword [edx + 0x90]
test cl, cl
jne 0x7de5b4
cmp ebx, 1
mov ecx, eax
sbb ecx, 0
jl 0x7de5b4
mov ecx, edx
sar ecx, 0x1f
cmp edx, ebx
sbb ecx, eax
jl 0x7de5b4
mov eax, dword [esp + 8]
cmp word [eax + 0xc4], bx
jge 0x7de83c
mov word [eax + 0xc4], bx
mov edx, dword [esp + 4]
mov eax, dword [eax + 0xd8]
mov dword [esp + 0xc], eax
jmp 0x7de58b
mov ecx, dword [ecx + 0xd8]
mov edx, esi
mov dword [esp + 0xc], ecx
push eax
call fcn.007c50f0
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
add esp, 4
mov ebx, eax
test bx, bx
jne 0x7de85a
mov ebx, dword [ecx + 0xc4]
inc ebx
mov word [ecx + 0xc4], bx
mov ecx, edx
mov edx, dword [esp + 0xc]
movsx eax, bx
push eax
push dword [ebp + 8]
push esi
call fcn.00827ea0
mov edx, dword [esp + 0x10]
add esp, 0xc
mov ecx, dword [esp + 8]
mov dword [ecx + 0xd8], eax
jmp 0x7de85a
mov esi, fcn.00795680
mov edi, fcn.00795680
xor eax, eax
mov dword [esp + 4], edx
or esi, 2
xor edi, 2
movzx edx, byte [0xbb2e9f]
mov ecx, esi
add ecx, edi
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 6]
and al, 7
movzx eax, al
bt edx, eax
jb 0x7de822
mov al, byte [0xbb2e9f]
mov ebx, esi
xor ecx, ecx
mov ah, 1
add ebx, edi
sete cl
mov ebx, ecx
xor ebx, 1
lea ecx, [ecx + ebx*2 + 6]
and cl, 7
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb2e9f], ah
jne 0x7de5f4
mov ecx, fcn.00795680
mov esi, fcn.00795680
xor edx, edx
movzx eax, al
or ecx, 2
xor esi, 2
mov edi, ecx
add edi, esi
sete dl
mov ebx, edx
xor ebx, 1
lea edx, [edx + ebx*2 + 6]
and dl, 7
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7de677
mov edx, ecx
xor eax, eax
movzx edi, byte [0xbb2e9f]
add edx, esi
sete al
mov edx, eax
xor edx, 1
lea eax, [eax + edx*2 + 6]
and al, 7
movzx eax, al
bt edi, eax
jae 0x7de64f
jmp 0x7de822
xor eax, eax
add ecx, esi
movzx edx, byte [0xbb2e9f]
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 6]
and al, 7
movzx eax, al
bt edx, eax
jb 0x7de7f2
mov ecx, fcn.00795680
mov edx, fcn.00795680
xor eax, eax
xor edx, 2
or ecx, 2
add ecx, edx
sete al
mov ecx, eax
not ecx
and ecx, 0x201
lea ecx, [eax + ecx*2 + 0x56193d4e]
mov eax, dword [str._k_]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [str._k_], eax
not eax
imul edx, eax
mov eax, dword [0xbb2e74]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb2e74], eax
or esi, edx
not eax
mov edx, dword [0xbb2e78]
imul eax, esi
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb2e78], edx
or esi, eax
not edx
mov eax, dword [0xbb2e7c]
imul edx, esi
lea esi, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbb2e7c], eax
or esi, edx
not eax
mov edx, dword [0xbb2e80]
imul eax, esi
mov esi, eax
shl esi, 4
xor edx, eax
shr eax, 0x1b
mov dword [0xbb2e80], edx
or eax, esi
not edx
mov edi, dword [0xbb2e84]
imul edx, eax
mov esi, edx
shl esi, 5
xor edi, edx
shr edx, 0x1a
mov dword [0xbb2e84], edi
or edx, esi
not edi
imul edi, edx
mov edx, dword [0xbb2e88]
mov esi, edi
shl esi, 6
xor edx, edi
shr edi, 0x19
mov dword [0xbb2e88], edx
or edi, esi
not edx
mov ebx, dword [0xbb2e8c]
imul edx, edi
mov esi, edx
shl esi, 7
xor ebx, edx
shr edx, 0x18
mov dword [0xbb2e8c], ebx
or edx, esi
not ebx
imul ebx, edx
mov edx, dword [0xbb2e90]
mov esi, ebx
shl esi, 8
xor edx, ebx
shr ebx, 0x17
mov dword [0xbb2e90], edx
or ebx, esi
not edx
mov edi, dword [0xbb2e94]
imul edx, ebx
mov esi, edx
shl esi, 9
xor edi, edx
shr edx, 0x16
mov dword [0xbb2e94], edi
or edx, esi
not edi
imul edi, edx
mov dl, 1
xor dword [0xbb2e98], edi
shl dl, cl
or byte [0xbb2e9f], dl
mov eax, fcn.00795680
mov ecx, fcn.00795680
xor edx, edx
xor ecx, 2
or eax, 2
add eax, ecx
sete dl
mov eax, edx
xor eax, 1
lea ecx, [edx + eax*2 + 6]
mov al, 0xfe
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbb2e9f], al
push dword [esp + 4]
push str._k_
push dword [esp + 0x10]
call fcn.00782570
add esp, 0xc
jmp 0x7dea27
mov ecx, dword [eax + 0xd8]
movsx edx, bx
mov dword [esp + 0xc], ecx
call fcn.0077fb20
mov edx, dword [esp + 4]
test eax, eax
je 0x7de58b
mov word [edi + 0x20], bx
movsx eax, bx
cmp dword [edx + 0x90], eax
jge 0x7dea27
mov edx, fcn.008281d0
mov esi, fcn.008281d0
movzx ecx, byte [0xbb2ebb]
or edx, 2
xor esi, 2
mov eax, edx
add eax, esi
sete al
or al, 4
add al, 0x84
and al, 7
movzx eax, al
bt ecx, eax
jb 0x7dea16
mov al, byte [0xbb2ebb]
mov ecx, edx
mov ah, 1
add ecx, esi
sete cl
or cl, 4
add cl, 0x84
and cl, 7
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb2ebb], ah
jne 0x7de8a2
mov ecx, fcn.008281d0
mov edx, fcn.008281d0
or ecx, 2
xor edx, 2
mov esi, ecx
add esi, edx
sete ah
or ah, 4
add ah, 0x84
and ah, 7
xor ah, 7
movzx esi, ah
movzx eax, al
bt eax, esi
jae 0x7de914
mov eax, ecx
movzx esi, byte [0xbb2ebb]
add eax, edx
sete al
or al, 4
add al, 0x84
and al, 7
movzx eax, al
bt esi, eax
jae 0x7de8f3
jmp 0x7dea16
add ecx, edx
movzx ecx, byte [0xbb2ebb]
sete al
or al, 4
add al, 0x84
and al, 7
movzx eax, al
bt ecx, eax
jb 0x7de9eb
mov eax, fcn.008281d0
mov edx, fcn.008281d0
xor ecx, ecx
xor edx, 2
or eax, 2
add eax, edx
mov eax, dword [0xbb2ea0]
sete cl
or ecx, 0x22dbc684
add ecx, 0x1084
xor eax, ecx
mov dword [0xbb2ea0], eax
not eax
mov edx, dword [0xbb2ea4]
imul eax, ecx
and cl, 7
lea esi, [eax + eax]
xor edx, eax
shr eax, 0x1e
mov dword [0xbb2ea4], edx
or esi, eax
not edx
mov eax, dword [0xbb2ea8]
imul edx, esi
lea esi, [edx*4]
xor eax, edx
shr edx, 0x1d
mov dword [0xbb2ea8], eax
or esi, edx
not eax
mov edx, dword [0xbb2eac]
imul eax, esi
lea esi, [eax*8]
xor edx, eax
shr eax, 0x1c
mov dword [0xbb2eac], edx
or esi, eax
not edx
mov eax, dword [0xbb2eb0]
imul edx, esi
mov esi, edx
shl esi, 4
xor eax, edx
shr edx, 0x1b
mov dword [0xbb2eb0], eax
or edx, esi
not eax
imul eax, edx
mov dl, 1
xor dword [0xbb2eb4], eax
shl dl, cl
or byte [0xbb2ebb], dl
mov eax, fcn.008281d0
mov ecx, fcn.008281d0
xor ecx, 2
or eax, 2
add eax, ecx
mov al, 0xfe
sete cl
or cl, 4
add cl, 0x84
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbb2ebb], al
push 0xbb2ea0
push dword [esp + 0xc]
call fcn.00782570
add esp, 8
mov ecx, dword [esp + 0x18]
xor ecx, ebp
call fcn.00980459
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret