Function at 0x7dfe40
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov ebp, dword [ecx + 0xe4]
mov ebx, edx
mov edi, ecx
test ebp, ebp
je 0x7e05f7
cmp byte [edi + 0xc8], 1
jne 0x7e00b5
mov edx, fcn.00798f00
xor eax, eax
movzx esi, byte [0xbb955f]
imul edx, edx
and edx, 3
cmp edx, 3
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 2]
bt esi, eax
jb 0x7e00a2
mov al, byte [0xbb955f]
mov esi, ebx
xor ecx, ecx
cmp edx, 3
mov ah, 1
sete cl
mov ebx, ecx
xor ebx, 1
lea ecx, [ecx + ebx*2 + 2]
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb955f], ah
jne 0x7dfe99
mov ecx, fcn.00798f00
xor edx, edx
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 3
sete dl
mov ebx, edx
xor ebx, 1
lea edx, [edx + ebx*2 + 2]
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7dff0b
mov ebx, esi
xor eax, eax
cmp ecx, 3
movzx esi, byte [0xbb955f]
sete al
mov edx, eax
xor edx, 1
lea eax, [eax + edx*2 + 2]
bt esi, eax
jae 0x7dfee9
jmp 0x7e00a2
xor eax, eax
cmp ecx, 3
movzx edx, byte [0xbb955f]
mov ebx, esi
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 2]
bt edx, eax
jb 0x7e0079
mov ecx, fcn.00798f00
xor eax, eax
imul ecx, ecx
and ecx, 3
cmp ecx, 3
sete al
mov ecx, eax
not ecx
and ecx, 9
lea ecx, [eax + ecx*2 + 0x401b0672]
mov eax, dword [0xbb9530]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbb9530], eax
not eax
imul edx, eax
mov eax, dword [0xbb9534]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb9534], eax
or edx, esi
not eax
imul eax, edx
mov edx, dword [0xbb9538]
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb9538], edx
or eax, esi
not edx
imul edx, eax
mov eax, dword [0xbb953c]
lea esi, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbb953c], eax
or edx, esi
not eax
imul eax, edx
mov edx, dword [0xbb9540]
mov esi, eax
shl esi, 4
xor edx, eax
shr eax, 0x1b
mov dword [0xbb9540], edx
or eax, esi
not edx
imul edx, eax
mov eax, dword [0xbb9544]
mov esi, edx
shl esi, 5
xor eax, edx
shr edx, 0x1a
mov dword [0xbb9544], eax
or edx, esi
not eax
imul eax, edx
mov edx, dword [0xbb9548]
mov esi, eax
shl esi, 6
xor edx, eax
shr eax, 0x19
mov dword [0xbb9548], edx
or eax, esi
not edx
imul edx, eax
mov eax, dword [0xbb954c]
mov esi, edx
shl esi, 7
xor eax, edx
shr edx, 0x18
mov dword [0xbb954c], eax
or edx, esi
not eax
imul eax, edx
mov edx, dword [0xbb9550]
mov esi, eax
shl esi, 8
xor edx, eax
shr eax, 0x17
mov dword [0xbb9550], edx
or eax, esi
not edx
mov ebp, dword [0xbb9554]
imul edx, eax
mov esi, edx
shl esi, 9
xor ebp, edx
shr edx, 0x16
mov dword [0xbb9554], ebp
or edx, esi
not ebp
imul ebp, edx
mov dl, 1
xor dword [0xbb9558], ebp
shl dl, cl
or byte [0xbb955f], dl
mov eax, fcn.00798f00
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 3
sete cl
mov eax, ecx
xor eax, 1
lea ecx, [ecx + eax*2 + 2]
mov al, 0xfe
xor cl, 7
rol al, cl
and byte [0xbb955f], al
push 0xbb9530
push edi
call fcn.0078de60
add esp, 8
jmp 0x7e05f7
movsx eax, word [ebp + 0x2a]
mov ecx, dword [ebp + 4]
dec eax
lea edx, [eax + eax*4]
cmp dword [ecx + edx*4 + 4], 0
lea esi, [ecx + edx*4]
jne 0x7e0438
mov eax, dword [esp + 0x24]
test eax, eax
je 0x7e0284
mov dword [esp + 0xc], eax
mov eax, dword [eax + 4]
cmp eax, 6
je 0x7e029b
cmp eax, 7
jne 0x7e0438
mov dword [esp + 4], edx
mov edx, 0x994e44
xor eax, eax
mov dword [esp + 8], ecx
imul edx, edx
and edx, 3
cmp edx, 2
sete al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2]
movzx ecx, byte [0xbb956f]
and al, 7
movzx eax, al
bt ecx, eax
jb 0x7e025f
mov al, byte [0xbb956f]
mov dword [esp], ebx
xor ecx, ecx
cmp edx, 2
mov ah, 1
sete cl
mov ebx, ecx
not ebx
lea ecx, [ecx + ebx*2]
and cl, 7
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb956f], ah
jne 0x7e0132
mov ecx, 0x994e44
xor edx, edx
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 2
sete dl
mov ebx, edx
not ebx
lea edx, [edx + ebx*2]
and dl, 7
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7e01aa
mov ebx, dword [esp]
xor eax, eax
cmp ecx, 2
sete al
mov edx, eax
not edx
lea eax, [eax + edx*2]
movzx edx, byte [0xbb956f]
and al, 7
movzx eax, al
bt edx, eax
jae 0x7e0185
jmp 0x7e025f
xor eax, eax
cmp ecx, 2
movzx edx, byte [0xbb956f]
mov ebx, dword [esp]
sete al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2]
and al, 7
movzx eax, al
bt edx, eax
jb 0x7e0235
mov ecx, 0x994e44
xor eax, eax
imul ecx, ecx
and ecx, 3
cmp ecx, 2
sete al
mov ecx, eax
not ecx
and ecx, 0x37
lea ecx, [eax + ecx*2 - 0x35eb0840]
mov eax, dword [0xbb9560]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbb9560], eax
not eax
imul edx, eax
mov eax, dword [0xbb9564]
lea ebx, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb9564], eax
or ebx, edx
not eax
mov dl, 1
imul eax, ebx
mov ebx, dword [esp]
shl dl, cl
xor dword [0xbb9568], eax
or byte [0xbb956f], dl
mov eax, 0x994e44
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 2
sete cl
mov eax, ecx
not eax
lea ecx, [ecx + eax*2]
mov al, 0xfe
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbb956f], al
push 7
mov eax, dword [esp + 0x10]
push dword [eax]
push 0xbb9560
call fcn.00783750
add esp, 0xc
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
test eax, eax
jne 0x7e0438
mov dword [esp], ebx
mov dword [esp + 4], edx
dec word [ebp + 0x2c]
mov edx, esi
mov eax, 0x20
jmp 0x7e040e
mov dword [esp + 4], edx
mov edx, fcn.00814fd0
mov eax, fcn.00814fd0
mov dword [esp + 8], ecx
and edx, 1
xor edx, eax
xor eax, eax
cmp edx, 0xffffffff
sete al
mov ecx, eax
xor ecx, 1
lea eax, [ecx + eax*2]
movzx ecx, byte [0xbb957b]
bt ecx, eax
jb 0x7e03e7
mov al, byte [0xbb957b]
mov dword [esp], ebx
xor ecx, ecx
cmp edx, 0xffffffff
mov ah, 1
sete cl
mov ebx, ecx
xor ebx, 1
lea ecx, [ebx + ecx*2]
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb957b], ah
jne 0x7e02da
mov ecx, fcn.00814fd0
mov edx, fcn.00814fd0
movzx eax, al
and ecx, 1
xor ecx, edx
xor edx, edx
cmp ecx, 0xffffffff
sete dl
mov ebx, edx
xor ebx, 1
lea edx, [ebx + edx*2]
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7e034e
mov ebx, dword [esp]
xor eax, eax
cmp ecx, 0xffffffff
sete al
mov edx, eax
xor edx, 1
lea eax, [edx + eax*2]
movzx edx, byte [0xbb957b]
bt edx, eax
jae 0x7e032d
jmp 0x7e03e7
xor eax, eax
cmp ecx, 0xffffffff
movzx edx, byte [0xbb957b]
mov ebx, dword [esp]
sete al
mov ecx, eax
xor ecx, 1
lea eax, [ecx + eax*2]
bt edx, eax
jb 0x7e03bb
mov ecx, fcn.00814fd0
mov eax, fcn.00814fd0
and ecx, 1
xor ecx, eax
xor eax, eax
cmp ecx, 0xffffffff
sete al
mov ecx, eax
xor ecx, 0xb8fdefb1
lea ecx, [ecx + eax*2 + 0x10]
mov eax, dword [0xbb9570]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbb9570], eax
not eax
imul edx, eax
xor dword [0xbb9574], edx
mov dl, 1
shl dl, cl
or byte [0xbb957b], dl
mov ecx, fcn.00814fd0
mov eax, fcn.00814fd0
and ecx, 1
xor ecx, eax
xor eax, eax
cmp ecx, 0xffffffff
sete al
mov ecx, eax
xor ecx, 1
lea ecx, [ecx + eax*2]
mov al, 0xfe
xor cl, 7
rol al, cl
and byte [0xbb957b], al
push 6
mov eax, dword [esp + 0x10]
push dword [eax]
push 0xbb9570
call fcn.00783750
add esp, 0xc
mov ecx, dword [esp + 8]
test eax, eax
jne 0x7e0438
mov edx, esi
mov eax, 0x40
mov dword [esp], ebx
mov esi, dword [esp + 4]
or word [ecx + esi*4 + 0x10], ax
or dword [ebp + 0x24], eax
lea ebx, [ecx + esi*4 + 4]
test byte [ecx + esi*4 + 0x10], 1
je 0x7e042c
mov ecx, edi
call fcn.0080f480
mov eax, dword [esp]
mov dword [ebx], eax
xor ebx, ebx
jmp 0x7e05f7
mov edx, fcn.007f9cd0
movzx ecx, byte [0xbb95a3]
imul edx, edx
and edx, 3
cmp edx, 3
sete al
or al, 6
movzx eax, al
bt ecx, eax
jb 0x7e05e7
mov al, byte [0xbb95a3]
cmp edx, 3
mov ah, 1
sete cl
or cl, 6
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb95a3], ah
jne 0x7e0463
mov ecx, fcn.007f9cd0
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 3
sete dl
or dl, 6
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7e04bd
cmp ecx, 3
movzx edx, byte [0xbb95a3]
sete al
or al, 6
movzx eax, al
bt edx, eax
jae 0x7e04a1
jmp 0x7e05e7
cmp ecx, 3
movzx edx, byte [0xbb95a3]
sete al
or al, 6
movzx eax, al
bt edx, eax
jb 0x7e05c6
mov eax, fcn.007f9cd0
xor ecx, ecx
mov ebp, esi
imul eax, eax
and eax, 3
cmp eax, 3
mov eax, dword [0xbb9580]
sete cl
or ecx, 0xd48f54d6
xor eax, ecx
and cl, 7
mov dword [0xbb9580], eax
not eax
mov edx, dword [0xbb9584]
imul eax, eax, 0xd48f54d7
lea esi, [eax + eax]
xor edx, eax
shr eax, 0x1e
mov dword [0xbb9584], edx
or esi, eax
not edx
mov eax, dword [0xbb9588]
imul edx, esi
lea esi, [edx*4]
xor eax, edx
shr edx, 0x1d
mov dword [0xbb9588], eax
or esi, edx
not eax
mov edx, dword [0xbb958c]
imul eax, esi
lea esi, [eax*8]
xor edx, eax
shr eax, 0x1c
mov dword [0xbb958c], edx
or esi, eax
not edx
mov eax, dword [0xbb9590]
imul edx, esi
mov esi, edx
shl esi, 4
xor eax, edx
shr edx, 0x1b
mov dword [0xbb9590], eax
or edx, esi
not eax
imul eax, edx
mov edx, dword [0xbb9594]
mov esi, eax
shl esi, 5
xor edx, eax
shr eax, 0x1a
mov dword [0xbb9594], edx
or eax, esi
not edx
imul edx, eax
mov eax, dword [0xbb9598]
mov esi, edx
shl esi, 6
xor eax, edx
shr edx, 0x19
mov dword [0xbb9598], eax
or edx, esi
not eax
mov esi, ebp
imul eax, edx
mov dl, 1
xor dword [0xbb959c], eax
shl dl, cl
or byte [0xbb95a3], dl
mov eax, fcn.007f9cd0
imul eax, eax
and eax, 3
cmp eax, 3
mov al, 0xfe
sete cl
or cl, 6
xor cl, 7
rol al, cl
and byte [0xbb95a3], al
push dword [esi]
push 0xbb9580
push edi
call fcn.0078de60
add esp, 0xc
mov ecx, dword [edi]
mov edx, ebx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.007cb9e0