Function at 0x7e3c60
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [ecx]
mov edi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x28]
test edx, edx
mov dword [esp], eax
jne 0x7e4198
test edi, edi
jne 0x7e3c8b
cmp dword [esp + 0x30], 0
je 0x7e4198
mov eax, fcn.007a20d0
mov edx, 3
mov dword [esp + 4], ecx
sub edx, eax
xor eax, eax
movzx esi, byte [0xbba2cf]
mov ecx, edx
xor ecx, fcn.007a20d0
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 6]
and al, 7
movzx eax, al
bt esi, eax
jb 0x7e3de6
mov al, byte [0xbba2cf]
mov esi, edx
xor ecx, ecx
mov ah, 1
xor esi, fcn.007a20d0
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 [0xbba2cf], ah
jne 0x7e3ccb
mov edx, fcn.007a20d0
mov ecx, 3
movzx eax, al
sub ecx, edx
xor edx, edx
mov esi, ecx
xor esi, fcn.007a20d0
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 0x7e3d56
mov edx, ecx
xor eax, eax
movzx esi, byte [0xbba2cf]
xor edx, fcn.007a20d0
sete al
mov edx, eax
xor edx, 1
lea eax, [eax + edx*2 + 6]
and al, 7
movzx eax, al
bt esi, eax
jae 0x7e3d2a
jmp 0x7e3de6
xor eax, eax
xor ecx, fcn.007a20d0
movzx edx, byte [0xbba2cf]
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 6]
and al, 7
movzx eax, al
bt edx, eax
jb 0x7e3db6
mov eax, fcn.007a20d0
mov ecx, 3
sub ecx, eax
xor eax, eax
xor ecx, fcn.007a20d0
sete al
mov ecx, eax
not ecx
and ecx, 0x219
lea ecx, [eax + ecx*2 + 0x15b91486]
mov al, 1
xor dword [0xbba2c8], ecx
and cl, 7
shl al, cl
or byte [0xbba2cf], al
mov eax, fcn.007a20d0
mov ecx, 3
sub ecx, eax
xor eax, eax
xor ecx, fcn.007a20d0
sete al
mov ecx, eax
xor ecx, 1
lea ecx, [eax + ecx*2 + 6]
mov al, 0xfe
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbba2cf], al
mov edx, fcn.007cfb80
xor eax, eax
movzx esi, byte [0xbba2db]
not edx
and edx, 1
mov ecx, edx
add ecx, fcn.007cfb80
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 2]
bt esi, eax
jb 0x7e3f36
mov al, byte [0xbba2db]
mov esi, edx
xor ecx, ecx
mov ah, 1
add esi, fcn.007cfb80
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 [0xbba2db], ah
jne 0x7e3e1b
mov ecx, fcn.007cfb80
xor edx, edx
movzx eax, al
not ecx
and ecx, 1
mov esi, ecx
add esi, fcn.007cfb80
sete dl
mov ebx, edx
xor ebx, 1
lea edx, [edx + ebx*2 + 2]
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7e3e99
mov edx, ecx
xor eax, eax
movzx esi, byte [0xbba2db]
add edx, fcn.007cfb80
sete al
mov edx, eax
xor edx, 1
lea eax, [eax + edx*2 + 2]
bt esi, eax
jae 0x7e3e72
jmp 0x7e3f36
xor eax, eax
add ecx, fcn.007cfb80
movzx edx, byte [0xbba2db]
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 2]
bt edx, eax
jb 0x7e3f0c
mov ecx, fcn.007cfb80
xor eax, eax
mov esi, dword [0xbba2d0]
not ecx
and ecx, 1
add ecx, fcn.007cfb80
sete al
mov ecx, eax
not ecx
and ecx, 0x905
lea ecx, [eax + ecx*2 - 0x3783992e]
mov edx, ecx
xor esi, ecx
shr edx, 0x1f
mov dword [0xbba2d0], esi
not esi
or edx, ecx
and cl, 7
imul edx, esi
xor dword [0xbba2d4], edx
mov dl, 1
shl dl, cl
or byte [0xbba2db], dl
mov eax, fcn.007cfb80
xor ecx, ecx
not eax
and eax, 1
add eax, fcn.007cfb80
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 [0xbba2db], al
mov edx, fcn.0082cc40
movzx ecx, byte [0xbba30b]
not edx
and edx, 1
mov eax, edx
add eax, fcn.0082cc40
sete al
not al
add al, 0xc0
and al, 7
movzx eax, al
bt ecx, eax
jb 0x7e414e
mov al, byte [0xbba30b]
mov ecx, edx
mov ah, 1
add ecx, fcn.0082cc40
sete cl
not cl
add cl, 0xc0
and cl, 7
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbba30b], ah
jne 0x7e3f68
mov ecx, fcn.0082cc40
movzx eax, al
not ecx
and ecx, 1
mov edx, ecx
add edx, fcn.0082cc40
sete dl
not dl
add dl, 0xc0
and dl, 7
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7e3fdd
mov eax, ecx
movzx edx, byte [0xbba30b]
add eax, fcn.0082cc40
sete al
not al
add al, 0xc0
and al, 7
movzx eax, al
bt edx, eax
jae 0x7e3fb9
jmp 0x7e414e
add ecx, fcn.0082cc40
movzx ecx, byte [0xbba30b]
sete al
not al
add al, 0xc0
and al, 7
movzx eax, al
bt ecx, eax
jb 0x7e4127
mov eax, fcn.0082cc40
xor ecx, ecx
not eax
and eax, 1
add eax, fcn.0082cc40
mov eax, dword [0xbba2e0]
sete cl
xor ecx, 0x61f7a107
or ecx, 0x10c0
xor eax, ecx
mov dword [0xbba2e0], eax
not eax
mov edx, dword [0xbba2e4]
imul eax, ecx
and cl, 7
lea esi, [eax + eax]
xor edx, eax
shr eax, 0x1e
mov dword [0xbba2e4], edx
or esi, eax
not edx
mov eax, dword [0xbba2e8]
imul edx, esi
lea esi, [edx*4]
xor eax, edx
shr edx, 0x1d
mov dword [0xbba2e8], eax
or esi, edx
not eax
mov edx, dword [0xbba2ec]
imul eax, esi
lea esi, [eax*8]
xor edx, eax
shr eax, 0x1c
mov dword [0xbba2ec], edx
or esi, eax
not edx
mov eax, dword [0xbba2f0]
imul edx, esi
mov esi, edx
shl esi, 4
xor eax, edx
shr edx, 0x1b
mov dword [0xbba2f0], eax
or edx, esi
not eax
imul eax, edx
mov edx, dword [0xbba2f4]
mov esi, eax
shl esi, 5
xor edx, eax
shr eax, 0x1a
mov dword [0xbba2f4], edx
or eax, esi
not edx
imul edx, eax
mov eax, dword [0xbba2f8]
mov esi, edx
shl esi, 6
xor eax, edx
shr edx, 0x19
mov dword [0xbba2f8], eax
or edx, esi
not eax
imul eax, edx
mov edx, dword [0xbba2fc]
mov esi, eax
shl esi, 7
xor edx, eax
shr eax, 0x18
mov dword [0xbba2fc], edx
or eax, esi
not edx
mov ebx, dword [0xbba300]
imul edx, eax
mov esi, edx
shl esi, 8
xor ebx, edx
shr edx, 0x17
mov dword [0xbba300], ebx
or edx, esi
not ebx
imul ebx, edx
mov dl, 1
xor dword [0xbba304], ebx
shl dl, cl
or byte [0xbba30b], dl
mov eax, fcn.0082cc40
not eax
and eax, 1
add eax, fcn.0082cc40
mov al, 0xfe
sete cl
not cl
add cl, 0xc0
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbba30b], al
test edi, edi
mov eax, 0xbba2c8
mov ecx, 0xbba2d0
cmovne ecx, eax
push ecx
push 0xbba2e0
push dword [esp + 0xc]
call fcn.0078de60
add esp, 0xc
mov esi, dword [esp]
mov edx, dword [esp + 0x2c]
mov ecx, esi
call fcn.007cb9e0
mov edx, dword [esp + 0x30]
mov ecx, esi
call fcn.007cbd30
mov ecx, esi
mov edx, ebp
call fcn.007cba90
xor edi, edi
jmp 0x7e421f
mov esi, dword [esp + 0x20]
mov ebx, ecx
push esi
push dword [esp + 0x20]
call fcn.007e46f0
add esp, 8
test eax, eax
je 0x7e416f
mov edi, eax
mov eax, dword [esp + 0x24]
mov ebp, dword [edi]
dec ebp
cmp byte [ebx + 0xc8], 2
jb 0x7e41eb
mov ecx, ebx
mov ebx, eax
lea eax, [ebp + ebp*8]
mov edx, dword [edi + eax*8 + 0x10]
mov eax, ebx
test edx, edx
je 0x7e41eb
test esi, esi
je 0x7e41dc
cmp dword [esi], 0
jne 0x7e41e0
mov esi, dword [esp + 0x1c]
push esi
call fcn.007e47b0
add esp, 4
mov eax, ebx
cmp dword [eax + 4], 0
je 0x7e4203
mov ecx, dword [esp]
mov edx, eax
call fcn.007e4800
lea ecx, [ebp + ebp*8]
mov dword [edi + ecx*8 + 0x14], eax
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
lea eax, [ebp + ebp*8]
mov dword [edi + eax*8 + 0x1c], ecx
mov dword [edi + eax*8 + 0x38], esi
mov dword [edi + eax*8 + 0x3c], edx
mov eax, edi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret